/* Enables or disables the EOC on each regular channel conversion.  */
void ADC_EOCOnEachRegularChannelCmd(ADC_TypeDef *ADCx, FunctionalState NewState)
/* Enables or disables the EOC on each regular channel conversion.  */
void ADC_EOCOnEachRegularChannelCmd(ADC_TypeDef *ADCx, FunctionalState NewState)
{
  assert_param(IS_ADC_ALL_PERIPH(ADCx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  if (NewState != DISABLE)
  {
    ADCx->CR2 |= ADC_CR2_EOCS;
  }
  else
  {
    ADCx->CR2 &= (uint32_t)~ADC_CR2_EOCS;
  }
}