Merge branch 'bugfix/reset_log_uart_port' into 'master'

esp32: Add reset CONSOLE_UART port

See merge request idf/esp-idf!5011
This commit is contained in:
Angus Gratton
2019-05-29 14:28:37 +08:00
2 changed files with 5 additions and 1 deletions

View File

@@ -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