Jared Baxter
/
Impedance_Fast_Circuitry
Fork of DSP_200kHz by
Diff: dma.cpp
- Revision:
- 44:41c262caf898
- Parent:
- 43:c593a8b9688f
- Child:
- 45:d591d138cdeb
--- a/dma.cpp Fri Jan 30 08:14:36 2015 +0000 +++ b/dma.cpp Fri Jan 30 14:56:58 2015 +0000 @@ -81,12 +81,12 @@ // Adjustment value used to restore the source and destiny address to the initial value // After reading 'len' number of times, the DMA goes back to the beginning by subtracting len*2 from the address (going back to the address of 'array0') - DMA_TCD0_SLAST = 0x00; // Source address adjustment - DMA_TCD0_DLASTSGA = -(_len*2); // Destination address adjustment - DMA_TCD1_SLAST = 0x00; // Source address adjustment - DMA_TCD1_DLASTSGA = -(_len*2); // Destination address adjustment - DMA_TCD2_SLAST = 0x00; // Source address adjustment - DMA_TCD2_DLASTSGA = -(_len*2); // Destination address adjustment + DMA_TCD0_SLAST = 0; // Source address adjustment + DMA_TCD0_DLASTSGA = 0;//-(_len*2); // Destination address adjustment + DMA_TCD1_SLAST = 0; // Source address adjustment + DMA_TCD1_DLASTSGA = 0;//-(_len*2); // Destination address adjustment + DMA_TCD2_SLAST = 0; // Source address adjustment + DMA_TCD2_DLASTSGA = 0;//-(_len*2); // Destination address adjustment // Setup control and status register DMA_TCD0_CSR = 0;