- task create
- task delete
- task delay
- signal(Include ISR mode)
- mutex(Include ISR mode)
- message(Include ISR mode)
- soft timer
- stack check
/* init the OS,Include all the Data structure */
OS_Init();
/* create user task */
TaskCreate((OS_CPU_INT) Task_0, Task_0_Stack, Task_0_StackSize, Task_0_Prio);
/* Start the OS */
OS_Start();
/* The following means : Call TimerTask_1 every 10 ticks */
OS_TIMER_ADD((OS_CPU_INT) TimerTask_1, 10, OS_TIMER_TYPE_PERIOD, 0);
/* the following means:call TimerTask_2 every 10 ticks,only call 4 times */
OS_TIMER_ADD((OS_CPU_INT) TimerTask_2, 10, OS_TIMER_TYPE_nTimes, 4);