i got a trouble that how to clear the uncommitted content in one endpoint fifo.
i miswrite some data(unknown how much but less than 512) in the salve fifo of endpoint 2.the packet size of endpoint 2 is 512B
then i want to clear the data.
i tried to use "FIFORESET=0x02" or "FIFOREST=0x82",which means reset the endpoint 2.
but it failed. that method can't clear the data. because next time i read the endpoint 2, the data miswritted in are still there.
so what can i do to clear them
OUTPKTEND = 0x82;
Repeat the same thing as many times as your buffer depth. Have 2 sets of above mentioned statements if the EP2 is double buffer.
FIFORESET just reset the FIFO pointers...