]> granicus.if.org Git - esp-idf/commitdiff
update phy and rtc lib
authorXiaXiaotian <xiaxiaotian@espressif.com>
Mon, 27 Feb 2017 11:54:22 +0000 (19:54 +0800)
committerXiaXiaotian <xiaxiaotian@espressif.com>
Mon, 27 Feb 2017 11:54:22 +0000 (19:54 +0800)
1. RTC V214: modify APLL function for the chip of ECO version.

2. Add API phy_close_rf() and use it in esp_phy_deinit() instead of pm_close_rf().

3. RTC V213: fix BT will not work when BT-init is called more than once.

components/esp32/lib
components/esp32/phy_init.c
components/esp32/rtc.h

index 965f7400f339dc1e4566cea232602e225b1e4085..7b06303c0fa416aea7f86b7596e84db367189066 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 965f7400f339dc1e4566cea232602e225b1e4085
+Subproject commit 7b06303c0fa416aea7f86b7596e84db367189066
index f70aa4a50be473ee47f3fe46c7469bd5fe179f3c..ccb53fe35b6b531c8f38850a81ee3e75da66b797 100644 (file)
@@ -82,8 +82,8 @@ esp_err_t esp_phy_rf_deinit(void)
 
     _lock_acquire(&s_phy_rf_init_lock);
     if (s_phy_rf_init_count == 1) {
-        // Disable PHY and RF. TODO: convert this function to another one.
-        pm_close_rf();
+        // Disable PHY and RF.
+        phy_close_rf();
         // Disable WiFi peripheral clock. Do not disable clock for generating random number.
         CLEAR_PERI_REG_MASK(DPORT_WIFI_CLK_EN_REG, 0x874f);
     } else {
index f21d0da83ec9d37c90882f36975ca183c1d9a16e..e1262a1ca1947830fca4383b077a6899cb8d80f5 100644 (file)
@@ -138,7 +138,7 @@ uint32_t rtc_sleep(uint32_t cycles_h, uint32_t cycles_l, uint32_t wakeup_opt, ui
 /**
  * @brief Shutdown PHY and RF. TODO: convert this function to another one.
  */
-void pm_close_rf(void);
+void phy_close_rf(void);
 
 #ifdef __cplusplus
 }