diff options
Diffstat (limited to 'os/hal/src/mmc_spi.c')
-rw-r--r-- | os/hal/src/mmc_spi.c | 11 |
1 files changed, 7 insertions, 4 deletions
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 <ch.h>
-#include <spi.h>
-#include <mmc_spi.h>
+#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 */
+
/** @} */
|