/* Init the Comp n Interrupt Callback function. 
param of pfnCallback */
void ACMPIntCallbackInit(unsigned long ulBase, unsigned long ulCompID, xtEventCallback pfnCallback)
/* Init the Comp n Interrupt Callback function. 
param of pfnCallback */
void ACMPIntCallbackInit(unsigned long ulBase, unsigned long ulCompID, xtEventCallback pfnCallback)
{
    xASSERT(ulBase == ACMP_BASE);
    xASSERT((ulCompID == xACMP_0) || (ulCompID == xACMP_1));
    switch(ulCompID)
    {
        case xACMP_0:
        {
            g_pfnACMPHandlerCallbacks[0] = pfnCallback;
            break;
        }
        case xACMP_1:
        {
            g_pfnACMPHandlerCallbacks[1] = pfnCallback;
            break;
        }        
    }
}