Ver Fonte

Merge branch 'bugfix/fix_uart_module_enable_issue_4.0' into 'release/v4.0'

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

See merge request espressif/esp-idf!11971
Jiang Jiang Jian há 4 anos atrás
pai
commit
676905709a
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      components/esp32/system_api.c

+ 1 - 1
components/esp32/system_api.c

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