This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OMAP L138 usb programming question

Other Parts Discussed in Thread: OMAPL138

Hi,

I am new to usb programming. I read the reference spruh77a and assume that the OMAP L138 usb programming procedure is:

1. PHY setup

1.1 clock setup

1.2 Mode setup

2. Endpoint setup

I don't know if this procedure is all for OMAP side usb programming. I assume that OMAP uses isr to trigger usb data transfer.

Also, I am confused about two issues:

1. How does OMAP side data transfer to Endpoint FIFO. Does it use loop like:

for int i = 0; i < packet_length; i++

    *(TXFIFOADDR +i) = * (src + i);

2, How does Endpoint FIFO send data to host? Does FADDR = set_address work, where set_address is address send by host?

Any suggestion is welcomed. Thanks!