In the RT1050 SDK, the function USB_HostEhciOpenInterrupt in usb_host_ehci.c,
there's a for loop to add QH to frame.
I uses RT1050 to connect to one USB HID device, which has 1 microframe interval in the descriptor.
In line 3173, the ehciPipePointer->uframeInterval / 8 equals to 0 if the USB device is with 1 microframe interval and it would result in the endless loop of this for loop.
How should I properly modify the code for the USB devices with 1 microframe interval?
Hi,
What kind of application do you want USB to support? Interrupt with 1 microframe interval is really fast.
Regards,
Jing
Hi,
Please modify the third item in that for-loop to ((ehciPipePointer->uframeInterval + 7) / 8). It should be ok.
Regards
Jing