Available Languages?:

OSA : OS_Stimer_Wait

OS_Stimer_Wait (stimer_id)

Allowed only in taskSwitches context

Wait for static timer to overflow.

Number of static timers OS_STIMERS (1..32) must be specified in OSAcfg.h. Size of static timers is set by OS_STIMER_SIZE constant

Call allowed:

Only in task

Parameters:

stimer_id Static timer identifier. Number and size of static timers are set in OSAcfg.h with OS_STIMERS and OS_STIMER_SIZE constants

Returns:

nothing

Example:

void Task (void)
{
    for (;;) {
        /*...*/
        OS_Stimer_Run(4, 200);
        OS_Stimer_Wait(4);  // Wait 200 ticks
        /*...*/
    }
}

Old style name

OS_WaitSTimer

See also

 
en/osa/ref/allservices/os_stimer_wait.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