const UINT8 tnum_task = TNUM_TASK; const UINT8 tnum_exttask = TNUM_EXTTASK; /****** Object OS ******/ /****** Object TASK ******/ const TaskType ActionTask = 0; const TaskType ActionTask2 = 1; const TaskType DisplayTask = 2; extern void TASKNAME( ActionTask )( void ); extern void TASKNAME( ActionTask2 )( void ); extern void TASKNAME( DisplayTask )( void ); static __STK_UNIT _stack_ActionTask[__TCOUNT_STK_UNIT(512)]; static __STK_UNIT _stack_ActionTask2[__TCOUNT_STK_UNIT(512)]; static __STK_UNIT _stack_DisplayTask[__TCOUNT_STK_UNIT(512)]; const Priority tinib_inipri[TNUM_TASK] = { TPRI_MINTASK + 4, TPRI_MINTASK + 3, TPRI_MINTASK + 1, }; const Priority tinib_exepri[TNUM_TASK] = { TPRI_MINTASK + 4, TPRI_MINTASK + 3, TPRI_MINTASK + 1, }; const UINT8 tinib_maxact[TNUM_TASK] = { (1) - 1, (1) - 1, (1) - 1, }; const AppModeType tinib_autoact[TNUM_TASK] = { 0x00000000, 0x00000000, 0x00000000, }; const FP tinib_task[TNUM_TASK] = { TASKNAME( ActionTask ), TASKNAME( ActionTask2 ), TASKNAME( DisplayTask ), }; const __STK_UNIT tinib_stk[TNUM_TASK] = { (__STK_UNIT)_stack_ActionTask, (__STK_UNIT)_stack_ActionTask2, (__STK_UNIT)_stack_DisplayTask, }; const UINT16 tinib_stksz[TNUM_TASK] = { 512, 512, 512, }; TaskType tcb_next[TNUM_TASK]; UINT8 tcb_tstat[TNUM_TASK]; Priority tcb_curpri[TNUM_TASK]; UINT8 tcb_actcnt[TNUM_TASK];
#include "main_tsk.h" #include "kobanzame.h" #include "hw_timer.h" #include "timer.h" #include "hw_serial.h" #include "serial.h" #include "logtask.h" /* Object initializer [task] */ #define TNUM_TSKID 6 const ID _kernel_tmax_tskid = (TMIN_TSKID + TNUM_TSKID - 1); static __STK_UNIT __stack_TASK_HI[__TCOUNT_STK_UNIT(1024)]; static __STK_UNIT __stack_TASK_LO[__TCOUNT_STK_UNIT(1024)]; static __STK_UNIT __stack_MAIN_TASK[__TCOUNT_STK_UNIT(4096)]; static __STK_UNIT __stack_TSK_DEV_POL[__TCOUNT_STK_UNIT(2048)]; static __STK_UNIT __stack_TSK_DEV_AUDIO[__TCOUNT_STK_UNIT(1024)]; static __STK_UNIT __stack_LOGTASK[__TCOUNT_STK_UNIT(LOGTASK_STACK_SIZE)]; const TINIB _kernel_tinib_table[TNUM_TSKID] = { {TA_HLNG, (VP_INT)(0), (FP)(high_task), INT_PRIORITY(2), __TROUND_STK_UNIT(1024), __stack_TASK_HI, TA_NULL, (FP)(NULL)}, {TA_HLNG, (VP_INT)(0), (FP)(low_task), INT_PRIORITY(3), __TROUND_STK_UNIT(1024), __stack_TASK_LO, TA_NULL, (FP)(NULL)}, {TA_HLNG | TA_ACT, (VP_INT)(0), (FP)(main_task), INT_PRIORITY(8), __TROUND_STK_UNIT(4096), __stack_MAIN_TASK, TA_NULL, (FP)(NULL)}, {TA_HLNG | TA_ACT, (VP_INT)(0), (FP)(KzDevPollingTask), INT_PRIORITY(5), __TROUND_STK_UNIT(2048), __stack_TSK_DEV_POL, TA_NULL, (FP)(NULL)}, {TA_HLNG | TA_ACT, (VP_INT)(0), (FP)(KzAudioDspTask), INT_PRIORITY(1), __TROUND_STK_UNIT(1024), __stack_TSK_DEV_AUDIO, TA_NULL, (FP)(NULL)}, {TA_HLNG | TA_ACT, (VP_INT)(( VP_INT ) 2), (FP)(logtask), INT_PRIORITY(LOGTASK_PRIORITY), __TROUND_STK_UNIT(LOGTASK_STACK_SIZE), __stack_LOGTASK, TA_NULL, (FP)(NULL)} };
const UINT8 tnum_alarm = TNUM_ALARM; const UINT8 tnum_counter = TNUM_COUNTER; const UINT8 tnum_isr2 = TNUM_ISR2; const UINT8 tnum_resource = TNUM_RESOURCE; const UINT8 tnum_task = TNUM_TASK; const UINT8 tnum_exttask = TNUM_EXTTASK; /****** Object OS ******/ /****** Object TASK ******/ const TaskType TaskMain = 0; extern void TASKNAME( TaskMain )( void ); static __STK_UNIT _stack_TaskMain[__TCOUNT_STK_UNIT(512)]; const Priority tinib_inipri[TNUM_TASK] = { TPRI_MINTASK + 1, }; const Priority tinib_exepri[TNUM_TASK] = { TPRI_MINTASK + 1, }; const UINT8 tinib_maxact[TNUM_TASK] = { (1) - 1, }; const AppModeType tinib_autoact[TNUM_TASK] = { 0x00000001, }; const FP tinib_task[TNUM_TASK] = { TASKNAME( TaskMain ), }; const __STK_UNIT tinib_stk[TNUM_TASK] = { (__STK_UNIT)_stack_TaskMain, }; const UINT16 tinib_stksz[TNUM_TASK] = { 512, }; TaskType tcb_next[TNUM_TASK]; UINT8 tcb_tstat[TNUM_TASK]; Priority tcb_curpri[TNUM_TASK]; UINT8 tcb_actcnt[TNUM_TASK]; EventMaskType tcb_curevt[TNUM_EXTTASK+1]; EventMaskType tcb_waievt[TNUM_EXTTASK+1];
#include "storagedevice.h" #include "lpc23xx_rtc.h" #include "hw_timer.h" #include "timer.h" #include "hw_serial.h" #include "serial.h" #include "logtask.h" /* Object initializer [task] */ #define TNUM_TSKID 9 const ID _kernel_tmax_tskid = (TMIN_TSKID + TNUM_TSKID - 1); static __STK_UNIT __stack_MAIN_TASK[__TCOUNT_STK_UNIT(4096)]; static __STK_UNIT __stack_TCP_TELNET_SRV_TASK[__TCOUNT_STK_UNIT(4096)]; static __STK_UNIT __stack_MONTASK[__TCOUNT_STK_UNIT(2046)]; static __STK_UNIT __stack_NET_TIMER_TASK[__TCOUNT_STK_UNIT(1024)]; static __STK_UNIT __stack_ETHER_OUTPUT_TASK[__TCOUNT_STK_UNIT(1024)]; static __STK_UNIT __stack_ETHER_INPUT_TASK[__TCOUNT_STK_UNIT(1024)]; static __STK_UNIT __stack_TCP_OUTPUT_TASK[__TCOUNT_STK_UNIT(1024)]; static __STK_UNIT __stack_UDP_OUTPUT_TASK[__TCOUNT_STK_UNIT(1024)]; static __STK_UNIT __stack_LOGTASK[__TCOUNT_STK_UNIT(LOGTASK_STACK_SIZE)]; const TINIB _kernel_tinib_table[TNUM_TSKID] = { {0x00u | 0x02u, (VP_INT)(0), (FP)(main_task), INT_PRIORITY(4), __TROUND_STK_UNIT(4096), __stack_MAIN_TASK, TA_NULL, (FP)(NULL)}, {0, (VP_INT)(TCP_TELNET_SRV_CEPID), (FP)(tcp_telnet_srv_task), INT_PRIORITY(5), __TROUND_STK_UNIT(4096), __stack_TCP_TELNET_SRV_TASK, TA_NULL, (FP)(NULL)}, {0x00u | 0x02u, (VP_INT)(( VP_INT ) 1), (FP)(monitor), INT_PRIORITY(3), __TROUND_STK_UNIT(2046), __stack_MONTASK, TA_NULL, (FP)(NULL)}, {0, (VP_INT)(0), (FP)(net_timer_task), INT_PRIORITY(5), __TROUND_STK_UNIT(1024), __stack_NET_TIMER_TASK, TA_NULL, (FP)(NULL)}, {0, (VP_INT)(0), (FP)(_tinet_ether_output_task), INT_PRIORITY(5), __TROUND_STK_UNIT(1024), __stack_ETHER_OUTPUT_TASK, TA_NULL, (FP)(NULL)},
#endif /* User specified include files*/ #include "talkthrough.h" #include "ad1836a.h" #include <timer.h> #include <sys_defs.h> /* Object initializer [task] */ #define TNUM_TSKID 1 const ID _kernel_tmax_tskid = (TMIN_TSKID + TNUM_TSKID - 1); static __STK_UNIT __stack_CODEC_TASK[__TCOUNT_STK_UNIT(512)]; const TINIB _kernel_tinib_table[TNUM_TSKID] = { {TA_HLNG | TA_ACT, (VP_INT)(0), (FP)(run_ad1836_task), INT_PRIORITY(3), __TROUND_STK_UNIT(512), __stack_CODEC_TASK, TA_NULL, (FP)(NULL)} }; const ID _kernel_torder_table[TNUM_TSKID] = {1}; TCB _kernel_tcb_table[TNUM_TSKID]; /* Object initializer [semaphore] */ #define TNUM_SEMID 2 const ID _kernel_tmax_semid = (TMIN_SEMID + TNUM_SEMID - 1);
const UINT8 tnum_alarm = TNUM_ALARM; const UINT8 tnum_counter = TNUM_COUNTER; const UINT8 tnum_isr2 = TNUM_ISR2; const UINT8 tnum_resource = TNUM_RESOURCE; const UINT8 tnum_task = TNUM_TASK; const UINT8 tnum_exttask = TNUM_EXTTASK; /****** Object OS ******/ /****** Object TASK ******/ const TaskType th = 0; extern void TASKNAME( th )( void ); static __STK_UNIT _stack_th[__TCOUNT_STK_UNIT(512)]; const Priority tinib_inipri[TNUM_TASK] = { TPRI_MINTASK + 2, }; const Priority tinib_exepri[TNUM_TASK] = { TPRI_MINTASK + 2, }; const UINT8 tinib_maxact[TNUM_TASK] = { (1) - 1, }; const AppModeType tinib_autoact[TNUM_TASK] = { 0x00000000, }; const FP tinib_task[TNUM_TASK] = { TASKNAME( th ), }; const __STK_UNIT tinib_stk[TNUM_TASK] = { (__STK_UNIT)_stack_th, }; const UINT16 tinib_stksz[TNUM_TASK] = { 512, }; TaskType tcb_next[TNUM_TASK]; UINT8 tcb_tstat[TNUM_TASK]; Priority tcb_curpri[TNUM_TASK]; UINT8 tcb_actcnt[TNUM_TASK]; EventMaskType tcb_curevt[TNUM_EXTTASK+1]; EventMaskType tcb_waievt[TNUM_EXTTASK+1];
const UINT8 tnum_isr2 = TNUM_ISR2; const UINT8 tnum_resource = TNUM_RESOURCE; const UINT8 tnum_task = TNUM_TASK; const UINT8 tnum_exttask = TNUM_EXTTASK; /****** Object OS ******/ /****** Object TASK ******/ const TaskType TaskDrive = 0; const TaskType TaskRobot = 1; extern void TASKNAME( TaskDrive )( void ); extern void TASKNAME( TaskRobot )( void ); static __STK_UNIT _stack_TaskDrive[__TCOUNT_STK_UNIT(2176)]; static __STK_UNIT _stack_TaskRobot[__TCOUNT_STK_UNIT(1024)]; const Priority tinib_inipri[TNUM_TASK] = { TPRI_MINTASK + 2, TPRI_MINTASK + 10, }; const Priority tinib_exepri[TNUM_TASK] = { TPRI_MINTASK + 2, TPRI_MINTASK + 10, }; const UINT8 tinib_maxact[TNUM_TASK] = { (1) - 1, (1) - 1, }; const AppModeType tinib_autoact[TNUM_TASK] = { 0x00000001, 0x00000001, }; const FP tinib_task[TNUM_TASK] = { TASKNAME( TaskDrive ), TASKNAME( TaskRobot ), }; const __STK_UNIT tinib_stk[TNUM_TASK] = { (__STK_UNIT)_stack_TaskDrive, (__STK_UNIT)_stack_TaskRobot, }; const UINT16 tinib_stksz[TNUM_TASK] = { 2176, 1024, }; TaskType tcb_next[TNUM_TASK]; UINT8 tcb_tstat[TNUM_TASK]; Priority tcb_curpri[TNUM_TASK]; UINT8 tcb_actcnt[TNUM_TASK]; EventMaskType tcb_curevt[TNUM_EXTTASK];
const UINT8 tnum_task = TNUM_TASK; const UINT8 tnum_exttask = TNUM_EXTTASK; /****** Object OS ******/ /****** Object TASK ******/ const TaskType ReadButtons = 0; const TaskType ReadColour = 1; const TaskType ManageState = 2; extern void TASKNAME( ReadButtons )( void ); extern void TASKNAME( ReadColour )( void ); extern void TASKNAME( ManageState )( void ); static __STK_UNIT _stack_ReadButtons[__TCOUNT_STK_UNIT(512)]; static __STK_UNIT _stack_ReadColour[__TCOUNT_STK_UNIT(512)]; static __STK_UNIT _stack_ManageState[__TCOUNT_STK_UNIT(512)]; const Priority tinib_inipri[TNUM_TASK] = { TPRI_MINTASK + 4, TPRI_MINTASK + 2, TPRI_MINTASK + 5, }; const Priority tinib_exepri[TNUM_TASK] = { TPRI_MINTASK + 4, TPRI_MINTASK + 2, TPRI_MINTASK + 5, }; const UINT8 tinib_maxact[TNUM_TASK] = { (1) - 1, (1) - 1, (1) - 1, }; const AppModeType tinib_autoact[TNUM_TASK] = { 0x00000001, 0x00000000, 0x00000000, }; const FP tinib_task[TNUM_TASK] = { TASKNAME( ReadButtons ), TASKNAME( ReadColour ), TASKNAME( ManageState ), }; const __STK_UNIT tinib_stk[TNUM_TASK] = { (__STK_UNIT)_stack_ReadButtons, (__STK_UNIT)_stack_ReadColour, (__STK_UNIT)_stack_ManageState, }; const UINT16 tinib_stksz[TNUM_TASK] = { 512, 512, 512, }; TaskType tcb_next[TNUM_TASK]; UINT8 tcb_tstat[TNUM_TASK]; Priority tcb_curpri[TNUM_TASK]; UINT8 tcb_actcnt[TNUM_TASK];
const UINT8 tnum_alarm = TNUM_ALARM; const UINT8 tnum_counter = TNUM_COUNTER; const UINT8 tnum_isr2 = TNUM_ISR2; const UINT8 tnum_resource = TNUM_RESOURCE; const UINT8 tnum_task = TNUM_TASK; const UINT8 tnum_exttask = TNUM_EXTTASK; /****** Object OS ******/ /****** Object TASK ******/ const TaskType OSEK_Main_Task = 0; extern void TASKNAME( OSEK_Main_Task )( void ); static __STK_UNIT _stack_OSEK_Main_Task[__TCOUNT_STK_UNIT(1024)]; const Priority tinib_inipri[TNUM_TASK] = { TPRI_MINTASK + 1, }; const Priority tinib_exepri[TNUM_TASK] = { TPRI_MINTASK + 1, }; const UINT8 tinib_maxact[TNUM_TASK] = { (1) - 1, }; const AppModeType tinib_autoact[TNUM_TASK] = { 0x00000001, }; const FP tinib_task[TNUM_TASK] = { TASKNAME( OSEK_Main_Task ), }; const __STK_UNIT tinib_stk[TNUM_TASK] = { (__STK_UNIT)_stack_OSEK_Main_Task, }; const UINT16 tinib_stksz[TNUM_TASK] = { 1024, }; UINT8 tcb_tstat[TNUM_TASK]; Priority tcb_curpri[TNUM_TASK]; DEFINE_CTXB(TNUM_TASK); TaskType tcb_next[TNUM_TASK]; EventMaskType tcb_curevt[TNUM_EXTTASK+1]; EventMaskType tcb_waievt[TNUM_EXTTASK+1];
const TaskType TASK_BT_INTERFACE_READER = 1; const TaskType TASK_BT_INTERFACE_WRITER = 2; const TaskType BT_IMPLIZIT_SLAVE = 3; const TaskType BT_IMPLIZIT_SLAVE2 = 4; const TaskType Input = 5; const TaskType InitHook = 6; extern void TASKNAME( Display_Task )( void ); extern void TASKNAME( TASK_BT_INTERFACE_READER )( void ); extern void TASKNAME( TASK_BT_INTERFACE_WRITER )( void ); extern void TASKNAME( BT_IMPLIZIT_SLAVE )( void ); extern void TASKNAME( BT_IMPLIZIT_SLAVE2 )( void ); extern void TASKNAME( Input )( void ); extern void TASKNAME( InitHook )( void ); static __STK_UNIT _stack_Display_Task[__TCOUNT_STK_UNIT(512)]; static __STK_UNIT _stack_TASK_BT_INTERFACE_READER[__TCOUNT_STK_UNIT(512)]; static __STK_UNIT _stack_TASK_BT_INTERFACE_WRITER[__TCOUNT_STK_UNIT(512)]; static __STK_UNIT _stack_BT_IMPLIZIT_SLAVE[__TCOUNT_STK_UNIT(512)]; static __STK_UNIT _stack_BT_IMPLIZIT_SLAVE2[__TCOUNT_STK_UNIT(512)]; static __STK_UNIT _stack_Input[__TCOUNT_STK_UNIT(512)]; static __STK_UNIT _stack_InitHook[__TCOUNT_STK_UNIT(512)]; const Priority tinib_inipri[TNUM_TASK] = { TPRI_MINTASK + 1, TPRI_MINTASK + 7, TPRI_MINTASK + 7, TPRI_MINTASK + 9, TPRI_MINTASK + 7, TPRI_MINTASK + 3, TPRI_MINTASK + 10, }; const Priority tinib_exepri[TNUM_TASK] = { TPRI_MINTASK + 1, TPRI_MINTASK + 7, TPRI_MINTASK + 7, TPRI_MINTASK + 9, TPRI_MINTASK + 7, TPRI_MINTASK + 3, TPRI_MINTASK + 10, }; const UINT8 tinib_maxact[TNUM_TASK] = { (1) - 1, (1) - 1, (1) - 1, (1) - 1, (1) - 1, (1) - 1, (1) - 1, }; const AppModeType tinib_autoact[TNUM_TASK] = { 0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001, }; const FP tinib_task[TNUM_TASK] = { TASKNAME( Display_Task ), TASKNAME( TASK_BT_INTERFACE_READER ), TASKNAME( TASK_BT_INTERFACE_WRITER ), TASKNAME( BT_IMPLIZIT_SLAVE ), TASKNAME( BT_IMPLIZIT_SLAVE2 ), TASKNAME( Input ), TASKNAME( InitHook ), }; const __STK_UNIT tinib_stk[TNUM_TASK] = { (__STK_UNIT)_stack_Display_Task, (__STK_UNIT)_stack_TASK_BT_INTERFACE_READER, (__STK_UNIT)_stack_TASK_BT_INTERFACE_WRITER, (__STK_UNIT)_stack_BT_IMPLIZIT_SLAVE, (__STK_UNIT)_stack_BT_IMPLIZIT_SLAVE2, (__STK_UNIT)_stack_Input, (__STK_UNIT)_stack_InitHook, }; const UINT16 tinib_stksz[TNUM_TASK] = { 512, 512, 512, 512, 512, 512, 512, };
#include "sample1.h" #include "hw_timer.h" #include "timer.h" #include "hw_serial.h" #include "hw_serial_rsc.h" #include "serial.h" #include "logtask.h" /* Object initializer [task] */ #define TNUM_TSKID 5 const ID _kernel_tmax_tskid = (TMIN_TSKID + TNUM_TSKID - 1); static __STK_UNIT __stack_TASK1[__TCOUNT_STK_UNIT(512)]; static __STK_UNIT __stack_TASK2[__TCOUNT_STK_UNIT(512)]; static __STK_UNIT __stack_TASK3[__TCOUNT_STK_UNIT(512)]; static __STK_UNIT __stack_MAIN_TASK[__TCOUNT_STK_UNIT(512)]; static __STK_UNIT __stack_LOGTASK[__TCOUNT_STK_UNIT(LOGTASK_STACK_SIZE)]; const TINIB _kernel_tinib_table[TNUM_TSKID] = { {0, (VP_INT)(( VP_INT ) 1), (FP)(task), INT_PRIORITY(10), __TROUND_STK_UNIT(512), __stack_TASK1, 0, (FP)(tex_routine)}, {0, (VP_INT)(( VP_INT ) 2), (FP)(task), INT_PRIORITY(10), __TROUND_STK_UNIT(512), __stack_TASK2, 0, (FP)(tex_routine)}, {0, (VP_INT)(( VP_INT ) 3), (FP)(task), INT_PRIORITY(10), __TROUND_STK_UNIT(512), __stack_TASK3, 0, (FP)(tex_routine)}, {0x00u | 0x02u, (VP_INT)(0), (FP)(main_task), INT_PRIORITY(5), __TROUND_STK_UNIT(512), __stack_MAIN_TASK, TA_NULL, (FP)(NULL)}, {0x00u | 0x02u, (VP_INT)(( VP_INT ) 1), (FP)(logtask), INT_PRIORITY(LOGTASK_PRIORITY), __TROUND_STK_UNIT(LOGTASK_STACK_SIZE), __stack_LOGTASK, TA_NULL, (FP)(NULL)} }; const ID _kernel_torder_table[TNUM_TSKID] = {1,2,3,4,5};
const UINT8 tnum_alarm = TNUM_ALARM; const UINT8 tnum_counter = TNUM_COUNTER; const UINT8 tnum_isr2 = TNUM_ISR2; const UINT8 tnum_resource = TNUM_RESOURCE; const UINT8 tnum_task = TNUM_TASK; const UINT8 tnum_exttask = TNUM_EXTTASK; /****** Object OS ******/ /****** Object TASK ******/ const TaskType OSEK_Task_Background = 0; extern void TASKNAME( OSEK_Task_Background )( void ); static __STK_UNIT _stack_OSEK_Task_Background[__TCOUNT_STK_UNIT(512)]; const Priority tinib_inipri[TNUM_TASK] = { TPRI_MINTASK + 1, }; const Priority tinib_exepri[TNUM_TASK] = { TPRI_MINTASK + 1, }; const UINT8 tinib_maxact[TNUM_TASK] = { (1) - 1, }; const AppModeType tinib_autoact[TNUM_TASK] = { 0x00000001, }; const FP tinib_task[TNUM_TASK] = { TASKNAME( OSEK_Task_Background ), }; const __STK_UNIT tinib_stk[TNUM_TASK] = { (__STK_UNIT)_stack_OSEK_Task_Background, }; const UINT16 tinib_stksz[TNUM_TASK] = { 512, }; TaskType tcb_next[TNUM_TASK]; UINT8 tcb_tstat[TNUM_TASK]; Priority tcb_curpri[TNUM_TASK]; UINT8 tcb_actcnt[TNUM_TASK]; EventMaskType tcb_curevt[TNUM_EXTTASK+1]; EventMaskType tcb_waievt[TNUM_EXTTASK+1];
#if TKERNEL_PRID != 0x0001u /* TOPPERS/JSP */ #error "You can not use this configuration file without TOPPERS/JSP" #endif /* User specified include files*/ #include "tasks.h" #include "at91sam7s.h" /* Object initializer [task] */ #define TNUM_TSKID 2 const ID _kernel_tmax_tskid = (TMIN_TSKID + TNUM_TSKID - 1); static __STK_UNIT __stack_TSK_MAIN[__TCOUNT_STK_UNIT(1024)]; static __STK_UNIT __stack_TSK_EVENT[__TCOUNT_STK_UNIT(512)]; const TINIB _kernel_tinib_table[TNUM_TSKID] = { {TA_HLNG | TA_ACT, (VP_INT)(TSK_MAIN), (FP)(tsk_main), INT_PRIORITY(5), __TROUND_STK_UNIT(1024), __stack_TSK_MAIN, TA_NULL, (FP)(NULL)}, {TA_HLNG | TA_ACT, (VP_INT)(TSK_EVENT), (FP)(tsk_event), INT_PRIORITY(3), __TROUND_STK_UNIT(512), __stack_TSK_EVENT, TA_NULL, (FP)(NULL)} }; const ID _kernel_torder_table[TNUM_TSKID] = {1,2}; TCB _kernel_tcb_table[TNUM_TSKID]; /* Object initializer [semaphore] */ #define TNUM_SEMID 1
const UINT8 tnum_task = TNUM_TASK; const UINT8 tnum_exttask = TNUM_EXTTASK; /****** Object OS ******/ /****** Object TASK ******/ const TaskType RUNNING_CONTROL = 0; const TaskType BALANCE_CONTROL = 1; const TaskType SONAR_CONTROL = 2; extern void TASKNAME( RUNNING_CONTROL )( void ); extern void TASKNAME( BALANCE_CONTROL )( void ); extern void TASKNAME( SONAR_CONTROL )( void ); static __STK_UNIT _stack_RUNNING_CONTROL[__TCOUNT_STK_UNIT(2560)]; static __STK_UNIT _stack_BALANCE_CONTROL[__TCOUNT_STK_UNIT(1024)]; static __STK_UNIT _stack_SONAR_CONTROL[__TCOUNT_STK_UNIT(512)]; const Priority tinib_inipri[TNUM_TASK] = { TPRI_MINTASK + 14, TPRI_MINTASK + 15, TPRI_MINTASK + 13, }; const Priority tinib_exepri[TNUM_TASK] = { TPRI_MINTASK + 14, TPRI_MINTASK + 15, TPRI_MINTASK + 13, }; const UINT8 tinib_maxact[TNUM_TASK] = { (1) - 1, (1) - 1, (1) - 1, }; const AppModeType tinib_autoact[TNUM_TASK] = { 0x00000001, 0x00000001, 0x00000001, }; const FP tinib_task[TNUM_TASK] = { TASKNAME( RUNNING_CONTROL ), TASKNAME( BALANCE_CONTROL ), TASKNAME( SONAR_CONTROL ), }; const __STK_UNIT tinib_stk[TNUM_TASK] = { (__STK_UNIT)_stack_RUNNING_CONTROL, (__STK_UNIT)_stack_BALANCE_CONTROL, (__STK_UNIT)_stack_SONAR_CONTROL, }; const UINT16 tinib_stksz[TNUM_TASK] = { 2560, 1024, 512, }; TaskType tcb_next[TNUM_TASK]; UINT8 tcb_tstat[TNUM_TASK]; Priority tcb_curpri[TNUM_TASK]; UINT8 tcb_actcnt[TNUM_TASK];