Lightweight Timer

Lightweight timer is an optional component that provides periodic notification to the application. An application creates a lightweight timer queue and adds timers to it. The timers expire at the same rate as the queue's period, but offset from the queue expiration time.

Lightweight timer is installed by creating a periodic queue, then adding a timer to expire at some offset from the start of the period. When adding a lightweight timer to the queue, a notification function is specified that is called by the MQX Lite tick ISR when the timer expires.

There is no difference between the Lightweight Timer component in the standard MQX and the MQX Lite. The list of Lightweight Timer component API functions ( _lwtimer_ prefix) is provided together with detailed description of each function in the Freescale MQX™ Lite RTOS Reference Manual (MQXLITERM).




This Information Center content is based on MQXLITEUG Rev 1.1, 09/2013, which can be downloaded from www.freescale.com.