@@ -1024,11 +1024,11 @@ static void stm32_uart_get_dma_config(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BSP_USING_UART9
|
#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
|
#ifdef BSP_UART9_RX_USING_DMA
|
||||||
uart_obj[UART9_INDEX].uart_dma_flag |= RT_DEVICE_FLAG_DMA_RX;
|
uart_obj[UART9_INDEX].uart_dma_flag |= RT_DEVICE_FLAG_DMA_RX;
|
||||||
static struct dma_config uart9_dma_rx = UART9_DMA_RX_CONFIG;
|
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
|
#endif
|
||||||
#ifdef BSP_UART9_TX_USING_DMA
|
#ifdef BSP_UART9_TX_USING_DMA
|
||||||
uart_obj[UART9_INDEX].uart_dma_flag |= RT_DEVICE_FLAG_DMA_TX;
|
uart_obj[UART9_INDEX].uart_dma_flag |= RT_DEVICE_FLAG_DMA_TX;
|
||||||
|
Reference in New Issue
Block a user