Changeset 441 for EcnlProtoTool/trunk/ntshell/src/main.h
- Timestamp:
- Jul 10, 2020, 9:09:25 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/ntshell/src/main.h
r435 r441 56 56 57 57 #define MAIN_PRIORITY 5 /* メインタスクの優先度 */ 58 #define SHELLCMD_PRIORITY 4/* shellcmdタスクの優先度 */58 #define SHELLCMD_PRIORITY 8 /* shellcmdタスクの優先度 */ 59 59 60 #define MAIN_STACK_SIZE 2048/* メインタスクのスタック領域のサイズ */60 #define MAIN_STACK_SIZE 2048 /* メインタスクのスタック領域のサイズ */ 61 61 #define SHELLCMD_STACK_SIZE 0x00800000 /* shellcmdタスクのスタック領域のサイズ */ 62 62 63 63 #define NUM_MAIN_DATAQUEUE 1 /* メインタスクで待ち受けているデータキューのサイズ */ 64 #define NUM_SHELLCMD_DATAQUEUE 1 /* shellcmdタスクで待ち受けているデータキューのサイズ */ 64 65 65 66 66 /* … … 69 69 #ifndef TOPPERS_MACRO_ONLY 70 70 71 typedef struct task_base_t { 72 void (*on_start)(struct task_base_t *task, ID tskid); 73 void (*on_end)(struct task_base_t *task); 74 int (*get_timer)(struct task_base_t *task); 75 void (*progress)(struct task_base_t *task, int elapse); 76 void (*process)(struct task_base_t *task, uint32_t event); 77 int timer; 78 void *exinf; 79 } task_base_t; 80 71 81 typedef struct 72 82 { … … 74 84 int count; 75 85 } cmd_table_info_t; 86 87 extern cmd_table_info_t cmd_table_info; 88 89 /* ntshellの初期化 */ 90 void sys_init(intptr_t exinf); 91 92 #define MAIN_EVENT_WAKEUP 0x00000001 93 #define MAIN_EVENT_NETIF_CHANGED 0x00000002 94 #define MAIN_EVENT_LINK_UP 0x00000004 95 #define MAIN_EVENT_UP 0x00000008 96 #define MAIN_EVENT_NTP_ASYNC 0x00000010 97 #define MAIN_EVENT_NTP_SYNC 0x00000020 98 99 /* メインタスク初期化 */ 100 void main_task_init(task_base_t **tasks, int task_count); 76 101 77 102 /* メインタスク */
Note:
See TracChangeset
for help on using the changeset viewer.