This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] Linux/AM5728:GPIO 密钥

Guru**** 2933260 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/670949/linux-am5728-gpio-keys

器件型号:AM5728

工具/软件:Linux

大家好、

我正在使用我们的定制板、能够将少量 GPIO 配置为 GPIO_keys。

我已配置如下:

用户1{
标签="UP";
linux、code = ;
GPIO =<&GPIO3 7 GPIO_ACTIVE_LOW>;
};

能够使用 evtest 命令测试中断、

事件:时间1520873640.120477、类型1 (EV_KEY)、代码103 (KEY_UP)、值1
事件:时间1520873640.120477,--- SYN_REPORT --------
事件:时间1520873640.286905、类型1 (EV_KEY)、代码103 (KEY_UP)、值0
事件:时间1520873640.286905,--- SYN_REPORT --------

我将获得上升和下降增压的事件。

但我对这一点有以下疑问:

如何仅配置下降沿?

2.我需要为按下的按键设置特定功能,我该怎么做? 我是否需要为该中断事件执行 ISR?

谢谢