bool OS_Ttimer_Check ()
Check if current task's timer has overflowed.
To use task timers you need to define OS_ENABLE_TTIMERS in OSAcfg.h. Size of current task's timers is set by OS_TTIMER_SIZE constant
Allowed only in task and functions called by task (any depth)
no
false |
current task's timer is counting |
true |
current task's timer overflowed or was stopped/paused |
void Task (void) { for (;;) { /*...*/ if (OS_Ttimer_Check()) { // If timer overflowed (or not counting) OS_Ttimer_Run(100); // then re-run current task's timer } /*...*/ } }