/* Enables or disables the analog watchdog on single/all regular or injected channels.  */
void ADC_AnalogWatchdogCmd(ADC_TypeDef *ADCx, uint32_t ADC_AnalogWatchdog)
/* Enables or disables the analog watchdog on single/all regular or injected channels.  */
void ADC_AnalogWatchdogCmd(ADC_TypeDef *ADCx, uint32_t ADC_AnalogWatchdog)
{
  uint32_t tmpreg = 0;
  assert_param(IS_ADC_ALL_PERIPH(ADCx));
  assert_param(IS_ADC_ANALOG_WATCHDOG(ADC_AnalogWatchdog));
  tmpreg = ADCx->CR1;
  tmpreg &= CR1_AWDMode_RESET;
  tmpreg |= ADC_AnalogWatchdog;
  ADCx->CR1 = tmpreg;
}