OSA : OS_Delay

OS_Delay (delaytime)

Allowed only in taskSwitches contextUses timer

Delay current task using internal task timer.

Constant OS_ENABLE_TTIMERS must be defined in OSAcfg.h.

Call allowed:

Only in task

Parameters:

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

Returns:

nothing

Example:

void Task (void)
{
    for (;;) {
        /*...*/
        OS_Delay(100);   // Delay task for 100 system ticks
        /*...*/
    }
}

See also