uframeInterval in USB_HostEhciOpenInterrupt

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

uframeInterval in USB_HostEhciOpenInterrupt

1,900件の閲覧回数
jayyehtw
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

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

1,777件の閲覧回数
jingpan
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 件の賞賛
返信

1,777件の閲覧回数
jingpan
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 件の賞賛
返信