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

This commit is contained in:
Damien George 2019-07-04 11:10:54 +10:00
parent 1cd2bc066d
commit 7f33f158b9
1 changed files with 4 additions and 0 deletions

View File

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