/* Comparator Interrupt Handler. 
If users want to user the ACMP Interrupt Callback feature, Users should promise that the ACMP Handle in the vector table is ACMPIntHandler. */
void ACMP_IRQHandler(void)
/* Comparator Interrupt Handler. 
If users want to user the ACMP Interrupt Callback feature, Users should promise that the ACMP Handle in the vector table is ACMPIntHandler. */
void ACMP_IRQHandler(void)
{
    unsigned long ulBase = ACMP_BASE;
    unsigned long ulIntFlags;
    ulIntFlags = xHWREG(ulBase + ACMP_SR);
    xHWREG(ulBase + ACMP_SR) = ulIntFlags;
    if((ulIntFlags & ACMP_SR_CMPF0) && g_pfnACMPHandlerCallbacks[0])
    {
        g_pfnACMPHandlerCallbacks[0](0, 0, 0, 0);
    }
    if((ulIntFlags & ACMP_SR_CMPF1) && g_pfnACMPHandlerCallbacks[1])
    {
        g_pfnACMPHandlerCallbacks[1](0, 0, 0, 0);
    }
}