1 parent b03df60 commit f3636a7Copy full SHA for f3636a7
1 file changed
stmhal/sdcard.c
@@ -40,9 +40,9 @@
40
41
#if MICROPY_HW_HAS_SDCARD
42
43
-#if defined(MCU_SERIES_F7)
+#if defined(MCU_SERIES_F7) || defined(MCU_SERIES_L4)
44
45
-// 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
46
// #defines for backwards compatability.
47
48
#define SDIO SDMMC1
@@ -65,11 +65,6 @@
65
66
#define SDIO_TRANSFER_CLK_DIV SDMMC_TRANSFER_CLK_DIV
67
68
-#elif defined(MCU_SERIES_L4)
69
-
70
-// The L4 series is not supported
71
-#error Unsupported Processor
72
73
#endif
74
75
// TODO: Since SDIO is fundamentally half-duplex, we really only need to
0 commit comments