Skip to content

Commit

Permalink
driver(uart): fix uart module reset issue (release V4.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hou Wen Xiang authored and espressif-bot committed Apr 27, 2021
1 parent d61d8a6 commit 4740d8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/esp32/system_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,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_SPI2_RST | DPORT_SPI3_RST | DPORT_SPI_DMA_RST | DPORT_UART_RST | DPORT_UART1_RST | DPORT_UART2_RST);
DPORT_TIMERS_RST | DPORT_SPI01_RST | DPORT_SPI2_RST | DPORT_SPI3_RST | DPORT_SPI_DMA_RST | DPORT_UART_RST | DPORT_UART1_RST | DPORT_UART2_RST | DPORT_UART_MEM_RST);
DPORT_REG_WRITE(DPORT_PERIP_RST_EN_REG, 0);

// Set CPU back to XTAL source, no PLL, same as hard reset
Expand Down

0 comments on commit 4740d8e

Please sign in to comment.