1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/tinyusb/hw/hw_stm32_otg: fix disabling of V_BUS sensing

This commit is contained in:
Gunar Schorcht 2023-07-05 09:34:33 +02:00
parent b69165cde8
commit 1850f7a2c7

View File

@ -55,6 +55,9 @@ static int tinyusb_hw_init_dev(const dwc2_usb_otg_fshs_config_t *conf)
#ifdef USB_OTG_GCCFG_NOVBUSSENS
/* set No Vbus Sensing */
global_regs->GCCFG |= USB_OTG_GCCFG_NOVBUSSENS;
#elif USB_OTG_GCCFG_VBDEN
/* clear Vbus Detect Enable */
global_regs->GCCFG &= ~USB_OTG_GCCFG_VBDEN;
#endif
#ifdef DWC2_USB_OTG_HS_ENABLED