MODDMA GPDMA Controller New features: transfer pins to memory buffer under periodic timer control and send double buffers to DAC

Dependents:   FirstTest WaveSim IO-dma-memmem DACDMAfuncgenlib ... more

Files at this revision

API Documentation at this revision

Comitter:
AjK
Date:
Sat Mar 02 19:27:12 2013 +0000
Parent:
16:cb10aec6feb1
Commit message:
1.13 See ChangeLog.c

Changed in this revision

ChangeLog.c Show annotated file Show diff for this revision Revisions of this file
SETUP.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r cb10aec6feb1 -r 97a16bf2ff43 ChangeLog.c
--- a/ChangeLog.c	Mon Mar 14 13:51:38 2011 +0000
+++ b/ChangeLog.c	Sat Mar 02 19:27:12 2013 +0000
@@ -1,5 +1,10 @@
 /* $Id:$
 
+1.13- 2 Mar 2013
+
+    * Update RESERVED9 to DMAREQSEL in SETUP.cpp
+      Thanks Bryce Chee for pointing it out.
+
 1.12- 14 Mar 2011
 
     * Added example4.h that demonstrates alternately sending
diff -r cb10aec6feb1 -r 97a16bf2ff43 SETUP.cpp
--- a/SETUP.cpp	Mon Mar 14 13:51:38 2011 +0000
+++ b/SETUP.cpp	Sat Mar 02 19:27:12 2013 +0000
@@ -147,18 +147,18 @@
 
      // Re-Configure DMA Request Select for source peripheral 
     if (config->srcConn() > 15) {
-        LPC_SC->RESERVED9 |= (1 << (config->srcConn() - 16));
+        LPC_SC->DMAREQSEL |= (1 << (config->srcConn() - 16));
     } 
     else {
-        LPC_SC->RESERVED9 &= ~(1 << (config->srcConn() - 8));
+        LPC_SC->DMAREQSEL &= ~(1 << (config->srcConn() - 8));
     }
 
     // Re-Configure DMA Request Select for destination peripheral
     if (config->dstConn() > 15) {
-        LPC_SC->RESERVED9 |= (1 << (config->dstConn() - 16));
+        LPC_SC->DMAREQSEL |= (1 << (config->dstConn() - 16));
     } 
     else {
-        LPC_SC->RESERVED9 &= ~(1 << (config->dstConn() - 8));
+        LPC_SC->DMAREQSEL &= ~(1 << (config->dstConn() - 8));
     }
 
     // Enable DMA channels, little endian