/* Configures the ADCx external trigger for injected channels conversion.  */
void ADC_ExternalTrigInjectedConvConfig(ADC_TypeDef *ADCx, uint32_t ADC_ExternalTrigInjecConv)
/* Configures the ADCx external trigger for injected channels conversion.  */
void ADC_ExternalTrigInjectedConvConfig(ADC_TypeDef *ADCx, uint32_t ADC_ExternalTrigInjecConv)
{
    uint32_t tmpreg = 0;
    assert_param(IS_ADC_ALL_PERIPH(ADCx));
    assert_param(IS_ADC_EXT_INJEC_TRIG(ADC_ExternalTrigInjecConv));
    tmpreg = ADCx->ADCR;
    tmpreg &= ADCR_EXTSEL_Reset;
    tmpreg |= ADC_ExternalTrigInjecConv;
    ADCx->ADCR = tmpreg;
}