From 09862b59184efc74620bb59cf358aa3598c27d7f Mon Sep 17 00:00:00 2001 From: Tian Hao Date: Tue, 17 Oct 2017 11:22:46 +0800 Subject: [PATCH] component/esp32 : update phy & rtc RTC V230 add BT AGC saturation protection, replace RTC V229. PHY V362 Power up print: "phy_version: 362.0, 61e8d92, Sep 8 2017, 18:48:13" 1. esp_init_data_v3.bin modify TX target power modify WIFI & BT RX gain table 2. modify phy_close_rf() 3. add phy_set_most_tpw() 4. 26M crystal work OK 5. noise_check_loop ok --- components/esp32/lib | 2 +- components/esp32/phy_init_data.h | 26 ++++++++++++++------------ 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/components/esp32/lib b/components/esp32/lib index 3bf26ecbb..d7c77c5ae 160000 --- a/components/esp32/lib +++ b/components/esp32/lib @@ -1 +1 @@ -Subproject commit 3bf26ecbb28ca22fbfb205f45c1920ef3876b5d5 +Subproject commit d7c77c5ae8206c5a2395a39c6f47c0da6637fc8a diff --git a/components/esp32/phy_init_data.h b/components/esp32/phy_init_data.h index bd63026fe..d09bbdd9c 100644 --- a/components/esp32/phy_init_data.h +++ b/components/esp32/phy_init_data.h @@ -27,13 +27,13 @@ static const char phy_init_magic_pre[] = PHY_INIT_MAGIC; * @brief Structure containing default recommended PHY initialization parameters. */ static const esp_phy_init_data_t phy_init_data= { { - 1, + 3, 3, 0x05, - 0x04, + 0x09, 0x06, 0x05, - 0x01, + 0x03, 0x06, 0x05, 0x04, @@ -45,10 +45,10 @@ static const esp_phy_init_data_t phy_init_data= { { 0x00, 0x00, 0x05, - 0x04, + 0x09, 0x06, 0x05, - 0x01, + 0x03, 0x06, 0x05, 0x00, @@ -59,9 +59,9 @@ static const esp_phy_init_data_t phy_init_data= { { 0x00, 0x00, 0x00, - 0x0a, - 0x0a, - 0x0c, + 0xfc, + 0xfc, + 0xfe, 0xf0, 0xf0, 0xf0, @@ -72,16 +72,16 @@ static const esp_phy_init_data_t phy_init_data= { { 0x18, 0x18, LIMIT(CONFIG_ESP32_PHY_MAX_TX_POWER * 4, 0, 78), - LIMIT(CONFIG_ESP32_PHY_MAX_TX_POWER * 4, 0, 76), - LIMIT(CONFIG_ESP32_PHY_MAX_TX_POWER * 4, 0, 74), - LIMIT(CONFIG_ESP32_PHY_MAX_TX_POWER * 4, 0, 68), + LIMIT(CONFIG_ESP32_PHY_MAX_TX_POWER * 4, 0, 72), + LIMIT(CONFIG_ESP32_PHY_MAX_TX_POWER * 4, 0, 66), LIMIT(CONFIG_ESP32_PHY_MAX_TX_POWER * 4, 0, 60), + LIMIT(CONFIG_ESP32_PHY_MAX_TX_POWER * 4, 0, 56), LIMIT(CONFIG_ESP32_PHY_MAX_TX_POWER * 4, 0, 52), 0, - 0, 1, 1, 2, + 2, 3, 4, 5, @@ -132,6 +132,8 @@ static const esp_phy_init_data_t phy_init_data= { { 0, 0, 0, + 0, + 0, } }; static const char phy_init_magic_post[] = PHY_INIT_MAGIC;