mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-10-20 22:31:30 +08:00
fix(esp8266): fix system and wifi sleep/wake process error
This commit is contained in:
@@ -31,6 +31,8 @@
|
||||
#include "internal/phy_init_data.h"
|
||||
#include "phy.h"
|
||||
|
||||
#include "driver/rtc.h"
|
||||
|
||||
static const char* TAG = "phy_init";
|
||||
|
||||
static uint8_t phy_check_calibration_data(uint8_t* rf_cal_data)
|
||||
@@ -105,6 +107,8 @@ esp_err_t esp_phy_rf_init(const esp_phy_init_data_t* init_data, esp_phy_calibrat
|
||||
uart_tx_wait_idle(1);
|
||||
uart_div_modify(1, UART_CLK_FREQ / uart_baudrate);
|
||||
|
||||
rtc_init_2(local_init_data);
|
||||
|
||||
int ret = register_chipv6_phy(local_init_data);
|
||||
if (ret) {
|
||||
ESP_LOGI(TAG, "phy register error, ret:%d", ret);
|
||||
|
Reference in New Issue
Block a user