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:
parent
b69165cde8
commit
1850f7a2c7
@ -55,6 +55,9 @@ static int tinyusb_hw_init_dev(const dwc2_usb_otg_fshs_config_t *conf)
|
|||||||
#ifdef USB_OTG_GCCFG_NOVBUSSENS
|
#ifdef USB_OTG_GCCFG_NOVBUSSENS
|
||||||
/* set No Vbus Sensing */
|
/* set No Vbus Sensing */
|
||||||
global_regs->GCCFG |= USB_OTG_GCCFG_NOVBUSSENS;
|
global_regs->GCCFG |= USB_OTG_GCCFG_NOVBUSSENS;
|
||||||
|
#elif USB_OTG_GCCFG_VBDEN
|
||||||
|
/* clear Vbus Detect Enable */
|
||||||
|
global_regs->GCCFG &= ~USB_OTG_GCCFG_VBDEN;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DWC2_USB_OTG_HS_ENABLED
|
#ifdef DWC2_USB_OTG_HS_ENABLED
|
||||||
|
Loading…
Reference in New Issue
Block a user