Command disabled: backlink
 
Available Languages?:

OSA : OS_Ttimer_Delay

OS_Ttimer_Delay (delay)

Service uses system timerAllowed only in taskSwitches contexts

Delay current task using current task's timer. (Same as OS_Delay())

To use task timers you need to define OS_ENABLE_TTIMERS in OSAcfg.h. Size of current task's timers is set by OS_TTIMER_SIZE constant

Call allowed:

Allowed only in task

Parameters:

delay Time of delay. Set in system ticks - call OS_Timer periods

Returns:

nothing

Example:

void Task (void)
{
    for (;;) {
        /*...*/
        OS_Ttimer_Delay (20);    // Delay current task for 20 system ticks.
        /*...*/
    }
}

See also

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