Skip to content

Commit ced53d7

Browse files
committed
[S1 BSP] Simplify local task
1 parent 3301d2c commit ced53d7

File tree

2 files changed

+43
-70
lines changed

2 files changed

+43
-70
lines changed

target/sieon/s1/tasks/can_task.c

Lines changed: 0 additions & 70 deletions
This file was deleted.

target/sieon/s1/tasks/local_task.c

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/******************************************************************************
2+
* Copyright The Firmament Authors. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*****************************************************************************/
16+
#include <firmament.h>
17+
18+
#include "module/task_manager/task_manager.h"
19+
20+
static fmt_err_t task_init(void)
21+
{
22+
return FMT_EOK;
23+
}
24+
25+
static void task_entry(void* parameter)
26+
{
27+
/* main loop */
28+
while (1) {
29+
printf("Hello FMT");
30+
sys_msleep(1000);
31+
}
32+
}
33+
34+
// TASK_EXPORT __fmt_task_desc = {
35+
// .name = "eth",
36+
// .init = task_init,
37+
// .entry = task_entry,
38+
// .priority = 25,
39+
// .auto_start = true,
40+
// .stack_size = 4096,
41+
// .param = NULL,
42+
// .dependency = NULL
43+
// };

0 commit comments

Comments
 (0)