diff --git a/arch/arm/src/stm32f7/stm32_sdmmc.c b/arch/arm/src/stm32f7/stm32_sdmmc.c index 1f2cff372a..e9ac9ee129 100644 --- a/arch/arm/src/stm32f7/stm32_sdmmc.c +++ b/arch/arm/src/stm32f7/stm32_sdmmc.c @@ -125,6 +125,7 @@ # error "Callback support requires CONFIG_SCHED_WORKQUEUE" #endif +#ifdef CONFIG_STM32F7_SDMMC1 # ifdef CONFIG_STM32F7_SDMMC_DMA # ifndef CONFIG_STM32F7_SDMMC1_DMAPRIO # define CONFIG_STM32F7_SDMMC1_DMAPRIO DMA_SCR_PRIVERYHI @@ -137,6 +138,7 @@ # endif #endif +#ifdef CONFIG_STM32F7_SDMMC2 # ifdef CONFIG_STM32F7_SDMMC_DMA # ifndef CONFIG_STM32F7_SDMMC2_DMAPRIO # define CONFIG_STM32F7_SDMMC2_DMAPRIO DMA_SCR_PRIVERYHI diff --git a/arch/arm/src/stm32l4/stm32l4_sdmmc.c b/arch/arm/src/stm32l4/stm32l4_sdmmc.c index 0b076a774c..9636267f4e 100644 --- a/arch/arm/src/stm32l4/stm32l4_sdmmc.c +++ b/arch/arm/src/stm32l4/stm32l4_sdmmc.c @@ -115,6 +115,7 @@ # error "Callback support requires CONFIG_SCHED_WORKQUEUE" #endif +#ifdef CONFIG_STM32L4_SDMMC1 # ifdef CONFIG_STM32L4_SDMMC_DMA # ifndef CONFIG_STM32L4_SDMMC1_DMAPRIO # define CONFIG_STM32L4_SDMMC1_DMAPRIO DMA_SCR_PRIVERYHI @@ -127,6 +128,7 @@ # endif #endif +#ifdef CONFIG_STM32L4_SDMMC2 # ifdef CONFIG_STM32L4_SDMMC_DMA # ifndef CONFIG_STM32L4_SDMMC2_DMAPRIO # define CONFIG_STM32L4_SDMMC2_DMAPRIO DMA_SCR_PRIVERYHI