mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 19:24:33 +02:00
Merge branch 'change/allow_keep_sar_poweron_in_light_sleep_v5.2' into 'release/v5.2'
change(esp_hw_support): allow sar power keep on during lightsleep (v5.2) See merge request espressif/esp-idf!38456
This commit is contained in:
@@ -646,7 +646,7 @@ FORCE_INLINE_ATTR void misc_modules_sleep_prepare(bool deep_sleep)
|
||||
}
|
||||
|
||||
// TODO: IDF-7370
|
||||
if (!(deep_sleep && s_adc_tsen_enabled)){
|
||||
if (!s_adc_tsen_enabled) {
|
||||
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
|
||||
sleep_console_usj_pad_restore();
|
||||
#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
|
||||
sleep_disable_cpu_retention();
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user