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 shutdown模式下唤醒



您好,目前我的GPIO管脚既作为电平输入引脚同时也作为一个退出shutdown模式的引脚。但是我无法在shutdown模式下通过该GPIO引脚唤醒模块。POWER_SAVING是打开的

配置:

static PIN_State GPIOPinState;

static Pin_Handle hGPIOPinHandle;

PIN_Config GPIOConfig[] = {

IOID_26 | PIN_GPIO_OUTPUT_DIS | PIN_INPUT_EN | PIN_PULLDOWN,

PIN_TERMINATE

};

void GPIO_Init(void)

{

hGPIOPinHandle = PIN_open(&GPIOPinState,GPIOConfig);

if(hGPIOPinHandle  == NULL){

return;

}

#ifdef POWER_SAVING

PIN_setConfig(hGPIOPinHandle,PINCC26XX_BM_WAKEUP,IOID_26 | PINCC26XX_WAKEUP_POSEDGE);

#endif

}