forked from espressif/esp-idf
call pm_wakeup_init in esp_phy_enable() on esp32
This commit is contained in:
@@ -59,12 +59,10 @@ void phy_set_wifi_mode_only(bool wifi_only);
|
|||||||
*/
|
*/
|
||||||
void coex_bt_high_prio(void);
|
void coex_bt_high_prio(void);
|
||||||
|
|
||||||
#if CONFIG_IDF_TARGET_ESP32S2BETA
|
|
||||||
/**
|
/**
|
||||||
* @brief Open PHY and RF.
|
* @brief Open PHY and RF.
|
||||||
*/
|
*/
|
||||||
void phy_wakeup_init(void);
|
void phy_wakeup_init(void);
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Shutdown PHY and RF.
|
* @brief Shutdown PHY and RF.
|
||||||
|
@@ -141,11 +141,7 @@ void esp_phy_enable(void)
|
|||||||
s_is_phy_calibrated = true;
|
s_is_phy_calibrated = true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
#if CONFIG_IDF_TARGET_ESP32S2BETA
|
|
||||||
phy_wakeup_init();
|
phy_wakeup_init();
|
||||||
#elif CONFIG_IDF_TARGET_ESP32
|
|
||||||
register_chipv7_phy(NULL, NULL, PHY_RF_CAL_NONE);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG_IDF_TARGET_ESP32
|
#if CONFIG_IDF_TARGET_ESP32
|
||||||
|
Reference in New Issue
Block a user