bool OS_IsTimeout ()
Everywhere
None
false |
event occurred before timeout expired |
true |
timeout expired before event occurred |
void Task (void) { for (;;) { /*...*/ OS_Wait_TO(RB0 == 1, 100); if (!OS_IsTimeout()) { // /*...*/ } /*...*/ } }