stm32/boards/PYBD_SFx: Automatically turn on EN_3V3 when powering SD/MMC

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

View File

@ -44,6 +44,7 @@
#define MICROPY_BOARD_ENTER_STOP board_sleep(1); #define MICROPY_BOARD_ENTER_STOP board_sleep(1);
#define MICROPY_BOARD_LEAVE_STOP board_sleep(0); #define MICROPY_BOARD_LEAVE_STOP board_sleep(0);
#define MICROPY_BOARD_ENTER_STANDBY board_sleep(1); #define MICROPY_BOARD_ENTER_STANDBY board_sleep(1);
#define MICROPY_BOARD_SDCARD_POWER mp_hal_pin_high(pyb_pin_EN_3V3);
void board_early_init(void); void board_early_init(void);
void board_sleep(int value); void board_sleep(int value);