CLK_PeripheralClockConfig(CLK_Peripheral_ADC1, ENABLE); //使能ADC1的时钟
/*/==Configures the sampling time for the selected ADC channel group.
配置选中的ADC通道组的采样时间*/
ADC_Init(ADC1,ADC_ConversionMode_Single,ADC_Resolution_8Bit,ADC_Prescaler_1);
ADC_SamplingTimeConfig(ADC1, ADC_Group_SlowChannels,ADC_SamplingTime_96Cycles);
/*Enables or disables the selected ADC peripheral.*/
/*使能或失能所选的ADC外设*/
ADC_Cmd(ADC1, ENABLE);