diff --git a/arch/arm/src/stm32/stm32_sdio.c b/arch/arm/src/stm32/stm32_sdio.c index 4758fb0bb1c..9d93a432c03 100644 --- a/arch/arm/src/stm32/stm32_sdio.c +++ b/arch/arm/src/stm32/stm32_sdio.c @@ -153,6 +153,7 @@ * that does not have the errata, to override the edge the SDIO * command and data is changed on. */ + #if !defined(SDIO_CLKCR_EDGE) # define SDIO_CLKCR_EDGE SDIO_CLKCR_RISINGEDGE #endif diff --git a/arch/arm/src/stm32f7/stm32_sdmmc.c b/arch/arm/src/stm32f7/stm32_sdmmc.c index 5abde307054..2df98c10a94 100644 --- a/arch/arm/src/stm32f7/stm32_sdmmc.c +++ b/arch/arm/src/stm32f7/stm32_sdmmc.c @@ -160,6 +160,7 @@ * that does not have the errata, to override the edge the SDIO * command and data is changed on. */ + #if !defined(STM32_SDMMC_CLKCR_EDGE) # define STM32_SDMMC_CLKCR_EDGE STM32_CLKCR_RISINGEDGE #endif