fix(esp_hw_support): fix esp32 APP_CPU accessing RTCFAST memory in sleep code

Closes https://github.com/espressif/esp-idf/issues/16243
This commit is contained in:
wuzhenghui
2025-07-08 16:58:31 +08:00
parent 25c7c11970
commit 5ff3d1f32b
2 changed files with 19 additions and 13 deletions
@@ -19,9 +19,7 @@
#include "deep_sleep_example.h"
#if SOC_RTC_FAST_MEM_SUPPORTED
static RTC_DATA_ATTR struct timeval sleep_enter_time;
#else
static struct timeval sleep_enter_time;
RTC_SLOW_ATTR static struct timeval sleep_enter_time;
#endif
static void deep_sleep_task(void *args)