Skip to content

Commit

Permalink
Merge branch 'bugfix/fix_uart_module_enable_issue_4.0' into 'release/…
Browse files Browse the repository at this point in the history
…v4.0'

driver(uart): fix uart module reset issue (release V4.0)

See merge request espressif/esp-idf!11971
  • Loading branch information
jack0c committed May 10, 2021
2 parents b89b1ec + 4740d8e commit 6769057
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 6769057

Please sign in to comment.