Skip to content

Commit f3636a7

Browse files
dpslwkdpgeorge
authored andcommitted
stmhal: Enable SD card on L4 MCUs.
1 parent b03df60 commit f3636a7

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

stmhal/sdcard.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040

4141
#if MICROPY_HW_HAS_SDCARD
4242

43-
#if defined(MCU_SERIES_F7)
43+
#if defined(MCU_SERIES_F7) || defined(MCU_SERIES_L4)
4444

45-
// The F7 series calls the peripheral SDMMC rather than SDIO, so provide some
45+
// The F7 & L4 series calls the peripheral SDMMC rather than SDIO, so provide some
4646
// #defines for backwards compatability.
4747

4848
#define SDIO SDMMC1
@@ -65,11 +65,6 @@
6565

6666
#define SDIO_TRANSFER_CLK_DIV SDMMC_TRANSFER_CLK_DIV
6767

68-
#elif defined(MCU_SERIES_L4)
69-
70-
// The L4 series is not supported
71-
#error Unsupported Processor
72-
7368
#endif
7469

7570
// TODO: Since SDIO is fundamentally half-duplex, we really only need to

0 commit comments

Comments
 (0)