主函数
int main()
{
TaskInit(&task1,task1_thread,(void*)1234,&task1_stack[1024]);
TaskInit(&task2,task2_thread,(void*)5678,&task2_stack[1024]);
TaskInit(&task_idle,idel_thread,(void*)0023,&task_idle_stack[1024]);
TaskTable[0] = &task1;
TaskTable[1] = &task2;
TaskTable[2] = &task_idle;
NextTask = TaskTable[0];
FirstTask();
}
|