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
Diff: example2.cpp
- Revision:
- 9:e7ecf909e834
- Parent:
- 8:cb4d323ce6fd
- Child:
- 10:3a46c1e383a4
diff -r cb4d323ce6fd -r e7ecf909e834 example2.cpp
--- a/example2.cpp Sat Feb 05 08:53:26 2011 +0000
+++ b/example2.cpp Tue Mar 08 17:47:43 2011 +0000
@@ -40,7 +40,7 @@
// Power up the ADC and set PCLK
LPC_SC->PCONP |= (1UL << 12);
- LPC_SC->PCLKSEL0 &= ~(3UL << 16); // PCLK = CCLK/4 96M/4 = 24MHz
+ LPC_SC->PCLKSEL0 &= ~(3UL << 24); // PCLK = CCLK/4 96M/4 = 24MHz
// Enable the ADC, 12MHz, ADC0.0 & .1
LPC_ADC->ADCR = (1UL << 21) | (1UL << 8) | (3UL << 0);