I am trying to set polarity for the interrupt pin from low to high and it is not being set. The interrupt is always triggered by a transition from high to low. Why is this happening ?
This is my code to set the interrupt
/* Set interrupt pin */
ret = adi_gpio_Init(gpioMemory, ADI_GPIO_MEMORY_SIZE); //initialize gpio
ret |= adi_gpio_InputEnable(INTACC_PORT, INTACC_PIN, true); // Set INTACC_PORT as input
ret |= adi_gpio_SetGroupInterruptPolarity(INTACC_PORT, INTACC_PIN);
ret |= adi_gpio_SetGroupInterruptPins(INTACC_PORT, SYS_GPIO_INTA_IRQn, INTACC_PIN);
ret |= adi_gpio_RegisterCallback (SYS_GPIO_INTA_IRQn, pinIntCallback, NULL );