/* param base ACMP peripheral base address. param mask Status flags mask. See "_acmp_status_flags".  */
void ACMP_ClearStatusFlags(CMP_Type *base, uint32_t mask)
/* param base ACMP peripheral base address. param mask Status flags mask. See "_acmp_status_flags".  */
void ACMP_ClearStatusFlags(CMP_Type *base, uint32_t mask)
{
    uint32_t tmp32 = (base->C0 & (~(CMP_C0_CFR_MASK | CMP_C0_CFF_MASK)));
    if ((uint32_t)kACMP_OutputRisingEventFlag == (mask & (uint32_t)kACMP_OutputRisingEventFlag))
    {
        tmp32 |= CMP_C0_CFR_MASK;
    }
    if ((uint32_t)kACMP_OutputFallingEventFlag == (mask & (uint32_t)kACMP_OutputFallingEventFlag))
    {
        tmp32 |= CMP_C0_CFF_MASK;
    }
    base->C0 = tmp32;
}