[bsp][stm32] fix dma config bug

This commit is contained in:
SummerGift 2019-01-19 09:15:14 +08:00
parent dd9515b297
commit 38a3858dcb
2 changed files with 32 additions and 32 deletions

View File

@ -56,10 +56,10 @@ extern "C" {
#ifndef UART2_DMA_CONFIG #ifndef UART2_DMA_CONFIG
#define UART2_DMA_CONFIG \ #define UART2_DMA_CONFIG \
{ \ { \
.Instance = USART2_RX_DMA_INSTANCE, \ .Instance = UART2_RX_DMA_INSTANCE, \
.channel = USART2_RX_DMA_CHANNEL, \ .channel = UART2_RX_DMA_CHANNEL, \
.dma_rcc = USART2_RX_DMA_RCC, \ .dma_rcc = UART2_RX_DMA_RCC, \
.dma_irq = USART2_RX_DMA_IRQ, \ .dma_irq = UART2_RX_DMA_IRQ, \
} }
#endif /* UART2_DMA_CONFIG */ #endif /* UART2_DMA_CONFIG */
#endif /* BSP_UART2_RX_USING_DMA */ #endif /* BSP_UART2_RX_USING_DMA */
@ -79,10 +79,10 @@ extern "C" {
#ifndef UART3_DMA_CONFIG #ifndef UART3_DMA_CONFIG
#define UART3_DMA_CONFIG \ #define UART3_DMA_CONFIG \
{ \ { \
.Instance = USART3_RX_DMA_INSTANCE, \ .Instance = UART3_RX_DMA_INSTANCE, \
.channel = USART3_RX_DMA_CHANNEL, \ .channel = UART3_RX_DMA_CHANNEL, \
.dma_rcc = USART3_RX_DMA_RCC, \ .dma_rcc = UART3_RX_DMA_RCC, \
.dma_irq = USART3_RX_DMA_IRQ, \ .dma_irq = UART3_RX_DMA_IRQ, \
} }
#endif /* UART3_DMA_CONFIG */ #endif /* UART3_DMA_CONFIG */
#endif /* BSP_UART3_RX_USING_DMA */ #endif /* BSP_UART3_RX_USING_DMA */
@ -102,10 +102,10 @@ extern "C" {
#ifndef UART4_DMA_CONFIG #ifndef UART4_DMA_CONFIG
#define UART4_DMA_CONFIG \ #define UART4_DMA_CONFIG \
{ \ { \
.Instance = USART4_RX_DMA_INSTANCE, \ .Instance = UART4_RX_DMA_INSTANCE, \
.channel = USART4_RX_DMA_CHANNEL, \ .channel = UART4_RX_DMA_CHANNEL, \
.dma_rcc = USART4_RX_DMA_RCC, \ .dma_rcc = UART4_RX_DMA_RCC, \
.dma_irq = USART4_RX_DMA_IRQ, \ .dma_irq = UART4_RX_DMA_IRQ, \
} }
#endif /* UART4_DMA_CONFIG */ #endif /* UART4_DMA_CONFIG */
#endif /* BSP_UART4_RX_USING_DMA */ #endif /* BSP_UART4_RX_USING_DMA */
@ -125,10 +125,10 @@ extern "C" {
#ifndef UART5_DMA_CONFIG #ifndef UART5_DMA_CONFIG
#define UART5_DMA_CONFIG \ #define UART5_DMA_CONFIG \
{ \ { \
.Instance = USART5_RX_DMA_INSTANCE, \ .Instance = UART5_RX_DMA_INSTANCE, \
.channel = USART5_RX_DMA_CHANNEL, \ .channel = UART5_RX_DMA_CHANNEL, \
.dma_rcc = USART5_RX_DMA_RCC, \ .dma_rcc = UART5_RX_DMA_RCC, \
.dma_irq = USART5_RX_DMA_IRQ, \ .dma_irq = UART5_RX_DMA_IRQ, \
} }
#endif /* UART5_DMA_CONFIG */ #endif /* UART5_DMA_CONFIG */
#endif /* BSP_UART5_RX_USING_DMA */ #endif /* BSP_UART5_RX_USING_DMA */

View File

@ -56,10 +56,10 @@ extern "C" {
#ifndef UART2_DMA_CONFIG #ifndef UART2_DMA_CONFIG
#define UART2_DMA_CONFIG \ #define UART2_DMA_CONFIG \
{ \ { \
.Instance = USART2_RX_DMA_INSTANCE, \ .Instance = UART2_RX_DMA_INSTANCE, \
.channel = USART2_RX_DMA_CHANNEL, \ .channel = UART2_RX_DMA_CHANNEL, \
.dma_rcc = USART2_RX_DMA_RCC, \ .dma_rcc = UART2_RX_DMA_RCC, \
.dma_irq = USART2_RX_DMA_IRQ, \ .dma_irq = UART2_RX_DMA_IRQ, \
} }
#endif /* UART2_DMA_CONFIG */ #endif /* UART2_DMA_CONFIG */
#endif /* BSP_UART2_RX_USING_DMA */ #endif /* BSP_UART2_RX_USING_DMA */
@ -79,10 +79,10 @@ extern "C" {
#ifndef UART3_DMA_CONFIG #ifndef UART3_DMA_CONFIG
#define UART3_DMA_CONFIG \ #define UART3_DMA_CONFIG \
{ \ { \
.Instance = USART3_RX_DMA_INSTANCE, \ .Instance = UART3_RX_DMA_INSTANCE, \
.channel = USART3_RX_DMA_CHANNEL, \ .channel = UART3_RX_DMA_CHANNEL, \
.dma_rcc = USART3_RX_DMA_RCC, \ .dma_rcc = UART3_RX_DMA_RCC, \
.dma_irq = USART3_RX_DMA_IRQ, \ .dma_irq = UART3_RX_DMA_IRQ, \
} }
#endif /* UART3_DMA_CONFIG */ #endif /* UART3_DMA_CONFIG */
#endif /* BSP_UART3_RX_USING_DMA */ #endif /* BSP_UART3_RX_USING_DMA */
@ -102,10 +102,10 @@ extern "C" {
#ifndef UART4_DMA_CONFIG #ifndef UART4_DMA_CONFIG
#define UART4_DMA_CONFIG \ #define UART4_DMA_CONFIG \
{ \ { \
.Instance = USART4_RX_DMA_INSTANCE, \ .Instance = UART4_RX_DMA_INSTANCE, \
.channel = USART4_RX_DMA_CHANNEL, \ .channel = UART4_RX_DMA_CHANNEL, \
.dma_rcc = USART4_RX_DMA_RCC, \ .dma_rcc = UART4_RX_DMA_RCC, \
.dma_irq = USART4_RX_DMA_IRQ, \ .dma_irq = UART4_RX_DMA_IRQ, \
} }
#endif /* UART4_DMA_CONFIG */ #endif /* UART4_DMA_CONFIG */
#endif /* BSP_UART4_RX_USING_DMA */ #endif /* BSP_UART4_RX_USING_DMA */
@ -125,10 +125,10 @@ extern "C" {
#ifndef UART5_DMA_CONFIG #ifndef UART5_DMA_CONFIG
#define UART5_DMA_CONFIG \ #define UART5_DMA_CONFIG \
{ \ { \
.Instance = USART5_RX_DMA_INSTANCE, \ .Instance = UART5_RX_DMA_INSTANCE, \
.channel = USART5_RX_DMA_CHANNEL, \ .channel = UART5_RX_DMA_CHANNEL, \
.dma_rcc = USART5_RX_DMA_RCC, \ .dma_rcc = UART5_RX_DMA_RCC, \
.dma_irq = USART5_RX_DMA_IRQ, \ .dma_irq = UART5_RX_DMA_IRQ, \
} }
#endif /* UART5_DMA_CONFIG */ #endif /* UART5_DMA_CONFIG */
#endif /* BSP_UART5_RX_USING_DMA */ #endif /* BSP_UART5_RX_USING_DMA */