board_init.c 218 B

12345678
  1. #include "py/mphal.h"
  2. void NUCLEO_H743ZI_board_early_init(void) {
  3. // Turn off the USB switch
  4. #define USB_PowerSwitchOn pin_G6
  5. mp_hal_pin_output(USB_PowerSwitchOn);
  6. mp_hal_pin_low(USB_PowerSwitchOn);
  7. }