uframeInterval in USB_HostEhciOpenInterrupt

cancel
Showing results for 
Search instead for 
Did you mean: 

uframeInterval in USB_HostEhciOpenInterrupt

185 Views
Contributor III

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?

pastedImage_1.png

Labels (1)
0 Kudos
2 Replies

62 Views
NXP TechSupport
NXP TechSupport

Hi,

What kind of application do you want USB to support? Interrupt with 1 microframe interval is really fast.

Regards,

Jing

0 Kudos

62 Views
NXP TechSupport
NXP TechSupport

Hi,

Please modify the third item in that for-loop to ((ehciPipePointer->uframeInterval + 7) / 8). It should be ok.

Regards

Jing

0 Kudos