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