File tree Expand file tree Collapse file tree 2 files changed +43
-70
lines changed
Expand file tree Collapse file tree 2 files changed +43
-70
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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+ // };
You can’t perform that action at this time.
0 commit comments