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.
Dependents: FirstTest WaveSim IO-dma-memmem DACDMAfuncgenlib ... more
Revision 17:97a16bf2ff43, committed 2013-03-02
- 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 |
--- 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
--- 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