/* Enables or disables the adc conversion through external trigger.  */
void ADC_ExternalTrigConvCmd(ADC_TypeDef *adc, FunctionalState state)
/* Enables or disables the adc conversion through external trigger.  */
void ADC_ExternalTrigConvCmd(ADC_TypeDef *adc, FunctionalState state)
{
    (state) ? (adc->ADCR |= ADC_CR_TRGEN) : (adc->ADCR &= ~ADC_CR_TRGEN);
}