/* param base ADC peripheral base address. param mask Mask value for the cleared flags. See "adc_status_flags_t".  */
void ADC_ClearStatusFlags(ADC_Type *base, uint32_t mask)
/* param base ADC peripheral base address. param mask Mask value for the cleared flags. See "adc_status_flags_t".  */
void ADC_ClearStatusFlags(ADC_Type *base, uint32_t mask)
{
    uint32_t tmp32 = 0;
    if (0U != (mask & kADC_CalibrationFailedFlag))
    {
        tmp32 |= ADC_GS_CALF_MASK;
    }
    if (0U != (mask & kADC_ConversionActiveFlag))
    {
        tmp32 |= ADC_GS_ADACT_MASK;
    }
    base->GS = tmp32;
}