stmhal: Enable SD card on L4 MCUs.

pull/2067/merge
dpslwk 2016-06-29 12:26:43 +01:00 zatwierdzone przez Damien George
rodzic b03df60f32
commit f3636a7b46
1 zmienionych plików z 2 dodań i 7 usunięć

Wyświetl plik

@ -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