revert CFG_TUSB_RHPORT0_MODE to previous way

This commit is contained in:
hathach
2020-06-14 18:28:45 +07:00
parent e92118635c
commit a347de6e50
3 changed files with 21 additions and 14 deletions

View File

@@ -262,9 +262,8 @@ void board_init(void)
// Enable VBUS sense (B device) via pin PA9
USB_OTG_FS->GCCFG |= USB_OTG_GCCFG_VBDEN;
#endif
#if BOARD_DEVICE_RHPORT_NUM == 1
#elif BOARD_DEVICE_RHPORT_NUM == 1
// Despite being call USB2_OTG
// OTG_HS is marked as RHPort1 by TinyUSB to be consistent across stm32 port