OS_Ttimer_Delay (delay)
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
Allowed only in task
delay |
Time of delay. Set in system ticks - call OS_Timer periods |
nothing
void Task (void) { for (;;) { /*...*/ OS_Ttimer_Delay (20); // Delay current task for 20 system ticks. /*...*/ } }