Gathering i.MX6 GPIO interrupt

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

Gathering i.MX6 GPIO interrupt

ソリューションへジャンプ
2,207件の閲覧回数
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 解決策
1,331件の閲覧回数
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 返信
1,332件の閲覧回数
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 件の賞賛
返信