/* set up SPI callback routines to be called by interrupt service routine.  */
void SPI_SetCallback(SPI_Type *pSPI, SPI_CallbackType pfnCallback)
/* set up SPI callback routines to be called by interrupt service routine.  */
void SPI_SetCallback(SPI_Type *pSPI, SPI_CallbackType pfnCallback)
{
    uint32_t    u32Port = ((uint32_t)pSPI-(uint32_t)SPI0)>>12;
    ASSERT(u32Port <2);
    SPI_Callback[u32Port] = pfnCallback;
}