stm32: adc-v2: pull up start_regular

Little steps are easy to review, and easy to test.
This commit is contained in:
Karl Palsson
2016-01-29 21:10:04 +00:00
parent 8b7a5ce7aa
commit 81319a96fb
7 changed files with 20 additions and 54 deletions

View File

@@ -430,25 +430,6 @@ void adc_disable_eos_interrupt(uint32_t adc)
}
/*---------------------------------------------------------------------------*/
/** @brief ADC Software Triggered Conversion on Regular Channels
*
* This starts conversion on a set of defined regular channels. It is cleared
* by hardware once conversion starts.
*
* @param[in] adc Unsigned int32. ADC block register address base @ref
* adc_reg_base
*/
void adc_start_conversion_regular(uint32_t adc)
{
/* Start conversion on regular channels. */
ADC_CR(adc) |= ADC_CR_ADSTART;
/* Wait until the ADC starts the conversion. */
while (ADC_CR(adc) & ADC_CR_ADSTART);
}
/*---------------------------------------------------------------------------*/
/** @brief ADC Software Triggered Conversion on Injected Channels
*