====== OSA : OS_Oldtimer_Run16 ======
**OS_Oldtimer_Run16 (timer16_id, time)**\\
=== ===
**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.**
Start counting 16-bit static timer.
##Number of 16-bit static timers [[en:osa:ref:appendix:configuration#System constants|OS_TIMERS16]]## (1..32) must be specified in ##[[en:osa:ref:appendix:configuration|OSAcfg.h.]]##
=== Call allowed: ===
Everywhere
=== Parameters: ===
{| class = "fpl"
|-
|//''timer16_id''//
|##[[en:osa:ref:appendix:old style static timers|old style static timer's]]## identifier. Number of 16-bit static timers is set by ##[[en:osa:ref:appendix:configuration#Data consist|OS_TIMERS16]]## constant (0 to 31) in ##[[en:osa:ref:appendix:configuration|OSAcfg.h]]##
|-
|//''time''//
|Value to set timer's counter. Sets in system ticks - call ##[[en:osa:ref:allservices:OS_Timer|OS_Timer]]## periods. Size of //time// value must be less than size of timer
|}
=== Returns: ===
nothing
=== Example: ===
void Task (void)
{
for (;;) {
/*...*/
OS_Oldtimer_Run16 (3, 40000);
/*...*/
}
}
=== Old style name ===
**OS_RunTimer16**\\
=== See also ===
* [[en:osa:ref:allservices:OS_Oldtimer_Run8|OS_Oldtimer_Run8]]
* [[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_Check|OS_Oldtimer_Check]]
* [[en:osa:ref:allservices:OS_Oldtimer_Wait|OS_Oldtimer_Wait]]
----
* [[en:osa:ref:services:alphabetical|Alphabetical]]
* [[en:osa:ref:services:brieflist|All services]]
~~UP~~