/* 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->CR2;
  tmpreg &= CR2_JEXTSEL_Reset;
  tmpreg |= ADC_ExternalTrigInjecConv;
  ADCx->CR2 = tmpreg;
}