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