|
|
@@ -60,6 +60,7 @@
|
|
|
#include "esp_private/esp_clk.h"
|
|
|
#include "esp_private/esp_task_wdt.h"
|
|
|
#include "esp_private/spi_flash_os.h"
|
|
|
+#include "esp_private/sar_periph_ctrl.h"
|
|
|
|
|
|
#ifdef CONFIG_IDF_TARGET_ESP32
|
|
|
#include "esp32/rom/cache.h"
|
|
|
@@ -404,6 +405,7 @@ inline static void IRAM_ATTR misc_modules_sleep_prepare(void)
|
|
|
#if REGI2C_ANA_CALI_PD_WORKAROUND
|
|
|
regi2c_analog_cali_reg_read();
|
|
|
#endif
|
|
|
+ sar_periph_ctrl_power_disable();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -411,6 +413,7 @@ inline static void IRAM_ATTR misc_modules_sleep_prepare(void)
|
|
|
*/
|
|
|
inline static void IRAM_ATTR misc_modules_wake_prepare(void)
|
|
|
{
|
|
|
+ sar_periph_ctrl_power_enable();
|
|
|
#if SOC_PM_SUPPORT_CPU_PD && SOC_PM_CPU_RETENTION_BY_RTCCNTL
|
|
|
sleep_disable_cpu_retention();
|
|
|
#endif
|