OS_Stimer_Delay (stimer_id, delay)
Delay current task using static timer.
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
Only in task
stimer_id |
Static timer identifier. Number and size of static timers are set in OSAcfg.h with OS_STIMERS and OS_STIMER_SIZE constants |
delay |
Time of delay. Set in system ticks - call OS_Timer periods |
nothing
void Task (void) { for (;;) { /*...*/ OS_Stimer_Delay (3, 20); // Delay current task for 20 system ticks. /*...*/ } }
OS_DelaySTimer