fix(esp8266): fix system and wifi sleep/wake process error

This commit is contained in:
dongheng
2019-09-18 17:03:08 +08:00
parent 6f3983d39e
commit 4d4e1c0564
12 changed files with 91 additions and 28 deletions

View File

@@ -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);