diff options
author | Damien George <damien@micropython.org> | 2021-12-14 00:03:08 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-12-14 10:48:01 +1100 |
commit | 9a1ab2286ded9a8d83f4fef3b2eaa5e857dbded0 (patch) | |
tree | d846e5106f6da892fdea1db1f46438a67bdb25fa | |
parent | 88ac5a3116d97f4b18f10b9a5855f008cffff6db (diff) |
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: Damien George <damien@micropython.org>
-rw-r--r-- | ports/stm32/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/main.c b/ports/stm32/main.c index 974602cb0..7a7f80467 100644 --- a/ports/stm32/main.c +++ b/ports/stm32/main.c @@ -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 |