diff options
| author | HiFiPhile <[email protected]> | 2026-01-30 19:34:54 +0100 |
|---|---|---|
| committer | HiFiPhile <[email protected]> | 2026-01-31 00:21:24 +0100 |
| commit | 42f623a2a7dbd2246368ac2df0ed8c90480d7156 (patch) | |
| tree | 1f3f86b18b106eb2bc801bd178bc9ad0b7f801ef | |
| parent | 7a854cf50fe6048c1a76c3bbbe07dfb1e6b0d73c (diff) | |
bsp/stm32wba: update vbus sense
Signed-off-by: HiFiPhile <[email protected]>
| -rw-r--r-- | hw/bsp/stm32wba/family.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/hw/bsp/stm32wba/family.c b/hw/bsp/stm32wba/family.c index 8dc6547ae..d05415755 100644 --- a/hw/bsp/stm32wba/family.c +++ b/hw/bsp/stm32wba/family.c @@ -172,14 +172,7 @@ void board_init(void) { // Configuring the SYSCFG registers OTG_HS PHY SYSCFG->OTGHSPHYCR |= SYSCFG_OTGHSPHYCR_EN; - - // Disable VBUS sense (B device) - USB_OTG_HS->GCCFG &= ~USB_OTG_GCCFG_VBDEN; - - // B-peripheral session valid override enable - USB_OTG_HS->GCCFG |= USB_OTG_GCCFG_VBVALEXTOEN; - USB_OTG_HS->GCCFG |= USB_OTG_GCCFG_VBVALOVAL; - #endif // USB_OTG_FS + #endif // USB_OTG_HS } void board_led_write(bool state) { HAL_GPIO_WritePin(LED_PORT, LED_PIN, state ? LED_STATE_ON : (1 - LED_STATE_ON)); } |
