|
楼主 |
发表于 2024-9-19 16:31:01
|
显示全部楼层
本帖最后由 Slacky 于 2024-9-19 16:32 编辑
Hello.
I configure the uart every time after sleep.
- void user_init(bool isRetention) {
- #if PA_ENABLE
- rf_paInit(PA_TX, PA_RX);
- #endif
- #if PM_ENABLE
- app_wakeupPinConfig();
- #endif
- app_uart_init();
复制代码
- void app_uart_init() {
- flush_ring_buff();
- drv_uart_pin_set(GPIO_UART_TX, GPIO_UART_RX);
- drv_uart_init(BAUDRATE_UART, (uint8_t*)&rec_buff, sizeof(uart_data_t), app_uartRecvCb);
- }
复制代码
The problem is that the chip does not wake up when data appears on the RX. |
|