IMX6DQ ONOFF button configure in QNX

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IMX6DQ ONOFF button configure in QNX

1,147件の閲覧回数
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.

ラベル(3)
0 件の賞賛
返信
1 返信

938件の閲覧回数
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 件の賞賛
返信