Example that uses 2 DMA channels to read the ADC and write data into an incrementing buffer

DMA0 writes to the buffer 10000 results and then DMA1 takes over

When DMA1 has written 10000 results, DMA0 takes over.


When the buffer is full, the buffer size is 100000 elements in size, the buffer wraps around