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.

[参考译文] AM625:如何将 GPIO 输入引脚配置为中断并在应用中使用它

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1408289/am625-how-to-configure-gpio-input-pin-as-interrupt-and-use-it-in-application

器件型号:AM625

工具与软件:

嗨、团队:

我将 M24和 N20用作输入引脚、但每当输入引脚状态变为高电平时、我都会收到通知并执行操作。

任何人都可以知道如何实现这一点?

请按如下所示查找 dst 配置。


&main_pmx0{

....

/*启用 GPIO*/
usr_exp_gpio_pins_default:usr-exp-gpo-pins-default{
PINCTL-SINGLE、PINS =<
AM62X_IOPAD (0x0090、PIN_INPUT、7)/*(M24) GPMC0_BE0n_CLE.GPIO0_35 */
AM62X_IOPAD (0x0094、PIN_INPUT、7)/*(N20) GPMC0_BE1n.GPIO0_36 */
AM62X_IOPAD (0x0098、PIN_OUTPUT、7)/*(U23) GPMC0_WAIT0.GPIO0_37 */
AM62X_IOPAD (0x00a4、PIN_OUTPUT、7)/*(M22) GPMC0_DIR.GPIO0_40 *
>;
};

};


MAIN_GPIO1{
pinctrl-names ="默认值";
pinctrl-0 =<&usr_exp_gpio_pins_default>;
状态="正常";
};