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.

Use of GPIO Rising Edge and Falling Edge Interrupts

Other Parts Discussed in Thread: OMAP-L138, SYSBIOS

Using OMAP-L138 with SYSBIOS

I would like to use both GPIO Rising Edge and Falling Edge Interrupts and do an Event_post on both conditions. However, I can't figure out how to do this unambiguously (in software). The INTSTATx register only tells me that an interrupt has occurred, it doesn't tell me if it was a Rising or Falling Edge. At the moment I look at the state of the GPIO line in the ISR and figure out which one occurred that way, but there is a potential race condition there (if the GPIO Rising and Falling Edges are very close together) . I potentially could solve it in hardware by connecting 2 GPIOs together and enabling the Rising Edge Interrupt on one and the Falling Edge Interrupt on the other, but maybe I am missing some subtlety of spruh77a.pdf that solves my problem in software.

Regards,

Alun Hawkins