From 639149a8abbe3c41e62cb3986f5df8509209ca2f Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Wed, 18 May 2011 20:23:56 -0400 Subject: 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. --- libmaple/adc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libmaple') diff --git a/libmaple/adc.c b/libmaple/adc.c index 73dce0a..16ca8bc 100644 --- a/libmaple/adc.c +++ b/libmaple/adc.c @@ -62,13 +62,12 @@ const adc_dev *ADC3 = &adc3; /** * @brief Initialize an ADC peripheral. * - * Initializes the RCC clock line for the given peripheral, using ADC - * prescaler RCC_ADCPRE_PCLK_DIV_6. Resets ADC device registers. + * Initializes the RCC clock line for the given peripheral. Resets + * ADC device registers. * * @param dev ADC peripheral to initialize */ void adc_init(const adc_dev *dev) { - rcc_set_prescaler(RCC_PRESCALER_ADC, RCC_ADCPRE_PCLK_DIV_6); rcc_clk_enable(dev->clk_id); rcc_reset_dev(dev->clk_id); } -- cgit v1.2.3