esp_system: Adds sync of FRC & RTC counters in esp_restart (v4.3)

This commit is contained in:
Konstantin Kondrashov
2021-10-28 17:33:46 +00:00
committed by Zim Kalinowski
parent 534ca101e4
commit 8140b10a16
4 changed files with 118 additions and 2 deletions

View File

@@ -106,7 +106,7 @@ void IRAM_ATTR esp_restart_noos(void)
// Reset timer/spi/uart
SET_PERI_REG_MASK(SYSTEM_PERIP_RST_EN0_REG,
SYSTEM_TIMERS_RST | SYSTEM_SPI01_RST | SYSTEM_UART_RST);
SYSTEM_TIMERS_RST | SYSTEM_SPI01_RST | SYSTEM_UART_RST | SYSTEM_SYSTIMER_RST);
REG_WRITE(SYSTEM_PERIP_RST_EN0_REG, 0);
// Reset dma
SET_PERI_REG_MASK(SYSTEM_PERIP_RST_EN1_REG, SYSTEM_DMA_RST);