Hi Brent,
Regarding to the KSDK V2.0, for instance, you can set up the PIT interrupt function PIT_LED_HANDLER() in following.
#define PIT_LED_HANDLER PIT0_IRQHandler
#define PIT_IRQ_ID PIT0_IRQn
void PIT_LED_HANDLER(void)
{
/* Clear interrupt flag.*/
PIT_ClearStatusFlags(PIT, kPIT_Chnl_0, PIT_TFLG_TIF_MASK);
pitIsrFlag = true;
}
vodi main()
{
~~~~~
| /* Enable at the NVIC */ |
| EnableIRQ(PIT_IRQ_ID); |
~~~~~
}
And the PIT0_IRQn and PIT0_IRQHander are defined in MKxx.h and startup_MKxx.s respectively.
Have a great day,
Ping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------