Ignore:
Timestamp:
Jul 10, 2020, 9:09:25 PM (4 years ago)
Author:
coas-nagasima
Message:

NTShellタスクを更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/ntshell/src/main.h

    r435 r441  
    5656
    5757#define MAIN_PRIORITY   5                       /* メインタスクの優先度 */
    58 #define SHELLCMD_PRIORITY       4               /* shellcmdタスクの優先度 */
     58#define SHELLCMD_PRIORITY       8               /* shellcmdタスクの優先度 */
    5959
    60 #define MAIN_STACK_SIZE         2048    /* メインタスクのスタック領域のサイズ */
     60#define MAIN_STACK_SIZE 2048            /* メインタスクのスタック領域のサイズ */
    6161#define SHELLCMD_STACK_SIZE     0x00800000      /* shellcmdタスクのスタック領域のサイズ */
    6262
    6363#define NUM_MAIN_DATAQUEUE      1               /* メインタスクで待ち受けているデータキューのサイズ */
    64 #define NUM_SHELLCMD_DATAQUEUE  1       /* shellcmdタスクで待ち受けているデータキューのサイズ */
     64
    6565
    6666/*
     
    6969#ifndef TOPPERS_MACRO_ONLY
    7070
     71typedef 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
    7181typedef struct
    7282{
     
    7484        int count;
    7585} cmd_table_info_t;
     86
     87extern cmd_table_info_t cmd_table_info;
     88
     89/* ntshellの初期化 */
     90void 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/* メインタスク初期化 */
     100void main_task_init(task_base_t **tasks, int task_count);
    76101
    77102/* メインタスク */
Note: See TracChangeset for help on using the changeset viewer.