#include <rtl.h>
OS_ID os_tmr_create (
U16 tcnt, /* Length of the timer. */
U16 info ); /* Argument to the callback function. */
Description
The os_tmr_create function sets up and starts a timer. When
the timer expires, the RTX kernel calls the user defined
os_tmr_call callback function and passes info as an
argument to the os_tmr_call function.
The tcnt argument specifies the length of timer, in number
of system ticks. You can specify tcnt to any value between 1 and
0xFFFF.
The os_tmr_create function is in the RL-RTX library. The
prototype is defined in rtl.h.
Return Value
The os_tmr_create function returns a timer ID if the timer
was successfully created. Otherwise, it returns NULL.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.