OS_Ttimer_Run (time)
Start counting current task's timer for time time. Timeout flag is cleared.
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)
time |
Value to set in 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_Ttimer_Run (20); // Run current task's timer for 20 ticks /*...*/ } }