/* Registers an interrupt handler for a SPI interrupt. */
void SPIIntRegister(unsigned long ulBase, void(*pfnHandler)(void))
/* Registers an interrupt handler for a SPI interrupt. */
void SPIIntRegister(unsigned long ulBase, void(*pfnHandler)(void))
{
    unsigned long ulInt;
    ulInt = SPIIntNumberGet(ulBase);
    IntRegister(ulInt, pfnHandler);
    IntEnable(ulInt);
}