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