RP2040-Examples
RP2040-Examples copied to clipboard
return type of dma_transfer_count
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