forked from espressif/esp-idf
change(esp_hw_support): allow sar power keep on during lightsleep
Closes https://github.com/espressif/esp-idf/issues/12426
This commit is contained in:
@@ -646,7 +646,7 @@ FORCE_INLINE_ATTR void misc_modules_sleep_prepare(bool deep_sleep)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO: IDF-7370
|
// TODO: IDF-7370
|
||||||
if (!(deep_sleep && s_adc_tsen_enabled)){
|
if (!s_adc_tsen_enabled) {
|
||||||
sar_periph_ctrl_power_disable();
|
sar_periph_ctrl_power_disable();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -659,7 +659,9 @@ FORCE_INLINE_ATTR void misc_modules_wake_prepare(void)
|
|||||||
#if SOC_USB_SERIAL_JTAG_SUPPORTED && !SOC_USB_SERIAL_JTAG_SUPPORT_LIGHT_SLEEP
|
#if SOC_USB_SERIAL_JTAG_SUPPORTED && !SOC_USB_SERIAL_JTAG_SUPPORT_LIGHT_SLEEP
|
||||||
sleep_console_usj_pad_restore();
|
sleep_console_usj_pad_restore();
|
||||||
#endif
|
#endif
|
||||||
sar_periph_ctrl_power_enable();
|
if (!s_adc_tsen_enabled) {
|
||||||
|
sar_periph_ctrl_power_enable();
|
||||||
|
}
|
||||||
#if SOC_PM_SUPPORT_CPU_PD && SOC_PM_CPU_RETENTION_BY_RTCCNTL
|
#if SOC_PM_SUPPORT_CPU_PD && SOC_PM_CPU_RETENTION_BY_RTCCNTL
|
||||||
sleep_disable_cpu_retention();
|
sleep_disable_cpu_retention();
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user