Command disabled: backlink
 
Available Languages?:

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

 
en/osa/ref/allservices/os_oldtimer_check.txt · Last modified: 07.10.2010 13:57 (external edit)
 
Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki