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.

[参考译文] LAUNCHXL-CC2640R2:从 Project Zero 开始、如何在 DIO 引脚上添加 Hwi

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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/983786/launchxl-cc2640r2-starting-from-project-zero-how-to-add-a-hwi-on-a-dio-pin

器件型号:LAUNCHXL-CC2640R2

您好!

我正在使用标题中的 launchpad 并测试 TI 的几个驱动程序以进行我的主论文。 我需要检查的最后一个驱动程序是 GPIO、它在低电平有效的 DIO 上触发中断(如果引脚为低电平则触发中断)。 但是、我真的不熟悉 TI 驱动程序、我找不到包含我必须对 Project Zero 进行的所有更改以添加此功能的代码模板。

那么、如何初始化 DIO 引脚(例如 DIO30)以触发中断、从而调用主代码中的特定回调函数(注意引脚为低电平有效)?

感谢你的帮助。

此致、  
FYON Arthur。