mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 12:10:59 +00:00
esp32: Add reset uart
Fixed the case when the first part of log was missed this was happened when: * CONFIG_CONSOLE_UART_CUSTOM option is selected (UART1) * The selected CONSOLE_UART port is used also for the console component * in code esp_restart() or abort() functions were called.
This commit is contained in:

committed by
bot

parent
ba51e9fb5c
commit
be6f5563b4
@@ -317,7 +317,7 @@ void IRAM_ATTR esp_restart_noos()
|
||||
|
||||
// Reset timer/spi/uart
|
||||
DPORT_SET_PERI_REG_MASK(DPORT_PERIP_RST_EN_REG,
|
||||
DPORT_TIMERS_RST | DPORT_SPI01_RST | DPORT_UART_RST);
|
||||
DPORT_TIMERS_RST | DPORT_SPI01_RST | DPORT_UART_RST | DPORT_UART1_RST | DPORT_UART2_RST);
|
||||
DPORT_REG_WRITE(DPORT_PERIP_RST_EN_REG, 0);
|
||||
|
||||
// Set CPU back to XTAL source, no PLL, same as hard reset
|
||||
|
Reference in New Issue
Block a user