stm32f7/stm32_serial.c: fix console re-initialisation if DMA enabled

This commit is contained in:
Oleg Evseev 2020-11-02 19:01:14 +03:00 committed by David Sidrane
parent 1ce75cc7c6
commit 9dadfc5cc3

View File

@ -3661,7 +3661,7 @@ void arm_serialinit(void)
minor = 1;
#endif
#ifdef SERIAL_HAVE_CONSOLE_DMA
#if defined(SERIAL_HAVE_CONSOLE_RXDMA) || defined(SERIAL_HAVE_CONSOLE_TXDMA)
/* If we need to re-initialise the console to enable DMA do that here. */
up_dma_setup(&g_uart_devs[CONSOLE_UART - 1]->dev);