MODDMA GPDMA Controller fork EXPERIMENTAL -- do not use

Fork of MODDMA by Andy K

Files at this revision

API Documentation at this revision

Comitter:
avbotz
Date:
Fri Aug 02 02:21:55 2013 +0000
Parent:
17:97a16bf2ff43
Commit message:
Initial commit. Not working. MODDMA makes DMA setup slow, and the mbed SPI peripheral corrupts data sometimes. I will write my own SPI and DMA classes and see how it goes.

Changed in this revision

MODDMA.h 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
--- a/MODDMA.h	Sat Mar 02 19:27:12 2013 +0000
+++ b/MODDMA.h	Fri Aug 02 02:21:55 2013 +0000
@@ -34,7 +34,7 @@
 /** @defgroup INTERNALS MODSERIAL Internals */
 
 #include "mbed.h"
-#include "iomacros.h"
+#include "IOMacros.h"
 
 namespace AjK {
 
--- a/SETUP.cpp	Sat Mar 02 19:27:12 2013 +0000
+++ b/SETUP.cpp	Fri Aug 02 02:21:55 2013 +0000
@@ -66,7 +66,7 @@
             // Assign physical source
             pChannel->DMACCSrcAddr = config->srcMemAddr();
             // Assign peripheral destination address
-            pChannel->DMACCDestAddr = (uint32_t)LUTPerAddr(config->dstConn());
+            pChannel->DMACCDestAddr = /*(uint32_t)&LPC_SSP0->DR;*/(uint32_t)LUTPerAddr(config->dstConn());
             pChannel->DMACCControl
                 = CxControl_TransferSize((uint32_t)config->transferSize()) 
                 | CxControl_SBSize((uint32_t)LUTPerBurst(config->dstConn()))