RP2040-Examples icon indicating copy to clipboard operation
RP2040-Examples copied to clipboard

return type of dma_transfer_count

Open SteKme opened this issue 2 years ago • 0 comments

Hi,

please are You sure return type INT is appropriate for dma_transfer_count()? To me, it seems uint is the correct one: if max number of transfers (0xffffffff) is set to the counter for an endless ring buffer writing, int function would return negative values..

Possibly applicable to read addr, write addr... functions as well.

Thank You, Stepan

SteKme avatar May 08 '23 12:05 SteKme