bool OS_Stimer_IsRun (stimer_id)
Check if static timer is running.
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 |
false |
timer is stopped or paused |
true |
timer is running |
void Task (void) { for (;;) { /*...*/ if (!OS_Stimer_IsRun(2)) // if timer 2 is not running OS_Stimer_Run(2, 100); // then run it /*...*/ } }
OS_IsSTimerRun