/* Reset ADC peripheral registers to their default reset values.  */
void ADC_Reset(ADC_T *adc)
/* Reset ADC peripheral registers to their default reset values.  */
void ADC_Reset(ADC_T *adc)
{
    if (adc == ADC1)
    {
        RCM_EnableAPB2PeriphReset(RCM_APB2_PERIPH_ADC1);
        RCM_DisableAPB2PeriphReset(RCM_APB2_PERIPH_ADC1);
    }
    else if (adc == ADC2)
    {
        RCM_EnableAPB2PeriphReset(RCM_APB2_PERIPH_ADC2);
        RCM_DisableAPB2PeriphReset(RCM_APB2_PERIPH_ADC2);
    }
    else if (adc == ADC3)
    {
        RCM_EnableAPB2PeriphReset(RCM_APB2_PERIPH_ADC3);
        RCM_DisableAPB2PeriphReset(RCM_APB2_PERIPH_ADC3);
    }
}