bool OS_Stimer_Check (stimer_id)
Check if static timer overflow.
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 |
static timer is counting |
true |
static timer overflowed or was stopped/paused |
void Task (void) { for (;;) { /*...*/ if (OS_Stimer_Check(2)) { // If timer 2 overflowed OS_Stimer_Run(2, 100); // then re-run static timer } /*...*/ } }
OS_CheckSTimer