Sorry for my misunderstanding, do you refer to the hardware timer like the LPTMR?
In this case please check the HWTimer driver (new, experimental), this driver provides a C language API for uniform access to the features of various HW timer modules such as PIT, SysTick, etc.
The source code for HWTIMER drivers is located in source\io\hwtimer directory.
All API functions take a pointer to caller allocated HWTIMER structure keeping the context necessary for the driver. This structure is opaque to the caller. The main purpose of the upper layer API is to provide the
abstraction of the hardware specific lower layer driver.
For more information about this driver please check the Freescale MQX™ RTOS I/O Drivers User’s Guide (chapter 27)
In addition, you can find an example at the path C:\Freescale\Freescale_MQX_4_1\mqx\examples\hwtimer, this example shows usage of HW timer driver abstraction. Demonstrates how to initialize HW timer for various modules, set frequency, callback, start, and stop the timer.
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------