Browse Source

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>
pull/8082/head
Damien George 3 years ago
parent
commit
9a1ab2286d
  1. 2
      ports/stm32/main.c

2
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 #if MICROPY_PY_PYB_LEGACY && MICROPY_HW_ENABLE_HW_I2C
i2c_init0(); i2c_init0();
#endif #endif
#if MICROPY_HW_ENABLE_SDCARD #if MICROPY_HW_ENABLE_SDCARD || MICROPY_HW_ENABLE_MMCARD
sdcard_init(); sdcard_init();
#endif #endif
#if MICROPY_HW_ENABLE_STORAGE #if MICROPY_HW_ENABLE_STORAGE

Loading…
Cancel
Save