From 845940dd908eb2f19f78fce9c96e3e3c674d3ecb Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Wed, 22 May 2019 15:13:40 +0200 Subject: [PATCH] STM32H7 - Fix building targets that can optionally define USE_SDCARD i.e. MINIMALH750_EXST doesn't currently build, but should when USE_SDCARD is enabled in the target config. The issue arises from target .mk file's FEATURES list in combination with STM32H7.mk including sdcard specific file when the SDCARD_SDIO feature is enabled. --- src/main/msc/usbd_storage_sdio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/msc/usbd_storage_sdio.c b/src/main/msc/usbd_storage_sdio.c index fc7d690b9..c24b4a1da 100644 --- a/src/main/msc/usbd_storage_sdio.c +++ b/src/main/msc/usbd_storage_sdio.c @@ -32,6 +32,8 @@ #include "platform.h" +#ifdef USE_SDCARD + #include "common/utils.h" #include "drivers/dma.h" #include "drivers/dma_reqmap.h" @@ -308,3 +310,4 @@ static int8_t STORAGE_GetMaxLun (void) /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ +#endif // USE_SDCARD