void vACoRoutineFunction( CoRoutineHandle_t xHandle, UBaseType_t uxIndex ) { crSTART( xHandle ); for( ;; ) { -- Co-routine application code here. -- } crEND(); }
调用 xCoRoutineCreate() 即可创建协程。
注意事项: