Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Impedance_Fast_Circuitry 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;