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.

[参考译文] CC2650:GPIOPinRead 问题

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

https://e2e.ti.com/support/wireless-connectivity/zigbee-thread-group/zigbee-and-thread/f/zigbee-thread-forum/611158/cc2650-gpiopinread-problem

器件型号:CC2650

您好!

我尝试使用 CC2650EMK (具有 SmartRF)上的引脚作为输入。 我使用了线路:

GPIODirModeSet (GPIO_PIN_11、GPIO_DIR_MODE_IN);//1.14.

但是、当我从引脚读取时:

uint32_t 读取= GPIOPinRead (GPIO_PIN_11);

它不响应引脚上的电压。 我阅读了上一个主题: https://e2e.ti.com/support/wireless_connectivity/zigbee_6lowpan_802-15-4_mac/f/158/p/489184/1765428#1765428

建议之一是启用 GPIO 时钟、但我找不到执行该操作的函数。

我该怎么做?

提前感谢

此致、

* James *