Gathering i.MX6 GPIO interrupt

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

Gathering i.MX6 GPIO interrupt

Jump to solution
1,433 Views
JHY
Contributor IV

I am using i.MX6(SABRE-SDP) and Linux 3.10.53.

There are two buttons labeled Volume Up and Down.

When click those, I got message like below.

# dmesg -c

...

[ 2875.895728] evbug: Event. Dev: input1, Type: 1, Code: 114, Value: 0

...

[ 2873.265728] evbug: Event. Dev: input1, Type: 1, Code: 115, Value: 1

...

This is just kernel messages, I do not know how can handle those interrupt.

So my question is that how can I sense those events in my application?

Is there a linux application guide? For example, when pushing the key, print out debuging message.

Thank you.

Labels (2)
Tags (3)
0 Kudos
1 Solution
557 Views
igorpadykov
NXP Employee
NXP Employee

Hi JHY

one can look at linux ../DOC/gpio.txt,input-programming.txt

link below gives useful references

Configure GPIO as interrupt source

https://patchwork.kernel.org/patch/1293451/

Best regards

igor

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

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

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

View solution in original post

0 Kudos
1 Reply
558 Views
igorpadykov
NXP Employee
NXP Employee

Hi JHY

one can look at linux ../DOC/gpio.txt,input-programming.txt

link below gives useful references

Configure GPIO as interrupt source

https://patchwork.kernel.org/patch/1293451/

Best regards

igor

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

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

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

0 Kudos