/* Configures the analog watchdog 2 guarded single channel.  */
void ADC_AnalogWatchdog2SingleChannelConfig(ADC_TypeDef *ADCx, uint8_t ADC_Channel)
/* Configures the analog watchdog 2 guarded single channel.  */
void ADC_AnalogWatchdog2SingleChannelConfig(ADC_TypeDef *ADCx, uint8_t ADC_Channel)
{
  uint32_t tmpreg = 0;
  assert_param(IS_ADC_ALL_PERIPH(ADCx));
  assert_param(IS_ADC_CHANNEL(ADC_Channel));
  tmpreg = ADCx->AWD2CR;
  tmpreg &= ~(uint32_t)ADC_AWD2CR_AWD2CH;
  tmpreg |= (uint32_t)1 << (ADC_Channel);
  ADCx->AWD2CR |= tmpreg;
}