summaryrefslogtreecommitdiff
path: root/rcc.cpp
diff options
context:
space:
mode:
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;
}