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.
Diff: SETUP.cpp
- Revision:
- 17:97a16bf2ff43
- Parent:
- 16:cb10aec6feb1
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