From a43e0e8ed63aaa72a7d168bca6de1f0fb0fec464 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Thu, 10 Nov 2011 19:58:30 +0100 Subject: Enable ADC reading of battery status. --- rcc.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rcc.cpp') 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; } -- cgit v1.2.3