I am trying to implement a low-power transparent device, and I have enabled power management and energy-saving using the following code in main. c
int main()
{
...
Power_init();
Power_enablePolicy();
Power_releaseConstraint(PowerCC26XX_SB_DISALLOW);
...
}
I have set up interrupt reception for the serial port, and I need my serial port to always have the function of receiving. Therefore, in (my_peripheral. c), I used the following code to set rules to avoid the serial port being blocked by the power management program:
myBLE_peripheral_init()
{
...
UserUartInit();
UartSendData("Init over\r\n",11);
Power_setDependency(PowerCC26XX_PERIPH_UART0);
...
}
It seems that the program did not execute as I expected. My serial port can only send data and cannot receive data normally. Is there any problem with my method, how to achieve my goal, and are there any relevant examples to refer to?