OS_Delay (delaytime)
Delay current task using internal task timer.
Constant OS_ENABLE_TTIMERS must be defined in OSAcfg.h.
Only in task
delaytime |
Time of delay. Set in system ticks - call OS_Timer periods |
nothing
void Task (void) { for (;;) { /*...*/ OS_Delay(100); // Delay task for 100 system ticks /*...*/ } }