From 0869e157187306c4a8cdbe6443fb37d5a597cab4 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Thu, 18 Aug 2016 18:23:14 +0000 Subject: [PATCH] stm32f3: adc: drop unimplemented dead code. These functions have existed since the initial commit, fallout from copying an existing file and then trying to implement functions as needed. F3 ADC doesn't have corresponding functions for some of these, and this dead code should never have landed. Dropping it for clarity, and also to stop confusing doxygen. --- lib/stm32/f3/adc.c | 66 ---------------------------------------------- 1 file changed, 66 deletions(-) diff --git a/lib/stm32/f3/adc.c b/lib/stm32/f3/adc.c index 0b402c75..5715935c 100644 --- a/lib/stm32/f3/adc.c +++ b/lib/stm32/f3/adc.c @@ -295,38 +295,6 @@ void adc_enable_analog_watchdog_on_selected_channel(uint32_t adc, ADC_CFGR1(adc) |= ADC_CFGR1_AWD1SGL; } -/*---------------------------------------------------------------------------*/ -/** @brief ADC Set Scan Mode - * - * In this mode a conversion consists of a scan of the predefined set of - * channels, regular and injected, each channel conversion immediately - * following the previous one. It can use single, continuous or discontinuous - * mode. - * - * @param[in] adc Unsigned int32. ADC block register address base @ref - * adc_reg_base - */ - -/* -void adc_enable_scan_mode(uint32_t adc) -{ - ADC_CR1(adc) |= ADC_CR1_SCAN; -} -*/ - -/*---------------------------------------------------------------------------*/ -/** @brief ADC Disable Scan Mode - * - * @param[in] adc Unsigned int32. ADC block register address base @ref - * adc_reg_base - */ - -/* -void adc_disable_scan_mode(uint32_t adc) -{ - ADC_CR1(adc) &= ~ADC_CR1_SCAN; -} -*/ /*---------------------------------------------------------------------------*/ /** @brief ADC Enable Injected End-Of-Conversion Interrupt @@ -723,40 +691,6 @@ void adc_disable_external_trigger_injected(uint32_t adc) ADC_JSQR(adc) &= ~ADC_JSQR_JEXTEN_MASK; } -/*---------------------------------------------------------------------------*/ -/** @brief ADC Set DMA to Continue - * - * This must be set to allow DMA to continue to operate after the last - * conversion in the DMA sequence. This allows DMA to be used in continuous - * circular mode. - * - * @param[in] adc Unsigned int32. ADC block register address base @ref - * adc_reg_base - */ - -/* -void adc_set_dma_continue(uint32_t adc) -{ - ADC_CR2(adc) |= ADC_CR2_DDS; -} -*/ - -/*---------------------------------------------------------------------------*/ -/** @brief ADC Set DMA to Terminate - * - * This must be set to allow DMA to terminate after the last conversion in the - * DMA sequence. This can avoid overrun errors. - * - * @param[in] adc Unsigned int32. ADC block register address base - * @ref adc_reg_base - */ - -/* -void adc_set_dma_terminate(uint32_t adc) -{ - ADC_CR2(adc) &= ~ADC_CR2_DDS; -} -*/ /*---------------------------------------------------------------------------*/ /** @brief ADC Read the Analog Watchdog Flag