summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-12-17 10:49:20 +0100
committerLorenz Meier <lm@inf.ethz.ch>2013-12-17 10:49:20 +0100
commit2c8760a676e3b7e448e49e6faf6e1e317f89a15a (patch)
tree9dda5a2b2bd2d074a65d38d95202131ab3d46d39
parent618f2999d2e8647dd4c2821af7ad5450fb6f67a3 (diff)
downloadpx4-nuttx-2c8760a676e3b7e448e49e6faf6e1e317f89a15a.tar.gz
px4-nuttx-2c8760a676e3b7e448e49e6faf6e1e317f89a15a.tar.bz2
px4-nuttx-2c8760a676e3b7e448e49e6faf6e1e317f89a15a.zip
Fixed location of DMA console reinitialization
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_serial.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_serial.c b/nuttx/arch/arm/src/stm32/stm32_serial.c
index d751b0f36..0cf1f209b 100644
--- a/nuttx/arch/arm/src/stm32/stm32_serial.c
+++ b/nuttx/arch/arm/src/stm32/stm32_serial.c
@@ -2424,13 +2424,12 @@ void up_serialinit(void)
(void)uart_register("/dev/ttyS0", &uart_devs[CONSOLE_UART - 1]->dev);
minor = 1;
- /* If we need to re-initialise the console to enable DMA do that here. */
+#endif /* CONFIG_SERIAL_DISABLE_REORDERING not defined */
+/* If we need to re-initialise the console to enable DMA do that here. */
# ifdef SERIAL_HAVE_CONSOLE_DMA
up_dma_setup(&uart_devs[CONSOLE_UART - 1]->dev);
# endif
-#endif /* CONFIG_SERIAL_DISABLE_REORDERING not defined */
-
#endif /* CONSOLE_UART > 0 */
/* Register all remaining USARTs */