Remove clock init.

This commit is contained in:
MasterPhi 2021-07-19 22:03:47 +02:00
parent 8cae17bfc8
commit 75f61328ea
1 changed files with 8 additions and 8 deletions

View File

@ -102,14 +102,14 @@ static const tusb_desc_endpoint_t ep0_desc =
// Initialize controller to device mode // Initialize controller to device mode
void dcd_init (uint8_t rhport) void dcd_init (uint8_t rhport)
{ {
// Enable USBPLL // // Enable USBPLL
PMC->CKGR_UCKR = CKGR_UCKR_UPLLEN | CKGR_UCKR_UPLLCOUNT(0x3fU); // PMC->CKGR_UCKR = CKGR_UCKR_UPLLEN | CKGR_UCKR_UPLLCOUNT(0x3fU);
// Wait until USB UTMI stabilize // // Wait until USB UTMI stabilize
while (!(PMC->PMC_SR & PMC_SR_LOCKU)); // while (!(PMC->PMC_SR & PMC_SR_LOCKU));
// Enable USB FS clk // // Enable USB FS clk
PMC->PMC_MCKR &= ~PMC_MCKR_UPLLDIV2; // PMC->PMC_MCKR &= ~PMC_MCKR_UPLLDIV2;
PMC->PMC_USB = PMC_USB_USBS | PMC_USB_USBDIV(10 - 1); // PMC->PMC_USB = PMC_USB_USBS | PMC_USB_USBDIV(10 - 1);
PMC->PMC_SCER = PMC_SCER_USBCLK; // PMC->PMC_SCER = PMC_SCER_USBCLK;
dcd_connect(rhport); dcd_connect(rhport);
} }