[bsp][stm32]:修复UART6 DMA分配有可能冲突的BUG

用户自己可以添加DMA分配文件,所以这里的DMA分配有可能和用户自定义的冲突
This commit is contained in:
breederbai 2022-06-13 22:04:09 +08:00 committed by guo
parent b0030704d0
commit 14cd8d0145
1 changed files with 1 additions and 1 deletions

View File

@ -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