Skip to content

Commit f0fdc0f

Browse files
committed
giga: use new VBUS enable pin
1 parent a525077 commit f0fdc0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/targets/TARGET_STM/USBHALHost_STM.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ static gpio_t gpio_powerpin;
103103
#define USB_POWERPIN_CONFIG {}
104104

105105
#elif defined(TARGET_GIGA)
106-
#define USB_POWER_ON 0
107-
#define USB_POWER_OFF 1
108-
#define USB_POWERPIN_CONFIG {}
106+
#define USB_POWER_ON 1
107+
#define USB_POWER_OFF 0
108+
#define USB_POWERPIN_CONFIG {__HAL_RCC_GPIOA_CLK_ENABLE();gpio_init_out_ex(&gpio_powerpin, PA_15, USB_POWER_OFF);}
109109

110110
#elif defined(TARGET_DISCO_F769NI)
111111
#define USB_POWER_ON 0

0 commit comments

Comments
 (0)