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:
Wed Nov 24 00:32:49 2010 +0000
Parent:
6:40d38be4bb59
Child:
8:cb4d323ce6fd
Commit message:
1.4

Changed in this revision

ChangeLog.c Show annotated file Show diff for this revision Revisions of this file
MODDMA.h Show annotated file Show diff for this revision Revisions of this file
example1.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/ChangeLog.c	Tue Nov 23 21:34:21 2010 +0000
+++ b/ChangeLog.c	Wed Nov 24 00:32:49 2010 +0000
@@ -1,5 +1,10 @@
 /* $Id:$
 
+1.4 - 23/11/2010
+
+    * Added some extra overloaded methods to make calling certain
+      userland API methods simpler.
+      
 1.3 - 23/10/2010
 
     * Added the LLI class wrapper.
--- a/MODDMA.h	Tue Nov 23 21:34:21 2010 +0000
+++ b/MODDMA.h	Wed Nov 24 00:32:49 2010 +0000
@@ -393,6 +393,15 @@
     void Enable(uint32_t ChannelNumber) { Enable((CHANNELS)(ChannelNumber & 0x7)); }
     
     /**
+     * Enable and begin data transfer (overloaded function)
+     *
+     * @ingroup API
+     * @param config A pointer to teh configuration
+     */
+    void Enable(MODDMA_Config *config) { Enable( config->channelNum() ); }
+        
+    
+    /**
      * Disable a channel and end data transfer.
      *
      * @ingroup API
--- a/example1.cpp	Tue Nov 23 21:34:21 2010 +0000
+++ b/example1.cpp	Wed Nov 24 00:32:49 2010 +0000
@@ -45,7 +45,8 @@
     dma.Setup(config);
     
     //dma.Enable( MODDMA::Channel_0 );
-    dma.Enable( config->channelNum() );
+    //dma.Enable( config->channelNum() );
+    dma.Enable( config );
     
     while (1) {
         led1 = !led1;