/* Configures the adc external trigger for injected channels conversion.  */
void ADC_ExternalTrigInjectedConvertConfig(ADC_TypeDef *adc, EXTER_INJ_TRIG_TypeDef ADC_ExtInjTrigSource)
/* Configures the adc external trigger for injected channels conversion.  */
void ADC_ExternalTrigInjectedConvertConfig(ADC_TypeDef *adc, EXTER_INJ_TRIG_TypeDef ADC_ExtInjTrigSource)
{
    u32 tmpreg = 0;
    tmpreg = adc->ANYCR;
    tmpreg &= ADC_ANY_CR_JTRGSEL;
    tmpreg |= ADC_ExtInjTrigSource;
    adc->ANYCR = tmpreg;
}