IMX6DQ ONOFF button configure in QNX

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX6DQ ONOFF button configure in QNX

671 Views
julesg
Contributor I

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.

Labels (3)
0 Kudos
1 Reply

462 Views
igorpadykov
NXP Employee
NXP Employee

Hi Jules

ONOFF is decribed in sect. 10.5 i.MX6DQ Reference Manual (rev.2  7/2014)

1.jpg

regarding A and B, I am afraid these are not configurable.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos