What's the best way to detect a change in value on a GPIO configured as OUT?
It may sound really weird why one may need that. I have a custom cape and cannot make changes to its hardware, but I need to improve certain functionality.
poll(2) on /sys/class/gpio/gpioXY/value exits with timeout.
To avoid any XY-problem I'll explain the actual situation:
The BBB's native RS-485 mode works fine with omap_serial driver, however, I cannot use actual hardware pins for RTS (RE/DE) because the above mentioned cape consumes all possibilities.
So, I assigned an unconnected GPIO to be the RTS and want to detect its state changes in a timing-critical application (tcdrain() takes too long).
Thanks for advises!
Sergey