Dear Daniel:
Thanks for your reply! this is caused I want to change to channel 2.
According to your guide, the code is as below:
void LPIT_ISR1(void)
{
LPIT_DRV_ClearInterruptFlagTimerChannels(FSL_LPIT1, (1 <<1));
GPIO_HAL_TogglePins(PTB,1<<5);
}
But it stil can't enter channel 1 interrupt function, even I closed channel 0 as below:
// INT_SYS_InstallHandler(48,&LPIT_ISR,(isr_t*)0);
INT_SYS_InstallHandler(49,&LPIT_ISR1,(isr_t*)0);
LPIT_DRV_Init(FSL_LPIT1, &lpit1_InitConfig);
// LPIT_DRV_InitChannel(FSL_LPIT1, 0, &lpit1_ChnConfig0);
LPIT_DRV_InitChannel(FSL_LPIT1, 1, &lpit1_ChnConfig1);
// LPIT_DRV_StartTimerChannels(FSL_LPIT1, (1 << 0));
LPIT_DRV_StartTimerChannels(FSL_LPIT1, (1 << 1));
Can you help try in your board?
Thanks!