aboutsummaryrefslogtreecommitdiffstats
path: root/wirish
diff options
context:
space:
mode:
Diffstat (limited to 'wirish')
-rw-r--r--wirish/boards.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/wirish/boards.cpp b/wirish/boards.cpp
index 9e25eeb..3dc48cb 100644
--- a/wirish/boards.cpp
+++ b/wirish/boards.cpp
@@ -106,6 +106,7 @@ static void setupNVIC() {
static void adcDefaultConfig(const adc_dev* dev);
static void setupADC() {
+ rcc_set_prescaler(RCC_PRESCALER_ADC, RCC_ADCPRE_PCLK_DIV_6);
adc_foreach(adcDefaultConfig);
}