/* Controls the automatic channel switch enabled or disabled.  */
void ADC_AutoCSwCmd(u32 NewState)
/* Controls the automatic channel switch enabled or disabled.  */
void ADC_AutoCSwCmd(u32 NewState)
{
	ADC_TypeDef	*adc = ADC;
	u8 div = adc->ADC_CLK_DIV;
	u8 sync_time[4] = {12, 16, 32, 64};
	if(NewState != DISABLE)
		adc->ADC_AUTO_CSW_CTRL = BIT_ADC_AUTO_CSW_EN;
	else
		adc->ADC_AUTO_CSW_CTRL = 0;
	DelayUs(sync_time[div]);
}