disable battery

This commit is contained in:
sakumisu
2022-06-22 22:30:14 +08:00
parent 859c2ee6ae
commit 7f011f2706

View File

@@ -603,6 +603,8 @@ int usb_hc_hw_init(void)
defined(STM32F7) || defined(STM32H7)
/* Disable HW VBUS sensing */
USB_OTG_GLB->GCCFG &= ~(USB_OTG_GCCFG_VBDEN);
/* Disable Battery chargin detector */
USB_OTG_GLB->GCCFG &= ~(USB_OTG_GCCFG_BCDEN);
#else
/*
* Disable HW VBUS sensing. VBUS is internally considered to be always