Gathering i.MX6 GPIO interrupt

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

Gathering i.MX6 GPIO interrupt

跳至解决方案
1,448 次查看
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.

标签 (2)
标记 (3)
0 项奖励
1 解答
572 次查看
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 项奖励
1 回复
573 次查看
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 项奖励