esp_system: Adds sync of FRC & RTC counters in esp_restart

In case when FRC and RTC counters are very different then
the need to sync them before to restart the ESP
to get the correct system time after reboot.
This commit is contained in:
KonstantinKondrashov
2020-12-30 21:24:31 +08:00
parent 7b922bb8c6
commit c19b37d2a9
3 changed files with 119 additions and 1 deletions

View File

@@ -32,7 +32,8 @@
#include "esp32h2/memprot.h"
#endif
#define SHUTDOWN_HANDLERS_NO 4
#define SHUTDOWN_HANDLERS_NO 5
static shutdown_handler_t shutdown_handlers[SHUTDOWN_HANDLERS_NO];
void IRAM_ATTR esp_restart_noos_dig(void)