OSA : OS_Oldtimer_Check

bool OS_Oldtimer_Check (timer_id)

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

Check if static timer overflowed.

Call allowed:

Everywhere

Parameters:

timer_id old style static timer's identifier.

Returns:

false static timer is counting
true static timer overflowed or was stopped/paused

Example:

void Task (void)
{
    for (;;) {
        /*...*/
        if (OS_Oldtimer_Check(4)) {    // If timeout
            OS_Oldtimer_Run8(4);       // then re-run static timer
        }
        /*...*/
    }
}

Old style name

OS_CheckTimer

See also