mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
stm32f7/stm32_serial.c: fix console re-initialisation if DMA enabled
This commit is contained in:
committed by
David Sidrane
parent
1ce75cc7c6
commit
9dadfc5cc3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user