/* SPI0 interrupt handler. Clear the SPI interrupt flag and execute the callback function.  */
void SPI0_IRQHandler(void)
/* SPI0 interrupt handler. Clear the SPI interrupt flag and execute the callback function.  */
void SPI0_IRQHandler(void)
{
    unsigned long ulEventFlags;
    unsigned long ulBase = SPI0_BASE;
    ulEventFlags = xHWREG(ulBase + SPI_CNTRL) & SPI_CNTRL_IF;
    xHWREG(ulBase + SPI_CNTRL) |= ulEventFlags;
    if(g_pfnSPIHandlerCallbacks[0])
    {
        g_pfnSPIHandlerCallbacks[0](0, 0, ulEventFlags, 0);
    }
}