/* Deinitializes ADC1 peripheral registers to their default reset values.  */
void ADC_DeInit(ADC_TypeDef *ADCx)
/* Deinitializes ADC1 peripheral registers to their default reset values.  */
void ADC_DeInit(ADC_TypeDef *ADCx)
{
    assert_param(IS_ADC_ALL_PERIPH(ADCx));
    if (ADCx == ADC1)
    {
        RCC_APB2PeriphResetCmd(RCC_APB2Periph_ADC1, ENABLE);
        RCC_APB2PeriphResetCmd(RCC_APB2Periph_ADC1, DISABLE);
    }
}