feat(esp_timer): Updates systimer and esp_timer

This commit is contained in:
Konstantin Kondrashov
2024-09-10 14:49:55 +03:00
committed by BOT
parent 00991f1bf5
commit 3081a4ea49
10 changed files with 15 additions and 42 deletions

View File

@@ -58,6 +58,7 @@ void app_main(void)
usleep(2000000);
}
#if SOC_LIGHT_SLEEP_SUPPORTED
/* Timekeeping continues in light sleep, and timers are scheduled
* correctly after light sleep.
*/
@@ -71,6 +72,7 @@ void app_main(void)
ESP_LOGI(TAG, "Woke up from light sleep, time since boot: %lld us", t2);
assert(llabs((t2 - t1) - 500000) < 1200);
#endif
/* Let the timer run for a little bit more */
usleep(2000000);