/* Enables or disables the temperature sensor and Vrefint channel.  */
void ADC_TempSensorVrefintCmd(FunctionalState state)
/* Enables or disables the temperature sensor and Vrefint channel.  */
void ADC_TempSensorVrefintCmd(FunctionalState state)
{
    (state) ? (ADC1->ADCFG |=  (ADC_CFGR_TEN | ADC_CFGR_VEN))
    : (ADC1->ADCFG &= ~(ADC_CFGR_TEN | ADC_CFGR_VEN));
}