/* SPI1 interrupt handler. Clear the SPI interrupt flag and execute the callback function.  */
void SPI1_IRQHandler(void)
/* SPI1 interrupt handler. Clear the SPI interrupt flag and execute the callback function.  */
void SPI1_IRQHandler(void)
{
    unsigned long ulEventFlags;
    unsigned long ulBase = SPI1_BASE;
    ulEventFlags = xHWREG(ulBase + SPI_STATUS);
    xHWREG(ulBase + SPI_STATUS) |= ulEventFlags;
    if(g_pfnSPIHandlerCallbacks[1])
    {
        g_pfnSPIHandlerCallbacks[1](0, 0, ulEventFlags, 0);
    }
}