Commit f3636a7b authored by dpslwk's avatar dpslwk Committed by Damien George
Browse files

stmhal: Enable SD card on L4 MCUs.

parent b03df60f
...@@ -40,9 +40,9 @@ ...@@ -40,9 +40,9 @@
#if MICROPY_HW_HAS_SDCARD #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. // #defines for backwards compatability.
#define SDIO SDMMC1 #define SDIO SDMMC1
...@@ -65,11 +65,6 @@ ...@@ -65,11 +65,6 @@
#define SDIO_TRANSFER_CLK_DIV SDMMC_TRANSFER_CLK_DIV #define SDIO_TRANSFER_CLK_DIV SDMMC_TRANSFER_CLK_DIV
#elif defined(MCU_SERIES_L4)
// The L4 series is not supported
#error Unsupported Processor
#endif #endif
// TODO: Since SDIO is fundamentally half-duplex, we really only need to // TODO: Since SDIO is fundamentally half-duplex, we really only need to
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment