Merge pull request #478 from hathach/move-dcdconnect-to-dcdinit

Move pull-up enabling to dcd_init() instead of usbd
This commit is contained in:
Ha Thach
2020-08-04 14:11:32 +07:00
committed by GitHub
12 changed files with 17 additions and 13 deletions
@@ -133,6 +133,9 @@ void dcd_init (uint8_t rhport)
// Enable reset and wait for it before continuing.
USBIE |= RSTRIE;
// Enable pullup.
USBCNF |= PUR_EN;
USBKEYPID = 0;
}