diff --git a/configs/stm32f746g-disco/include/board.h b/configs/stm32f746g-disco/include/board.h index 57dd9a133e..f7ae001aac 100644 --- a/configs/stm32f746g-disco/include/board.h +++ b/configs/stm32f746g-disco/include/board.h @@ -47,8 +47,9 @@ #endif #include "stm32_rcc.h" -#include "stm32_sdio.h" -#include "stm32.h" +#ifdef CONFIG_STM32F7_SDMMC1 +# include "stm32_sdmmc.h" +#endif /************************************************************************************ * Pre-processor Definitions