Hi Dao Yan Lim
1) MQX requires the use of the Interrupt 0x0f SysTick Interrupt to generate ticks for MQX, the clock source is processor clock;
while PIT0 use 0x54 to generate ticks. please see vectors.c
......
DEFAULT_VECTOR, /* 0x0F 0x0000003C - ivINT_SysTick */
......
DEFAULT_VECTOR, /* 0x54 0x00000150 - ivINT_PIT0 */
......
2) we don't recommend our customers access GPIO directly,because MQX RTOS provides a pleasant and effective user interface. The purpose is to hide details of hardware and provides a high level functions.
3) We have API to do that, please refer to the gpio demo for how to use GPIO, it is under the installation folder of MQX.
Freescale_MQX_4_2\mqx\examples\gpio
For example
lwgpio_set_attribute(&btn1, LWGPIO_ATTR_PULL_DOWN, LWGPIO_AVAL_ENABLE)
Have a great day
Daniel
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button . Thank you!
-----------------------------------------------------------------------------------------------------------------------