From 86c102e85bc543d4e0467ff718ac65181635fbaf Mon Sep 17 00:00:00 2001
From: Alexandre Abadie <alexandre.abadie@inria.fr>
Date: Mon, 7 Jan 2019 20:21:22 +0100
Subject: [PATCH] cpu/stm32_common: move dma attribute at end of config

---
 cpu/stm32_common/include/periph_cpu_common.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/cpu/stm32_common/include/periph_cpu_common.h b/cpu/stm32_common/include/periph_cpu_common.h
index c9c3014f81..b1f83a032f 100644
--- a/cpu/stm32_common/include/periph_cpu_common.h
+++ b/cpu/stm32_common/include/periph_cpu_common.h
@@ -384,10 +384,6 @@ typedef struct {
 #endif
     uint8_t bus;            /**< APB bus */
     uint8_t irqn;           /**< IRQ channel */
-#ifdef MODULE_PERIPH_DMA
-    dma_t dma;              /**< Logical DMA stream used for TX */
-    uint8_t dma_chan;       /**< DMA channel used for TX */
-#endif
 #ifdef MODULE_STM32_PERIPH_UART_HW_FC
     gpio_t cts_pin;         /**< CTS pin - set to GPIO_UNDEF when not using HW flow control */
     gpio_t rts_pin;         /**< RTS pin */
@@ -400,6 +396,10 @@ typedef struct {
     uart_type_t type;       /**< hardware module type (USART or LPUART) */
     uint32_t clk_src;       /**< clock source used for UART */
 #endif
+#ifdef MODULE_PERIPH_DMA
+    dma_t dma;              /**< Logical DMA stream used for TX */
+    uint8_t dma_chan;       /**< DMA channel used for TX */
+#endif
 } uart_conf_t;
 
 /**
-- 
GitLab