/* Specifies the low threshold and high threshold of analog watchdog.  */
void ADC_AWD_SetThreshold(CM_ADC_TypeDef *ADCx, uint8_t u8AwdUnit, uint16_t u16LowThreshold, uint16_t u16HighThreshold)
/* Specifies the low threshold and high threshold of analog watchdog.  */
void ADC_AWD_SetThreshold(CM_ADC_TypeDef *ADCx, uint8_t u8AwdUnit, uint16_t u16LowThreshold, uint16_t u16HighThreshold)
{
    DDL_ASSERT(IS_ADC_UNIT(ADCx));
    DDL_ASSERT(IS_ADC_AWD(u8AwdUnit));
    (void)(u8AwdUnit);
    WRITE_REG16(ADCx->AWDDR0, u16LowThreshold);
    WRITE_REG16(ADCx->AWDDR1, u16HighThreshold);
}