/* External Trigger Enable and Polarity Selection for injected channels.  */
void ADC_ExternalTriggerInjectedConfig(ADC_TypeDef *ADCx, uint16_t ADC_ExternalTrigInjecConvEvent, uint16_t ADC_ExternalTrigInjecEventEdge)
/* External Trigger Enable and Polarity Selection for injected channels.  */
void ADC_ExternalTriggerInjectedConfig(ADC_TypeDef *ADCx, uint16_t ADC_ExternalTrigInjecConvEvent, uint16_t ADC_ExternalTrigInjecEventEdge)
{
  assert_param(IS_ADC_ALL_PERIPH(ADCx));
  assert_param(IS_EXTERNALTRIGINJ_EDGE(ADC_ExternalTrigInjecEventEdge));
  assert_param(IS_ADC_EXT_INJEC_TRIG(ADC_ExternalTrigInjecConvEvent));
  ADCx->JSQR &= ~(ADC_JSQR_JEXTEN | ADC_JSQR_JEXTSEL);
  ADCx->JSQR |= (uint32_t)(ADC_ExternalTrigInjecConvEvent | ADC_ExternalTrigInjecEventEdge); 
}