OS_Task_Replace (priority, TaskName)
Only in task
priority |
Task priority of a new task. Allowed values from 0 (highest) to 7 (lowest) |
TaskName |
Name of C-function to be used as task |
nothing
void Task_Zero (void) { for (;;) { RB0 = 0; OS_Task_Replace (1, Task_One); } } void Task_One (void) { for (;;) { RB0 = 1; OS_Task_Replace (1, Task_Zero); } }
OS_ReplaceTask