1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

kinetis: GPIO: avoid dup calls to cortexm_isr_end on KW41Z

Devices with combined IRQs would call the cortexm_isr_end handler twice
when it is part of the irq_handler routine.
This commit is contained in:
Joakim Nohlgård 2018-11-07 13:05:50 +01:00
parent b9ceac5ccc
commit 8bb73f237d

View File

@ -323,13 +323,13 @@ static inline void irq_handler(PORT_Type *port, int port_num)
}
}
}
cortexm_isr_end();
}
#ifdef PORTA_BASE
void isr_porta(void)
{
irq_handler(PORTA, 0);
cortexm_isr_end();
}
#endif /* PORTA_BASE */
@ -337,6 +337,7 @@ void isr_porta(void)
void isr_portb(void)
{
irq_handler(PORTB, 1);
cortexm_isr_end();
}
#endif /* ISR_PORT_B */
@ -344,6 +345,7 @@ void isr_portb(void)
void isr_portc(void)
{
irq_handler(PORTC, 2);
cortexm_isr_end();
}
#endif /* ISR_PORT_C */
@ -351,6 +353,7 @@ void isr_portc(void)
void isr_portd(void)
{
irq_handler(PORTD, 3);
cortexm_isr_end();
}
#endif /* ISR_PORT_D */
@ -358,6 +361,7 @@ void isr_portd(void)
void isr_porte(void)
{
irq_handler(PORTE, 4);
cortexm_isr_end();
}
#endif /* ISR_PORT_E */
@ -365,6 +369,7 @@ void isr_porte(void)
void isr_portf(void)
{
irq_handler(PORTF, 5);
cortexm_isr_end();
}
#endif /* ISR_PORT_F */
@ -372,6 +377,7 @@ void isr_portf(void)
void isr_portg(void)
{
irq_handler(PORTG, 6);
cortexm_isr_end();
}
#endif /* ISR_PORT_G */
@ -381,6 +387,7 @@ void isr_portb_portc(void)
{
irq_handler(PORTB, 1);
irq_handler(PORTC, 2);
cortexm_isr_end();
}
#endif
#endif /* MODULE_PERIPH_GPIO_IRQ */