/* SPI0 Interrupt Handler. 
If users want to user the SPI0 Callback feature, Users should promise that the SPI0 Handle in the vector table is SPI0IntHandler. */
void SPI0IntHandler(void)
/* SPI0 Interrupt Handler. 
If users want to user the SPI0 Callback feature, Users should promise that the SPI0 Handle in the vector table is SPI0IntHandler. */
void SPI0IntHandler(void)
{
    unsigned long ulEventFlags;
    unsigned long ulBase = SPI0_BASE;
    ulEventFlags = xHWREGB(ulBase + SPI_S);
    xHWREGB(ulBase + SPI_S) |= (unsigned char)ulEventFlags & 0x40;
    if(g_pfnSPIHandlerCallbacks[0])
    {
        g_pfnSPIHandlerCallbacks[0](0, 0, ulEventFlags, 0);
    }
}