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.

CC2640R2F: GPIO配置问题,IO_0配置了无法使用IO功能,一样的配置方法,其他IO均正常,不知道IO_0是不是特殊的IO口,需要怎样的配置,换过几块板验证了。

Part Number: CC2640R2F


配置过程如下:

PIN_Config WatchDogPinTable[] =
{//下拉输出,低电平
CC2640R2_LAUNCHXL_PIN_WatchDog| PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW|PIN_PULLDOWN | PIN_DRVSTR_MAX,
PIN_TERMINATE
};
WatchDog_hPin = PIN_open(&WatchDogPinState, WatchDogPinTable);
#define CC2640R2_LAUNCHXL_PIN_WatchDog IOID_0

只是要配置成普通IO输入模式,但是配置完功能不生效,其他IO配置都正常,看手册也没介绍IO_0有特殊地方,找不到原因。