diff --git a/os/hal/src/mmc_spi.c b/os/hal/src/mmc_spi.c index 4f6adaf7d..7846da353 100644 --- a/os/hal/src/mmc_spi.c +++ b/os/hal/src/mmc_spi.c @@ -19,14 +19,15 @@ /** * @file mmc_spi.c - * @brief MMC over SPI driver code + * @brief MMC over SPI driver code. * @addtogroup MMC_SPI * @{ */ -#include -#include -#include +#include "ch.h" +#include "hal.h" + +#if CH_HAL_USE_MMC_SPI /*===========================================================================*/ /* Driver local functions. */ @@ -569,4 +570,6 @@ bool_t mmcStopSequentialWrite(MMCDriver *mmcp) { return TRUE; } +#endif /* CH_HAL_USE_MMC_SPI */ + /** @} */