I'm trying to trigger an interrupt on both edges of a GPIO button press for the onboard tactile switches on a BF707 dev board. I'm using the example GPIO code, and the interrupt works fine when edge sense is set to rising edge or falling edge. However, if I set it to ADI_GPIO_SENSE_BOTH_EDGES, CheckResult fails with result = ADIO_GPIO_INVALID_EDGE_SENSE.
Any idea why this could be happening?
/* set input edge sense */
result = adi_gpio_SetPinIntEdgeSense(