/* Configures the ADCx external trigger edge for injected channels conversion.  */
void ADC_ExternalTrigInjectedConvEdgeConfig(ADC_TypeDef *ADCx, uint32_t ADC_ExternalTrigInjecConvEdge)
/* Configures the ADCx external trigger edge for injected channels conversion.  */
void ADC_ExternalTrigInjectedConvEdgeConfig(ADC_TypeDef *ADCx, uint32_t ADC_ExternalTrigInjecConvEdge)
{
  uint32_t tmpreg = 0;
  assert_param(IS_ADC_ALL_PERIPH(ADCx));
  assert_param(IS_ADC_EXT_INJEC_TRIG_EDGE(ADC_ExternalTrigInjecConvEdge));
  tmpreg = ADCx->CR2;
  tmpreg &= CR2_JEXTEN_RESET;
  tmpreg |= ADC_ExternalTrigInjecConvEdge;
  ADCx->CR2 = tmpreg;
}