/* Configures the high and low thresholds of the analog watchdog.  */
void ADC_AnalogWatchdogThresholdsConfig(ADC_TypeDef *ADCx, uint16_t HighThreshold, uint16_t LowThreshold)
/* Configures the high and low thresholds of the analog watchdog.  */
void ADC_AnalogWatchdogThresholdsConfig(ADC_TypeDef *ADCx, uint16_t HighThreshold, uint16_t LowThreshold)
{
    uint32_t tempThreshold;
    assert_param(IS_ADC_ALL_PERIPH(ADCx));
    assert_param(IS_ADC_THRESHOLD(HighThreshold));
    assert_param(IS_ADC_THRESHOLD(LowThreshold));
    tempThreshold = HighThreshold;
    ADCx->ADCMPR = (tempThreshold << 16) | LowThreshold;
}