OSA : OS_Wait

OS_Wait (condition)

Allowed only in taskSwitches context

Wait until condition is true.

Call allowed:

Only in task

Parameters:

condition Any boolean expression

Returns:

nothing

Example:

void Task (void)
{
    for (;;) {
        /*...*/
        OS_Wait(a < 5 && TMR1IF);
        /*...*/
    }
}

Old style name

OS_WaitCondition

OS_Cond_Wait

See also