/* Enable the discontinuous mode for the selected ADC channels.  */
void ADC_DiscModeCmd(ADC_TypeDef *ADCx, FunctionalState NewState)
/* Enable the discontinuous mode for the selected ADC channels.  */
void ADC_DiscModeCmd(ADC_TypeDef *ADCx, FunctionalState NewState)
{
    assert_param(IS_ADC_ALL_PERIPH(ADCx));
    assert_param(IS_FUNCTIONAL_STATE(NewState));
    if (NewState != DISABLE)
    {
        ADCx->CFGR1 |= (uint32_t)ADC_CFGR1_DISCEN;
    }
    else
    {
        ADCx->CFGR1 &= (uint32_t)(~ADC_CFGR1_DISCEN);
    }
}