修正uart 驱动参数错误

Signed-off-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
2022-12-17 11:10:34 +08:00
parent 34c035cf17
commit 5b4b9e79fe

View File

@@ -1024,11 +1024,11 @@ static void stm32_uart_get_dma_config(void)
#endif
#ifdef BSP_USING_UART9
uart_obj[UART8_INDEX].uart_dma_flag = 0;
uart_obj[UART9_INDEX].uart_dma_flag = 0;
#ifdef BSP_UART9_RX_USING_DMA
uart_obj[UART9_INDEX].uart_dma_flag |= RT_DEVICE_FLAG_DMA_RX;
static struct dma_config uart9_dma_rx = UART9_DMA_RX_CONFIG;
uart_config[UART9_INDEX].dma_rx = &uart8_dma_rx;
uart_config[UART9_INDEX].dma_rx = &uart9_dma_rx;
#endif
#ifdef BSP_UART9_TX_USING_DMA
uart_obj[UART9_INDEX].uart_dma_flag |= RT_DEVICE_FLAG_DMA_TX;