/* Initializes the parameters in the ADC_InitStruct with default values.  */
void ADC_StructInit(ADC_InitTypeDef *ADC_InitStruct)
/* Initializes the parameters in the ADC_InitStruct with default values.  */
void ADC_StructInit(ADC_InitTypeDef *ADC_InitStruct)
{
	u8 i;
	ADC_InitStruct->ADC_OpMode = ADC_SW_TRI_MODE;
	ADC_InitStruct->ADC_ClkDiv = ADC_CLK_DIV_12;
	ADC_InitStruct->ADC_RxThresholdLevel = 0;
	ADC_InitStruct->ADC_DMAThresholdLevel = 7;
	ADC_InitStruct->ADC_CvlistLen = ADC_CH_NUM - 1;
	ADC_InitStruct->ADC_ChanInType = 0;
	ADC_InitStruct->ADC_SpecialCh = 0xFF;
	ADC_InitStruct->ADC_ChIDEn = DISABLE;
	for(i = 0; i < ADC_InitStruct->ADC_CvlistLen + 1; i++)
		ADC_InitStruct->ADC_Cvlist[i] = i;
}