/* Init interrupts callback for the specified SPI Port.  */
void SPIIntCallbackInit(unsigned long ulBase, xtEventCallback xtSPICallback)
/* Init interrupts callback for the specified SPI Port.  */
void SPIIntCallbackInit(unsigned long ulBase, xtEventCallback xtSPICallback)
{
    xASSERT((ulBase == SPI3_BASE) || (ulBase == SPI1_BASE)||
            (ulBase == SPI2_BASE));
    switch(ulBase)
    {
        case SPI1_BASE:
        {
            g_pfnSPIHandlerCallbacks[0] = xtSPICallback;
            break;
        }
        case SPI2_BASE:
        {
            g_pfnSPIHandlerCallbacks[1] = xtSPICallback;
            break;
        }
        case SPI3_BASE:
        {
            g_pfnSPIHandlerCallbacks[2] = xtSPICallback;
            break;
        }
        default:
            break;
    }
}