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

drivers/usbdev_synopsys_dwc2: fix disabling of V_BUS sensing

This commit is contained in:
Gunar Schorcht 2023-07-05 09:33:53 +02:00
parent ff9059c661
commit b69165cde8

View File

@ -1008,7 +1008,7 @@ static void _usbdev_init(usbdev_t *dev)
_global_regs(usbdev->config)->GCCFG |= USB_OTG_GCCFG_NOVBUSSENS;
#elif defined(STM32_USB_OTG_CID_2x)
/* clear Vbus Detect Enable */
_global_regs(usbdev->config)->GCCFG |= USB_OTG_GCCFG_VBDEN;
_global_regs(usbdev->config)->GCCFG &= ~USB_OTG_GCCFG_VBDEN;
/* Force Vbus Detect values and ID detect values to device mode */
_global_regs(usbdev->config)->GOTGCTL |= USB_OTG_GOTGCTL_VBVALOVAL |
USB_OTG_GOTGCTL_VBVALOEN |