move VBUS sense out of dcd_synosys to bsp

This commit is contained in:
hathach
2019-12-11 14:03:36 +07:00
parent 88b9a6e84d
commit 96a9eca6a0
10 changed files with 136 additions and 71 deletions
+3
View File
@@ -189,6 +189,9 @@ void board_init(void)
/* Enable USB FS Clocks */
__HAL_RCC_USB_OTG_FS_CLK_ENABLE();
// Enable VBUS sense (B device) via pin PA9
USB_OTG_FS->GCCFG |= USB_OTG_GCCFG_VBDEN;
}
//--------------------------------------------------------------------+