diff options
Diffstat (limited to 'os/hal/ports/SAMA/LLD/SDMMCv1/ch_sdmmc.c')
-rw-r--r-- | os/hal/ports/SAMA/LLD/SDMMCv1/ch_sdmmc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/os/hal/ports/SAMA/LLD/SDMMCv1/ch_sdmmc.c b/os/hal/ports/SAMA/LLD/SDMMCv1/ch_sdmmc.c index c47c520af..aabf0d153 100644 --- a/os/hal/ports/SAMA/LLD/SDMMCv1/ch_sdmmc.c +++ b/os/hal/ports/SAMA/LLD/SDMMCv1/ch_sdmmc.c @@ -1,5 +1,8 @@ #include <string.h>
#include "hal.h"
+
+#if (HAL_USE_SDMMC == TRUE)
+
#include "sama_sdmmc_lld.h"
#include "ch_sdmmc_device.h"
#include "ch_sdmmc_cmds.h"
@@ -502,4 +505,5 @@ uint32_t SdmmcDecodeTransSpeed(uint32_t code, return speed;
}
+#endif
|