/* param base CMP peripheral base address. param mask Mask value for interrupts. See "_cmp_interrupt_enable".  */
void CMP_EnableInterrupts(CMP_Type *base, uint32_t mask)
/* param base CMP peripheral base address. param mask Mask value for interrupts. See "_cmp_interrupt_enable".  */
void CMP_EnableInterrupts(CMP_Type *base, uint32_t mask)
{
    uint8_t tmp8 = base->SCR & ~(CMP_SCR_CFR_MASK | CMP_SCR_CFF_MASK);
    if (0U != (kCMP_OutputRisingInterruptEnable & mask))
    {
        tmp8 |= CMP_SCR_IER_MASK;
    }
    if (0U != (kCMP_OutputFallingInterruptEnable & mask))
    {
        tmp8 |= CMP_SCR_IEF_MASK;
    }
    base->SCR = tmp8;
}