高手帮帮忙,指点指点。
下面main()函数里面return 0会被执行吗?
int main(void)
{
CPU_INT08U os_err;
BSP_IntDisAll(); /* Disable all ints until we are ready to accept them. */
OSInit(); /* Initialize "uC/OS-II, The Real-Time Kernel". */
BSP_Init(); /* Initialize BSP functions. */
ReaderParamInit(); //
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");
OSTimeSet(0);
OSStart(); /* Start multitasking (i.e. give control to uC/OS-II). */
return 0;
} |