OS_Stimer_Run (stimer_id, time)
Start counting static timer for time time. Timeout flag is cleared.
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
Everywhere
stimer_id |
Static timer identifier. Number and size of static timers are set in OSAcfg.h with OS_STIMERS and OS_STIMER_SIZE constants |
time |
Value to set timer's counter. Sets in system ticks - call OS_Timer periods. Size of time value must be less than size of timer |
nothing
void Task (void) { for (;;) { /*...*/ OS_Stimer_Run (1, 20); // Run static timer #1 for 20 ticks /*...*/ } }
OS_RunSTimer