Hello Greg and others,
I am developing a USB Host controller on NuttX with hardware which is not
compliant with OHCI or EHCI. As the hardware provides setup of hardware
registers for the USB Host, I am trying to "fit" it to OHCI spec (currently
using lpc17_40_usbhost as reference).
I am confused about the usage of following buffers and how to use them in
read/ write from hardware during interrupt (in bottom half).
During initialization, EDuffer, TDBuffer, TBBuffer and xferInfo buffers are
created. I am using chunk of memory for each of these and allocated 10
buffers for each (hardware has 10 endpoints) for ED, TD, TB and xferInfo. I
assume ED for Endpoint, TD for Transfer Descriptor, TB for TransferBuffer
and xferInfo is to manage the transfer details between interrupts.
With this setup and initial configuration, I am able to detect attaching of
device and then issue first setup packet. Device sends the data and
interrupt is triggered. I ack this interrupt and start the bottom half
(worker queue) to read the data (I have the data in the hardware registers)
and in bottom half, I am not sure, where should I read this data into - ED/
TD/ TB? Also I am not sure, how to get the reference to these buffers in
bottom half?
Some pointers/ direction would help me a lot.
Thanks in advance and with best regards,
Phani.

>

Reply via email to