ok
Dependents: Bootcamp-dma-serial
Fork of MODDMA by
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