====== OSA : OS_Oldtimer_Check ======
**bool OS_Oldtimer_Check (timer_id)**\\
=== ===
**Using ##[[en:osa:ref:appendix:old style static timers|old style static timers]]## is not recommended. Use ##[[en:osa:ref:services:timers#static timers|static timers]]## instead.**
Check if static timer overflowed.
=== Call allowed: ===
Everywhere
=== Parameters: ===
{| class = "fpl"
|-
|//''timer_id''//
|##[[en:osa:ref:appendix:old style static timers|old style static timer's]]## identifier.
|}
=== Returns: ===
{| class = "fpl"
|-
|//''false''//
| static timer is counting
|-
|//''true''//
| static timer overflowed or was stopped/paused
|}
=== Example: ===
void Task (void)
{
for (;;) {
/*...*/
if (OS_Oldtimer_Check(4)) { // If timeout
OS_Oldtimer_Run8(4); // then re-run static timer
}
/*...*/
}
}
=== Old style name ===
**OS_CheckTimer**\\
=== See also ===
* [[en:osa:ref:allservices:OS_Oldtimer_Run8|OS_Oldtimer_Run8]]
* [[en:osa:ref:allservices:OS_Oldtimer_Run16|OS_Oldtimer_Run16]]
* [[en:osa:ref:allservices:OS_Oldtimer_Run24|OS_Oldtimer_Run24]]
* [[en:osa:ref:allservices:OS_Oldtimer_Run32|OS_Oldtimer_Run32]]
* [[en:osa:ref:allservices:OS_Oldtimer_Stop|OS_Oldtimer_Stop]]
* [[en:osa:ref:allservices:OS_Oldtimer_Wait|OS_Oldtimer_Wait]]
----
* [[en:osa:ref:services:alphabetical|Alphabetical]]
* [[en:osa:ref:services:brieflist|All services]]
~~UP~~