OSA : OS_Oldtimer_Wait

OS_Oldtimer_Wait (timer_id)

Allowed only in taskSwitches context

Using old style static timers is not recommended. Use static timers instead.

Wait until old style static timer overflows.

Call allowed:

Only in task

Parameters:

timer_id old style static timer's identifier.

Returns:

nothing

Example:

void Task (void)
{
    for (;;) {
        /*...*/
        OS_Oldtimer_Run8(1, 100);
        OS_Oldtimer_Wait(1);
        /*...*/
    }
}

Old style name

OS_WaitTimer

See also