summaryrefslogtreecommitdiff
path: root/rcc.cpp
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2011-11-10 19:58:30 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2011-11-10 19:58:30 +0100
commita43e0e8ed63aaa72a7d168bca6de1f0fb0fec464 (patch)
tree4e1aabb04c2e46835305f6713972556f4c82ab80 /rcc.cpp
parent6b9259b3d611d66e8c99ffa33d01a0396f1624b6 (diff)
Enable ADC reading of battery status.
Diffstat (limited to 'rcc.cpp')
-rw-r--r--rcc.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/rcc.cpp b/rcc.cpp
index 79bbc69..e3ae38d 100644
--- a/rcc.cpp
+++ b/rcc.cpp
@@ -20,4 +20,7 @@ void rcc_init() {
// Set APB1 prescaler to /2.
RCC.CFGR |= 0x400;
+
+ // Set ADCCLK prescaler to /6.
+ RCC.CFGR |= 0x8000;
}