/* Common ACMP interrupt handler. 
This function handles ACMP edge trigger interrupt request */
void ACMP0_IRQHandler(void)
/* Common ACMP interrupt handler. 
This function handles ACMP edge trigger interrupt request */
void ACMP0_IRQHandler(void)
{
    rt_interrupt_enter();
    if (ACMP0->IF & ACMP_IF_EDGE)
    {
        if (acmpCbTable[0].cbFunc != RT_NULL)
        {
            (acmpCbTable[0].cbFunc)(acmpCbTable[0].userPtr);
        }
        BITBAND_Peripheral(&(ACMP0->IFC), _ACMP_IF_EDGE_SHIFT, 0x1UL);
    }
    if (ACMP1->IF & ACMP_IF_EDGE)
    {
        if (acmpCbTable[1].cbFunc != RT_NULL)
        {
            (acmpCbTable[1].cbFunc)(acmpCbTable[1].userPtr);
        }
        BITBAND_Peripheral(&(ACMP1->IFC), _ACMP_IF_EDGE_SHIFT, 0x1UL);
    }
    rt_interrupt_leave();
}