From 7eaf504d56f0e332b8832693a9f032230ce83dec Mon Sep 17 00:00:00 2001 From: Li Shuai Date: Fri, 14 Mar 2025 18:20:55 +0800 Subject: [PATCH] change(esp_hw_support): adpate the sleep exit flow execute time when sleep iram optimization is disabled --- components/esp_hw_support/sleep_modes.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/esp_hw_support/sleep_modes.c b/components/esp_hw_support/sleep_modes.c index 6b213d7758..d137502922 100644 --- a/components/esp_hw_support/sleep_modes.c +++ b/components/esp_hw_support/sleep_modes.c @@ -162,6 +162,12 @@ #elif CONFIG_IDF_TARGET_ESP32C2 #define DEFAULT_SLEEP_OUT_OVERHEAD_US (118) #define DEFAULT_HARDWARE_OUT_OVERHEAD_US (9) +# if !CONFIG_PM_SLP_IRAM_OPT + #undef DEFAULT_SLEEP_OUT_OVERHEAD_US + #define DEFAULT_SLEEP_OUT_OVERHEAD_US (2779) + #undef DEFAULT_HARDWARE_OUT_OVERHEAD_US + #define DEFAULT_HARDWARE_OUT_OVERHEAD_US (157) +# endif #elif CONFIG_IDF_TARGET_ESP32C6 #define DEFAULT_SLEEP_OUT_OVERHEAD_US (318) #define DEFAULT_HARDWARE_OUT_OVERHEAD_US (56)