File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
bsp/stm32/libraries/HAL_Drivers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -885,7 +885,7 @@ static void stm32_dma_config(struct rt_serial_device *serial, rt_ubase_t flag)
885885 {
886886 rt_uint32_t tmpreg = 0x00U ;
887887#if defined(SOC_SERIES_STM32F1 ) || defined(SOC_SERIES_STM32F0 ) || defined(SOC_SERIES_STM32G0 ) \
888- || defined(SOC_SERIES_STM32L0 )|| defined(SOC_SERIES_STM32F3 )
888+ || defined(SOC_SERIES_STM32L0 )|| defined(SOC_SERIES_STM32F3 ) || defined( SOC_SERIES_STM32L1 )
889889 /* enable DMA clock && Delay after an RCC peripheral clock enabling*/
890890 SET_BIT (RCC -> AHBENR , dma_config -> dma_rcc );
891891 tmpreg = READ_BIT (RCC -> AHBENR , dma_config -> dma_rcc );
@@ -919,7 +919,7 @@ static void stm32_dma_config(struct rt_serial_device *serial, rt_ubase_t flag)
919919 __HAL_LINKDMA (& (uart -> handle ), hdmatx , uart -> dma_tx .handle );
920920 }
921921
922- #if defined(SOC_SERIES_STM32F1 ) || defined(SOC_SERIES_STM32F0 ) || defined(SOC_SERIES_STM32L0 )|| defined(SOC_SERIES_STM32F3 )
922+ #if defined(SOC_SERIES_STM32F1 ) || defined(SOC_SERIES_STM32F0 ) || defined(SOC_SERIES_STM32L0 )|| defined(SOC_SERIES_STM32F3 ) || defined( SOC_SERIES_STM32L1 )
923923 DMA_Handle -> Instance = dma_config -> Instance ;
924924#elif defined(SOC_SERIES_STM32F4 ) || defined(SOC_SERIES_STM32F7 )
925925 DMA_Handle -> Instance = dma_config -> Instance ;
You can’t perform that action at this time.
0 commit comments