Use REBASE(OTG_FIFO(endpoint)) to access the FIFO. For the receive FIFO do not use the endpoint. There is only one receive FIFO so giving the endpoint is a no-op. Get rid of REBASE_FIFO macro.
Use REBASE(OTG_FIFO(endpoint)) to access the FIFO. For the receive FIFO do not use the endpoint. There is only one receive FIFO so giving the endpoint is a no-op. Get rid of REBASE_FIFO macro.