OS_Task_Stop ()
Stop task and delete it from the list of active tasks. A task can only be stopped by itself. To stop another task use service OS_Task_Delete().
Only in task
None
nothing
void Task (void) { for (;;) { /*...*/ // Free all resources /*...*/ // And stop current task OS_Task_Stop(); /*...*/ } }
OS_StopTask