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

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

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

Jump to solution
852 Views
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 Kudos
1 Solution
457 Views
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.

View solution in original post

0 Kudos
1 Reply
458 Views
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 Kudos