#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.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.