在User idle function 0后,可以看到在main文件中的那个LEDSatus函数的名字,空闲任务就是从这里与系统关联在一起的。也可以看到在下面还可以再新建其他的空闲任务,空闲任务也不止是一个的。
而关于BIOS_start();函数,可以按上篇文章的方法可以看到它的说明:
DETAILS
The user's main() function is required to call this function after all other user initializations have been performed.
This function does not return.
This function performs any remaining SYS/BIOS initializations and then transfers control to the highest priority ready task if taskEnabled is true. If taskEnabled is false, control is transferred directly to the Idle Loop.
The SYS/BIOS start sequence is as follows:
Invoke all the functions in the startupFxns array.
call Hwi_startup() to enable interrupts.
if swiEnabled is true, call Swi_startup() to enable the Swi scheduler.
Start any statically created or constructed Timers in the Timer_StartMode_AUTO mode.
if taskEnabled is true, enable the Task scheduler and transfer the execution thread to the highest priority task in the Task_Mode_READY mode.