cpu/stm32_common: move dma attribute at end of config

This commit is contained in:
Alexandre Abadie 2019-01-07 20:21:22 +01:00 committed by Vincent Dupont
parent 3a5c9cb921
commit 86c102e85b

View File

@ -384,10 +384,6 @@ typedef struct {
#endif #endif
uint8_t bus; /**< APB bus */ uint8_t bus; /**< APB bus */
uint8_t irqn; /**< IRQ channel */ 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 #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 cts_pin; /**< CTS pin - set to GPIO_UNDEF when not using HW flow control */
gpio_t rts_pin; /**< RTS pin */ gpio_t rts_pin; /**< RTS pin */
@ -400,6 +396,10 @@ typedef struct {
uart_type_t type; /**< hardware module type (USART or LPUART) */ uart_type_t type; /**< hardware module type (USART or LPUART) */
uint32_t clk_src; /**< clock source used for UART */ uint32_t clk_src; /**< clock source used for UART */
#endif #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; } uart_conf_t;
/** /**