bool OS_Oldtimer_Check (timer_id)
Using old style static timers is not recommended. Use static timers instead.
Check if static timer overflowed.
Everywhere
timer_id |
old style static timer's identifier. |
false |
static timer is counting |
true |
static timer overflowed or was stopped/paused |
void Task (void) { for (;;) { /*...*/ if (OS_Oldtimer_Check(4)) { // If timeout OS_Oldtimer_Run8(4); // then re-run static timer } /*...*/ } }
OS_CheckTimer