#define HI3220_INT_PORT ADI_GPIO_PORT_A
#define HI3220_INT_PIN ADI_GPIO_PIN_1
Using the following calls, I am unable to trigger an interrupt on PA_01
gpioResult = adi_gpio_Init(gpioMemory, HI3220_GPIO_MEMORY,
&gpioMaxCallbacks);
checkResult(gpioResult, ADI_GPIO_SUCCESS, __func__, __LINE__);
gpioResult = adi_gpio_SetDirection(HI3220_INT_PORT, HI3220_INT_PIN,
ADI_GPIO_DIRECTION_INPUT);
checkResult(gpioResult, ADI_GPIO_SUCCESS, __func__, __LINE__);
/* set edge sense mode (PORT A is connected to Pin Interrupt 0)*/
gpioResult = adi_gpio_SetPinIntEdgeSense(ADI_GPIO_PIN_INTERRUPT_0,
HI3220_INT_PIN,
ADI_GPIO_SENSE_FALLING_EDGE);
checkResult(gpioResult, ADI_GPIO_SUCCESS, __func__, __LINE__);
/* register Pin Interrupt 0 callback */
gpioResult = adi_gpio_RegisterCallback(ADI_GPIO_PIN_INTERRUPT_0,
HI3220_INT_PIN,
HI3220InterruptCallback, (void*)0);
checkResult(gpioResult, ADI_GPIO_SUCCESS, __func__, __LINE__);
/* set Pin Interrupt 0 mask */
gpioResult = adi_gpio_EnablePinInterruptMask(ADI_GPIO_PIN_INTERRUPT_0,
HI3220_INT_PIN, true);
checkResult(gpioResult, ADI_GPIO_SUCCESS, __func__, __LINE__);
What am I missing?