mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
change(example): sleep iram optimization support for esp_timer demo
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user