enable pull-up in dcd_init() instead of usbd

This commit is contained in:
hathach
2020-08-01 20:14:58 +07:00
parent 310797a580
commit acde49ccc9
12 changed files with 17 additions and 13 deletions

View File

@@ -453,6 +453,8 @@ void dcd_init (uint8_t rhport)
// Enable global interrupt
usb_otg->GAHBCFG |= USB_OTG_GAHBCFG_GINT;
dcd_connect(rhport);
}
void dcd_int_enable (uint8_t rhport)