Hi james kim,
Which detail pin you want to as the GPIO interrupt? IOMUXC_GPIO_AD_B0_03_GPIO1_IO03, this one?
If yes, do you configure this pin as the GPIO function in the pin_mux.c?
IOMUXC_SetPinMux(
IOMUXC_GPIO_AD_B0_03_GPIO1_IO03,
0U);
The GPIO interrupt configure code should be:
gpio_pin_config_t sw_config = {
kGPIO_DigitalInput,
0,
kGPIO_IntRisingEdge,
};
EnableIRQ(GPIO1_Combined_0_15_IRQn);
GPIO_PinInit(GPIO1, 3U, &sw_config);
/* Enable GPIO pin interrupt */
GPIO_PortEnableInterrupts(GPIO1, 1U << 3);
#define EXAMPLE_GPIO_IRQHandler GPIO1_Combined_0_15_IRQHandler
void EXAMPLE_GPIO_IRQHandler(void)
{
/* clear the interrupt status */
GPIO_PortClearInterruptFlags(GPIO1, 1U << 3);
/* Change state of switch. */
g_InputSignal = true;
/* Add for ARM errata 838869, affects Cortex-M4, Cortex-M4F Store immediate overlapping
exception return operation might vector to incorrect interrupt */
#if defined __CORTEX_M && (__CORTEX_M == 4U)
__DSB();
#endif
}

Then you can write the interrupt handler code in the EXAMPLE_GPIO_IRQHandler , EXAMPLE_GPIO_IRQHandler = GPIO1_Combined_0_15_IRQHandler, just redefine the interrupt handler name.
I suggest you test the SDK GPIO interrupt sample code directly at first, after it works, then you can modify the GPIO pin to your own pin.
If you still have issues about it, please kindly let me know.
Wish it helps you!
Kerry
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------