This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Starterware/AM3356: GPIO edge detection for both edges

Part Number: AM3356

Tool/software: Starterware

Hi.

The next is related to am355x soc and built-in gpio controller.

I want to invoke callback1 on RISING EDGE and callback2 on FALLING EDGE from gpio interrupt handler.

From the datasheet i understood, that for enabling both edges interrupts on pin N

i should write this pin number to GPIO_RISINGDETECT and GPIO_FALLINGDETECT registers.

But how do I know if irq was caused by rising or by falling edge?

Thank you.