Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Starterware/AM3356: GPIO edge detection for both edges

$
0
0

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.


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>