Hi,
In the gpio_input_interrupt example for the FRDM-KE15Z, the interrupt is configured using PORT_SetPinInterruptConfig(). The pin for SW2 is on GPIOB and the port used in the example is PORTB. Is there any value in using a different port when calling this function. Is it always necessary to match the GPIO module and the port? Can they be mixed?
Thank you very much,
Andre.
Hi Frotz,
Yes, the io interrupt control register is in PORT group, not in gpio group. GPIOA is corresponding to PORTA and GPIOB is corresponding to PORTB. This is fixed.
Once PORT_SetPinInterruptConfig() is called, it only can enable one interrupt from a certain group pins.
Regards,
Jing