/* Configures the adc external trigger for injected channels conversion.  */
void ADC_ExternalTrigConvConfig(ADC_TypeDef *adc, EXTERTRIG_TypeDef adc_external_trig_source)
/* Configures the adc external trigger for injected channels conversion.  */
void ADC_ExternalTrigConvConfig(ADC_TypeDef *adc, EXTERTRIG_TypeDef adc_external_trig_source)
{
    adc->ADCR &= ~ADC_CR_TRGSEL;
    adc->ADCR |=  adc_external_trig_source;
}