/* Configures the high and low thresholds of the analog watchdog.  */
void ADC_AnalogWatchdogThresholdsConfig(ADC_TypeDef *adc, u16 high_threshold, u16 low_threshold)
/* Configures the high and low thresholds of the analog watchdog.  */
void ADC_AnalogWatchdogThresholdsConfig(ADC_TypeDef *adc, u16 high_threshold, u16 low_threshold)
{
    u32 tempThreshold;
    tempThreshold = high_threshold;
    adc->ADCMPR    = (tempThreshold << 16) | low_threshold;
}