update phy and rtc lib

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.
This commit is contained in:
XiaXiaotian 2017-02-27 19:54:22 +08:00
parent c6420792f2
commit f36c909528
3 changed files with 4 additions and 4 deletions

@ -1 +1 @@
Subproject commit 965f7400f339dc1e4566cea232602e225b1e4085 Subproject commit 7b06303c0fa416aea7f86b7596e84db367189066

View File

@ -82,8 +82,8 @@ esp_err_t esp_phy_rf_deinit(void)
_lock_acquire(&s_phy_rf_init_lock); _lock_acquire(&s_phy_rf_init_lock);
if (s_phy_rf_init_count == 1) { if (s_phy_rf_init_count == 1) {
// Disable PHY and RF. TODO: convert this function to another one. // Disable PHY and RF.
pm_close_rf(); phy_close_rf();
// Disable WiFi peripheral clock. Do not disable clock for generating random number. // Disable WiFi peripheral clock. Do not disable clock for generating random number.
CLEAR_PERI_REG_MASK(DPORT_WIFI_CLK_EN_REG, 0x874f); CLEAR_PERI_REG_MASK(DPORT_WIFI_CLK_EN_REG, 0x874f);
} else { } else {

View 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. * @brief Shutdown PHY and RF. TODO: convert this function to another one.
*/ */
void pm_close_rf(void); void phy_close_rf(void);
#ifdef __cplusplus #ifdef __cplusplus
} }