/* Enables or disables the temperature sensor and Vrefint channel.  */
void ADC_VrefintCmd(FunctionalState NewState)
/* Enables or disables the temperature sensor and Vrefint channel.  */
void ADC_VrefintCmd(FunctionalState NewState)
{
    assert_param(IS_FUNCTIONAL_STATE(NewState));
    if (NewState != DISABLE)
    {
			  ADC1->ADCFG|=ADCFG_VSEN_Set;
        ADC1->ADCHS |= ADCHS_VSVREFE_Set ;
    }
    else
    {
			  ADC1->ADCFG&=~ADCFG_VSEN_Set;
        ADC1->ADCHS &= ADCHS_VSVREFE_Reset;
    }
}