AnsweredAssumed Answered

IMX6DQ ONOFF button configure in QNX

Question asked by Jules Gaudreault on Sep 10, 2015
Latest reply on Sep 10, 2015 by igorpadykov

Hello, we are using QNX on an iMX6 board. I need to configure the ONOFF button so that:

  1. 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
  2. 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:

 

  1. How do IRQ#36 to trigger on a rising or falling edge of the ONOFF button?
  2. How do I configure the time the user has to press the button before an interrupt is triggered?

 

Thanks.

Outcomes