/* Register user interrupts callback function for the GPIO.  */
void xGPIOPinIntCallbackInit(unsigned long ulPort, unsigned long ulPin, xtEventCallback xtPortCallback)
/* Register user interrupts callback function for the GPIO.  */
void xGPIOPinIntCallbackInit(unsigned long ulPort, unsigned long ulPin, xtEventCallback xtPortCallback)
{
    unsigned long PinNum = PinIDToPos(ulPin);
    if(GPIOA_BASE == ulPort)
    {
        g_psGPIOPinIntAssignTable[PinNum] = xtPortCallback;
    }
    else if(GPIOC_BASE == ulPort)
    {
        PinNum += 32;
        g_psGPIOPinIntAssignTable[PinNum] = xtPortCallback;
    }
    else
    {
        while(1);
    }
}