/* Comparator 0 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 COMPIntHandler(void)
/* Comparator 0 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 COMPIntHandler(void)
{
    unsigned long ulBase = ACMP_BASE;   
    unsigned long ulIntFlags1, ulIntFlags2;
    ulIntFlags1 = xHWREG(ulBase + ACMP_ISR);
    ulIntFlags2 = xHWREG(ulBase + ACMP_ISR + 0x100);
    xHWREG(ulBase + ACMP_ICLR) = ulIntFlags1;
    xHWREG(ulBase + ACMP_ICLR+ 0x100) = ulIntFlags2;
    if((ulIntFlags1) && g_pfnACMPHandlerCallbacks[0])
    {
        g_pfnACMPHandlerCallbacks[0](0, 0, 0, 0);
    }
    if((ulIntFlags2) && g_pfnACMPHandlerCallbacks[1])
    {
        g_pfnACMPHandlerCallbacks[1](0, 0, 0, 0);
    }
}