/* Enables or disables the specified ADC DMA request.  */
void ADC_DMACmd(ADC_TypeDef *ADCx, FunctionalState NewState)
/* Enables or disables the specified ADC DMA request.  */
void ADC_DMACmd(ADC_TypeDef *ADCx, FunctionalState NewState)
{
  assert_param(IS_ADC_DMA_PERIPH(ADCx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  if (NewState != DISABLE)
  {
    ADCx->CR2 |= (uint32_t)ADC_CR2_DMA;
  }
  else
  {
    ADCx->CR2 &= (uint32_t)(~ADC_CR2_DMA);
  }
}