add config macro for synopsys vbus enable

This commit is contained in:
sakumisu
2022-01-29 23:20:31 +08:00
committed by sakimusu
parent 406036f6d2
commit c23ed6fea5

View File

@@ -185,7 +185,7 @@ int usb_dc_init(void)
USBx->DIEPTXF[i] = 0U;
}
#if 1 /* To fix vbus sensing disable*/
#ifdef CONFIG_USB_SYNOPSYS_NOVBUSSEN
/* Deactivate VBUS Sensing B */
USBx->GCCFG &= ~USB_OTG_GCCFG_VBDEN;