1.Ucos2
1.1 ucos2
1.2 ucos3

2.启动程序
app.c
int main(void){CPU_INT08U os_err; //ucos2类型//BSP_IntDisAll(); /* Disable all ints until we are ready to accept them. */CPU_IntDis(); //CPU中断禁止OSInit(); //操作系统初始化 /* Initialize "uC/OS-II, The Real-Time Kernel". */BSP_Init(); //BSP初始化 /* Initialize BSP functions. */App_DispScr_SignOn();printf("OS Init OK!\r\n");os_err = OSTaskCreate((void (*) (void *)) App_TaskStart,/* Create the start task. */(void *) 0,(OS_STK *) &App_TaskStartStk[APP_TASK_START_STK_SIZE - 1],(INT8U) APP_TASK_START_PRIO);printf("Creat App_TaskStart!\r\n");#if (OS_TASK_NAME_SIZE >= 11)OSTaskNameSet(APP_TASK_START_PRIO, (CPU_INT08U *) "Start Task", &os_err);#endif// InfoSem = OSSemCreate(0);// Disp_Box = OSMboxCreate((void *) 0);OSTimeSet(0);OSStart(); /* Start multitasking (i.e. give control to uC/OS-II). */return (0);


