Browse Source

stm32/sdcard: Add hook for a board to power on SD/MMC.

pull/4884/head
Damien George 5 years ago
parent
commit
7f33f158b9
  1. 4
      ports/stm32/sdcard.c

4
ports/stm32/sdcard.c

@ -304,6 +304,10 @@ bool sdcard_power_on(void) {
return true;
}
#ifdef MICROPY_BOARD_SDCARD_POWER
MICROPY_BOARD_SDCARD_POWER
#endif
HAL_StatusTypeDef status = HAL_ERROR;
switch (pyb_sdmmc_flags) {
#if MICROPY_HW_ENABLE_SDCARD

Loading…
Cancel
Save