stm32/sdcard: Add hook for a board to power on SD/MMC.
This commit is contained in:
parent
1cd2bc066d
commit
7f33f158b9
@ -304,6 +304,10 @@ bool sdcard_power_on(void) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef MICROPY_BOARD_SDCARD_POWER
|
||||||
|
MICROPY_BOARD_SDCARD_POWER
|
||||||
|
#endif
|
||||||
|
|
||||||
HAL_StatusTypeDef status = HAL_ERROR;
|
HAL_StatusTypeDef status = HAL_ERROR;
|
||||||
switch (pyb_sdmmc_flags) {
|
switch (pyb_sdmmc_flags) {
|
||||||
#if MICROPY_HW_ENABLE_SDCARD
|
#if MICROPY_HW_ENABLE_SDCARD
|
||||||
|
Loading…
Reference in New Issue
Block a user