DUEZoo icon indicating copy to clipboard operation
DUEZoo copied to clipboard

dmaspi - SAM3X DMAC/USE_SAM3X_BUS_MATRIX_FIX

Open Paul47 opened this issue 10 years ago • 1 comments

Thanks for the well documented sketches. I have used dmaspi.ino to create a DMA/SPI DUE library that is compatible with SPI.h for the most part. However, could you explain or point me in the right direction concerning these 2 flags? /** Use SAM3X DMAC if nonzero */

define USE_SAM3X_DMAC 1

/** Use extra Bus Matrix arbitration fix if nonzero */

define USE_SAM3X_BUS_MATRIX_FIX 0

For a library, what do you recommend as the the default for each flag? Are they mutually exclusive? If ...DMAC is true, should ..FIX be false?

After some more testing I will post it to github as spidmaDUE. Thanks

Paul47 avatar Oct 04 '14 16:10 Paul47

Sorry, I’m not real sure of the importance of those flags. Most the DMA code was lifted from SDFat library. You might check with the author of that library, or experiment with different values of the flags … good luck

tom d On Oct 4, 2014, at 12:44 PM, Paul [email protected] wrote:

Thanks for the well documented sketches. I have used dmaspi.ino to create a DMA/SPI DUE library that is compatible with SPI.h for the most part. However, could you explain or point me in the right direction concerning these 2 flags? /** Use SAM3X DMAC if nonzero / #define USE_SAM3X_DMAC 1 /* Use extra Bus Matrix arbitration fix if nonzero */ #define USE_SAM3X_BUS_MATRIX_FIX 0

For a library, what do you recommend as the the default for each flag? Are they mutually exclusive? If ...DMAC is true, should ..FIX be false?

After some more testing I will post it to github as spidmaDUE. Thanks

— Reply to this email directly or view it on GitHub.

manitou48 avatar Oct 09 '14 21:10 manitou48