FIFO0 is documented as a 32-bit register but it is accessed as though it is a 8-bit register. The FIFO registers are the transfer registers from the interal 4KB RAM inside the USB controller. For endpoint 0, it hard-coded to be the first 64 bytes of that 4KB RAM. So you would read the FIFO register 8 times, on byte at a time, to read out a 8-byte setup packet. For example code, you should look at the TIs StarterWare for C6748. The C6748 has the same OTG controller.
↧