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: 低功耗设计中,使用Power_setDependency设置规则失败

Part Number: CC2640R2F


我在尝试实现一款低功耗的透传设备,我在main.c使用如下代码开启了电源管理节能:

int main()
{
    ...
    Power_init();
    Power_enablePolicy();
    Power_releaseConstraint(PowerCC26XX_SB_DISALLOW);
    ...
}

我给串口设置了中断接收,我需要我的串口一直具备接收的功能,所以我在my_peripheral.c中,使用如下代码设置了规则来避免串口被电源管理程序屏蔽:

myBLE_peripheral_init()
{
    ...
    UserUartInit();
    UartSendData("Init over\r\n",11);

    Power_setDependency(PowerCC26XX_PERIPH_UART0);
    ...
}

程序似乎没有如我预期一般执行,我的串口只能发送数据,不能正常接收数据,请问是我的方式有什么问题吗,如何实现我的目的,有相关的例子可以参考吗?

感谢解答