Merge branch 'spi_dma_close_before_cpu_reset_v3.3' into 'release/v3.3'

spi: fix issue with closing DMA before CPU reset (3.3)

See merge request espressif/esp-idf!10865
This commit is contained in:
Michael (XIAO Xufeng) 2020-10-25 23:51:21 +08:00
commit adaed2c79d
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,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_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_REG_WRITE(DPORT_PERIP_RST_EN_REG, 0);
// Set CPU back to XTAL source, no PLL, same as hard reset