From cda59c38558b9efbc5fd0a02bf7d65a644f3f97f Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Sat, 10 Sep 2016 13:23:33 +0000 Subject: [PATCH] stm32f1: adc: remove confusing "adc_on" function This is _similar_ to adc_power_on, the common name, but has been marked deprecated since 2012. --- include/libopencm3/stm32/f1/adc.h | 2 -- lib/stm32/f1/adc.c | 18 ------------------ 2 files changed, 20 deletions(-) diff --git a/include/libopencm3/stm32/f1/adc.h b/include/libopencm3/stm32/f1/adc.h index 91a03bbb..e31181d6 100644 --- a/include/libopencm3/stm32/f1/adc.h +++ b/include/libopencm3/stm32/f1/adc.h @@ -417,8 +417,6 @@ void adc_calibration(uint32_t adc) void adc_calibrate_async(uint32_t adc); bool adc_is_calibrating(uint32_t adc); void adc_calibrate(uint32_t adc); -void adc_on(uint32_t adc) - LIBOPENCM3_DEPRECATED("will be removed in the first release"); END_DECLS diff --git a/lib/stm32/f1/adc.c b/lib/stm32/f1/adc.c index c915ae88..bdb899a3 100644 --- a/lib/stm32/f1/adc.c +++ b/lib/stm32/f1/adc.c @@ -400,24 +400,6 @@ void adc_calibrate(uint32_t adc) while (adc_is_calibrating(adc)); } -/*---------------------------------------------------------------------------*/ -/** @brief ADC Power On - -If the ADC is in power-down mode then it is powered up. The application needs -to wait a time of about 3 microseconds for stabilization before using the ADC. -If the ADC is already on this function call will initiate a conversion. - -@deprecated to be removed in a later release - -@param[in] adc Unsigned int32. ADC block register address base @ref -adc_reg_base. -*/ - -void adc_on(uint32_t adc) -{ - ADC_CR2(adc) |= ADC_CR2_ADON; -} - /*---------------------------------------------------------------------------*/ /** @brief ADC Set the Sample Time for a Single Channel