Merge pull request #3704 from balanceTWK/TWK_TEMP
[bsp][stm32][drv_sdio.c] adapt stm32f2 series | 适配 stm32f2 系列
This commit is contained in:
commit
6bcf52b755
|
@ -852,7 +852,7 @@ int rt_hw_sdio_init(void)
|
||||||
/* enable DMA clock && Delay after an RCC peripheral clock enabling*/
|
/* enable DMA clock && Delay after an RCC peripheral clock enabling*/
|
||||||
SET_BIT(RCC->AHBENR, sdio_config.dma_rx.dma_rcc);
|
SET_BIT(RCC->AHBENR, sdio_config.dma_rx.dma_rcc);
|
||||||
tmpreg = READ_BIT(RCC->AHBENR, sdio_config.dma_rx.dma_rcc);
|
tmpreg = READ_BIT(RCC->AHBENR, sdio_config.dma_rx.dma_rcc);
|
||||||
#elif defined(SOC_SERIES_STM32F4) || defined(SOC_SERIES_STM32F7) || defined(SOC_SERIES_STM32L4)
|
#elif defined(SOC_SERIES_STM32F4) || defined(SOC_SERIES_STM32F7) || defined(SOC_SERIES_STM32L4) || defined(SOC_SERIES_STM32F2)
|
||||||
SET_BIT(RCC->AHB1ENR, sdio_config.dma_rx.dma_rcc);
|
SET_BIT(RCC->AHB1ENR, sdio_config.dma_rx.dma_rcc);
|
||||||
/* Delay after an RCC peripheral clock enabling */
|
/* Delay after an RCC peripheral clock enabling */
|
||||||
tmpreg = READ_BIT(RCC->AHB1ENR, sdio_config.dma_rx.dma_rcc);
|
tmpreg = READ_BIT(RCC->AHB1ENR, sdio_config.dma_rx.dma_rcc);
|
||||||
|
|
Loading…
Reference in New Issue