allow imxrt build with dual exmaples

This commit is contained in:
hathach
2023-05-10 11:15:11 +07:00
parent bc579c045e
commit c0e4c02b9d
6 changed files with 30 additions and 22 deletions

View File

@@ -76,6 +76,8 @@ bool hcd_init(uint8_t rhport)
#endif
// FIXME force full speed, still have issue with Highspeed enumeration
// 1. Have issue when plug/unplug devices, maybe the port is not reset properly
// 2. Also does not seems to detect disconnection
hcd_reg->PORTSC1 |= PORTSC1_FORCE_FULL_SPEED;
return ehci_init(rhport, (uint32_t) &hcd_reg->CAPLENGTH, (uint32_t) &hcd_reg->USBCMD);