diff options
author | dpslwk <dps.lwk@gmail.com> | 2016-06-29 12:26:43 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-06-29 14:29:01 +0100 |
commit | f3636a7b46942b7141d75214015a00a4c4aa21d6 (patch) | |
tree | 2e20352aa036ecf52e3a5d19d10c945a89957090 | |
parent | b03df60f32c977a8a272cdeeaf1812f79918e69c (diff) | |
download | micropython-f3636a7b46942b7141d75214015a00a4c4aa21d6.tar.gz micropython-f3636a7b46942b7141d75214015a00a4c4aa21d6.zip |
stmhal: Enable SD card on L4 MCUs.
-rw-r--r-- | stmhal/sdcard.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/stmhal/sdcard.c b/stmhal/sdcard.c index 32c9df60a2..caf6dc8d5d 100644 --- a/stmhal/sdcard.c +++ b/stmhal/sdcard.c @@ -40,9 +40,9 @@ #if MICROPY_HW_HAS_SDCARD -#if defined(MCU_SERIES_F7) +#if defined(MCU_SERIES_F7) || defined(MCU_SERIES_L4) -// The F7 series calls the peripheral SDMMC rather than SDIO, so provide some +// The F7 & L4 series calls the peripheral SDMMC rather than SDIO, so provide some // #defines for backwards compatability. #define SDIO SDMMC1 @@ -65,11 +65,6 @@ #define SDIO_TRANSFER_CLK_DIV SDMMC_TRANSFER_CLK_DIV -#elif defined(MCU_SERIES_L4) - -// The L4 series is not supported -#error Unsupported Processor - #endif // TODO: Since SDIO is fundamentally half-duplex, we really only need to |