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:读出 GPIO 引脚

Guru**** 2563960 points


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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/958757/cc2650-read-out-gpio-pin

器件型号:CC2650

您好!
请帮助。 我只想读取 GPIO 2的输入状态、但它不起作用:

/******** GPIO 引脚设置******** /

PIN_Config buttonPinTable[] = {
    IOID_2  | PIN_INPUT_EN | PIN_NOPULL };

MAIN ()

/********* 引脚表初始化********* /

GpioPin = PIN_OPEN (&State、BoardGpioInitTable);

/******** 引脚状态读为'******** /

button_status = PIN_getInputValue (Board_DOOR 状态);