OS_Wait (condition)
Wait until condition is true.
Only in task
condition
nothing
void Task (void) { for (;;) { /*...*/ OS_Wait(a < 5 && TMR1IF); /*...*/ } }
OS_WaitCondition
OS_Cond_Wait