I'm using udma with uart and it works well.
Is there function return data's index that is lastly added to rx buffer by dma?
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.
I'm using udma with uart and it works well.
Is there function return data's index that is lastly added to rx buffer by dma?
Hi,
There is no such function. The uDMA will notify the processor using interrupt to signal the completion of the transfer. The user application should know the destination buffer address and size of the buffer where the uDMA transfers the data to. You want to process these data before the next transfer starts which may overwrite the unprocessed data. Use the uDMA Ping-Pong mode should greatly help in this regard.