/* Fills each ADC_InitStruct member with its default value.  */
void ADC_StructInit(ADC_InitTypeDef *ADC_InitStruct)
/* Fills each ADC_InitStruct member with its default value.  */
void ADC_StructInit(ADC_InitTypeDef *ADC_InitStruct)
{
    ADC_InitStruct->ADC_Resolution = ADC_Resolution_12b;
    ADC_InitStruct->ADC_PRESCARE = ADC_PCLK2_PRESCARE_2;
    ADC_InitStruct->ADC_Mode = ADC_Mode_Single;
    ADC_InitStruct->ADC_ContinuousConvMode = DISABLE;
    ADC_InitStruct->ADC_ExternalTrigConv = ADC_ExternalTrigConv_T1_CC1;
    ADC_InitStruct->ADC_DataAlign = ADC_DataAlign_Right;
}