Paul,
I took a look at your code, and I'd like to try to port it over to use on the Arduino Due, but I'm confused by some of the following statements:
GPIOD_PCOR = 0xFF;
// DMA channel #1 sets WS2811 high at the beginning of each cycle
DMA_TCD1_SADDR = &ones;
DMA_TCD1_SOFF = 0;
DMA_TCD1_ATTR = DMA_TCD_ATTR_SSIZE(0) | DMA_TCD_ATTR_DSIZE(0);
DMA_TCD1_NBYTES_MLNO = 1;
DMA_TCD1_SLAST = 0;
DMA_TCD1_DADDR = &GPIOD_PSOR;
DMA_TCD1_DOFF = 0;
DMA_TCD1_CITER_ELINKNO = bufsize;
DMA_TCD1_DLASTSGA = 0;
DMA_TCD1_CSR = DMA_TCD_CSR_DREQ;
DMA_TCD1_BITER_ELINKNO = bufsize;
Are these statements particular to the Teensy, or DMA? I've never used DMA before, and I tried googling a few of the statements but didn't get anywhere.
Could you give me a pointer?
Thanks