aboutsummaryrefslogtreecommitdiff
path: root/ports/stm32/boards/NUCLEO_F722ZE/board_init.c
blob: 5a7c6052af9bfe63ef58bbc61ea37240f898227e (plain)
1
2
3
4
5
6
7
8
#include "py/mphal.h"

void 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);
}