mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
sleep: deep sleep does not need cpu and wifi/bt mac retention
This commit is contained in:
parent
0665e0165b
commit
e75762b02f
@ -382,7 +382,9 @@ static uint32_t IRAM_ATTR esp_sleep_start(uint32_t pd_flags)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
misc_modules_sleep_prepare();
|
if (!deep_sleep) {
|
||||||
|
misc_modules_sleep_prepare();
|
||||||
|
}
|
||||||
|
|
||||||
#if CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
|
#if CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
|
||||||
if (deep_sleep) {
|
if (deep_sleep) {
|
||||||
@ -472,10 +474,9 @@ static uint32_t IRAM_ATTR esp_sleep_start(uint32_t pd_flags)
|
|||||||
|
|
||||||
if (!deep_sleep) {
|
if (!deep_sleep) {
|
||||||
s_config.ccount_ticks_record = cpu_ll_get_cycle_count();
|
s_config.ccount_ticks_record = cpu_ll_get_cycle_count();
|
||||||
|
misc_modules_wake_prepare();
|
||||||
}
|
}
|
||||||
|
|
||||||
misc_modules_wake_prepare();
|
|
||||||
|
|
||||||
// re-enable UART output
|
// re-enable UART output
|
||||||
resume_uarts();
|
resume_uarts();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user