Hello, we are using QNX on an iMX6 board. I need to configure the ONOFF button so that:
- a long press and hold (greater than 5 sec) will cause entire system to shut down. This is working already with the code I have
- a short press and hold (say 2 seconds) will cause an interrupt to trigger in which case SW will shutdown all processes before shutting down the system.
Item #1 seems to work and I am able to detect button presses via IRQ # 36 however my questions are now as follows:
- How do IRQ#36 to trigger on a rising or falling edge of the ONOFF button?
- How do I configure the time the user has to press the button before an interrupt is triggered?