Commit 9a1ab228 authored by Damien George's avatar Damien George

stm32/main: Call sdcard_init when only MICROPY_HW_ENABLE_MMCARD enabled.

Otherwise, if MMCARD is enabled and not SDCARD, then the GPIO will not be
configured for SDIO.
Signed-off-by: default avatarDamien George <damien@micropython.org>
parent 88ac5a31
......@@ -419,7 +419,7 @@ void stm32_main(uint32_t reset_mode) {
#if MICROPY_PY_PYB_LEGACY && MICROPY_HW_ENABLE_HW_I2C
i2c_init0();
#endif
#if MICROPY_HW_ENABLE_SDCARD
#if MICROPY_HW_ENABLE_SDCARD || MICROPY_HW_ENABLE_MMCARD
sdcard_init();
#endif
#if MICROPY_HW_ENABLE_STORAGE
......
Markdown is supported
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