diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-05-18 20:23:56 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-05-19 18:45:45 -0400 |
commit | 639149a8abbe3c41e62cb3986f5df8509209ca2f (patch) | |
tree | 09ea66d792c481a4ce4a67cca52a3682c67f3608 /wirish | |
parent | a076b0eeab4b84024287c23ca049d563b0467eff (diff) | |
download | librambutan-639149a8abbe3c41e62cb3986f5df8509209ca2f.tar.gz librambutan-639149a8abbe3c41e62cb3986f5df8509209ca2f.zip |
adc.c: adc_init() doesn't set the RCC's ADC prescaler.
You have to call rcc_set_prescaler() yourself now. adc_init() never
should have been doing that anyway.
Diffstat (limited to 'wirish')
-rw-r--r-- | wirish/boards.cpp | 1 |
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); } |