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-14 11:49:52 +08:00
parent e839ed589c
commit d8e73e94f2
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)