change(example): sleep iram optimization support for esp_timer demo

This commit is contained in:
Li Shuai
2025-11-21 15:31:25 +08:00
parent 3518d1a16c
commit bc4d50b42d
2 changed files with 3 additions and 1 deletions
@@ -71,7 +71,6 @@ void app_main(void)
int64_t t2 = esp_timer_get_time();
ESP_LOGI(TAG, "Woke up from light sleep, time since boot: %lld us", t2);
// TODO: PM-232
assert(((t2 - t1 - 500000) < 1000) && ((t2 - t1 - 500000) > -2000));
#endif
@@ -4,3 +4,6 @@ CONFIG_ESP_TIMER_PROFILING=y
# LIBC_NEWLIB_NANO_FORMAT is enabled by default on ESP32-C2
# This example needs 64-bit integer formatting, this is why this option is disabled
CONFIG_LIBC_NEWLIB_NANO_FORMAT=n
# Put sleep related source code in IRAM
CONFIG_PM_SLP_IRAM_OPT=y