mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-07 21:47:21 +00:00
fix(esp_hw_support): move deepsleep phy callback before PLL disable
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
#include "nvs_flash.h"
|
||||
#include "esp_efuse.h"
|
||||
#include "esp_timer.h"
|
||||
#include "esp_sleep.h"
|
||||
#include "esp_private/esp_sleep_internal.h"
|
||||
#include "esp_check.h"
|
||||
#include "sdkconfig.h"
|
||||
#include "freertos/FreeRTOS.h"
|
||||
@@ -886,11 +886,11 @@ void esp_phy_load_cal_and_init(void)
|
||||
esp_phy_release_init_data(init_data);
|
||||
#endif
|
||||
#if !CONFIG_IDF_TARGET_ESP32C5 // TODO: [ESP32C5] IDF-8638
|
||||
ESP_ERROR_CHECK(esp_deep_sleep_register_hook(&phy_close_rf));
|
||||
ESP_ERROR_CHECK(esp_deep_sleep_register_phy_hook(&phy_close_rf));
|
||||
#endif
|
||||
#if !CONFIG_IDF_TARGET_ESP32
|
||||
#if !CONFIG_IDF_TARGET_ESP32C5 // TODO: [ESP32C5] IDF-8638
|
||||
ESP_ERROR_CHECK(esp_deep_sleep_register_hook(&phy_xpd_tsens));
|
||||
ESP_ERROR_CHECK(esp_deep_sleep_register_phy_hook(&phy_xpd_tsens));
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user