ip3511 correct buffer offset, nbytes layout for highspeed port1

able to get passed enumeration and up to READ10
This commit is contained in:
hathach
2021-04-26 14:43:58 +07:00
parent f14daf2081
commit 8ebdf2b097
3 changed files with 83 additions and 24 deletions

View File

@@ -212,7 +212,7 @@ void board_init(void)
/* enable USB Device clock */
CLOCK_EnableUsbhs0PhyPllClock(kCLOCK_UsbPhySrcExt, XTAL0_CLK_HZ);
CLOCK_EnableUsbhs0DeviceClock(kCLOCK_UsbSrcUnused, 0U);
//USB_EhciPhyInit(CONTROLLER_ID, BOARD_XTAL0_CLK_HZ, NULL);
CLOCK_EnableClock(kCLOCK_UsbRam1);
// Enable PHY support for Low speed device + LS via FS Hub
USBPHY->CTRL |= USBPHY_CTRL_SET_ENUTMILEVEL2_MASK | USBPHY_CTRL_SET_ENUTMILEVEL3_MASK;