hi
I want to use LPIT0_Ch1, modify demo hello_interrupts,initial config is as follow, enable interrupt flag lpit_ch1,but can not enter LPIT0_Ch1_IRQHandler , how to enter LPIT0_Ch1_IRQHandler interrupt? TKS
Hi,
Did you enable the interrupt?
void NVIC_init_IRQs (void) {
S32_NVIC->ICPR[1] = 1 << (49 % 32); /* IRQ49-LPIT0 ch1: clr any pending IRQ*/
S32_NVIC->ISER[1] = 1 << (49 % 32); /* IRQ49-LPIT0 ch1: enable IRQ */
S32_NVIC->IP[49] = 0xA0; /* IRQ49-LPIT0 ch1: priority 10 of 0-15*/
}
Also, it needs to be enabled in LPIT0_MIER register
LPIT0->MIER = 0x00000003;
Regards,
Daniel
Hi,
I don't see any reason for this.
Did you really enable NVIC interrupts 48 and 49?
Regards,
Daniel