From 14cd8d0145163fb4d27af181df27caff9e438e51 Mon Sep 17 00:00:00 2001 From: breederbai Date: Mon, 13 Jun 2022 22:04:09 +0800 Subject: [PATCH] =?UTF-8?q?[bsp][stm32]=EF=BC=9A=E4=BF=AE=E5=A4=8DUART6=20?= =?UTF-8?q?DMA=E5=88=86=E9=85=8D=E6=9C=89=E5=8F=AF=E8=83=BD=E5=86=B2?= =?UTF-8?q?=E7=AA=81=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 用户自己可以添加DMA分配文件,所以这里的DMA分配有可能和用户自定义的冲突 --- bsp/stm32/libraries/HAL_Drivers/config/f4/dma_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f4/dma_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f4/dma_config.h index b535cf4850..016ec32dee 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f4/dma_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f4/dma_config.h @@ -259,7 +259,7 @@ extern "C" { #define SPI5_TX_DMA_INSTANCE DMA2_Stream6 #define SPI5_TX_DMA_CHANNEL DMA_CHANNEL_7 #define SPI5_TX_DMA_IRQ DMA2_Stream6_IRQn -#elif defined(BSP_UART6_TX_USING_DMA) && !defined(BSP_USING_SDIO) +#elif defined(BSP_UART6_TX_USING_DMA) && !defined(BSP_USING_SDIO) && !defined(UART6_TX_DMA_INSTANCE) #define UART6_DMA_TX_IRQHandler DMA2_Stream6_IRQHandler #define UART6_TX_DMA_RCC RCC_AHB1ENR_DMA2EN #define UART6_TX_DMA_INSTANCE DMA2_Stream6