micropython/ports/stm32/boards/NUCLEO_H743ZI/board_init.c
rolandvs 958fa74521 stm32/boards: Ensure USB OTG power is off for NUCLEO_F767ZI.
And update the GPIO init for NUCLEO_H743ZI to consistently use the mphal
functions.
2018-05-30 09:51:19 +10:00

9 lines
218 B
C

#include "py/mphal.h"
void NUCLEO_H743ZI_board_early_init(void) {
// Turn off the USB switch
#define USB_PowerSwitchOn pin_G6
mp_hal_pin_output(USB_PowerSwitchOn);
mp_hal_pin_low(USB_PowerSwitchOn);
}