MODDMA GPDMA Controller fork EXPERIMENTAL -- do not use
Fork of MODDMA by
Revision 18:2aa6ffab5522, committed 2013-08-02
- 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 |
diff -r 97a16bf2ff43 -r 2aa6ffab5522 MODDMA.h --- 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 {
diff -r 97a16bf2ff43 -r 2aa6ffab5522 SETUP.cpp --- 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()))