TWR-K60N512 - need accelerometer example in interrupt mode (IRQ PTD10)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

TWR-K60N512 - need accelerometer example in interrupt mode (IRQ PTD10)

跳至解决方案
932 次查看
Magnetron
Contributor III

Hi, all.

 

I look for accelerometer example in interrupt mode.

How MQX RTOS knows to detect hardware interrupt from accelerometer (IRQ PTD10)?

 

Anybody can help me?

0 项奖励
回复
1 解答
537 次查看
anthony_huereca
NXP Employee
NXP Employee

Hi Magnetron,

  You would set up that pin as an GPIO input that supports interrupts.

 

  Look in the DemoIO.c file in the K60 Quick Start Demo to see an example of how this was done with the push buttons on the board.

在原帖中查看解决方案

0 项奖励
回复
1 回复
538 次查看
anthony_huereca
NXP Employee
NXP Employee

Hi Magnetron,

  You would set up that pin as an GPIO input that supports interrupts.

 

  Look in the DemoIO.c file in the K60 Quick Start Demo to see an example of how this was done with the push buttons on the board.

0 项奖励
回复