/* Puts a data element into the SPI transmit FIFO. 
This function replaces the original SPIDataNonBlockingPut() API and performs the same actions. A macro is provided in  */
long SPIDataPutNonBlocking(unsigned long ulBase, unsigned long ulData)
/* Puts a data element into the SPI transmit FIFO. 
This function replaces the original SPIDataNonBlockingPut() API and performs the same actions. A macro is provided in  */
long SPIDataPutNonBlocking(unsigned long ulBase, unsigned long ulData)
{
    xASSERT((ulBase == SPI0_BASE) || (ulBase == SPI1_BASE));
    xASSERT(ulData < 256);
    if(xHWREGB(ulBase + SPI_S) & SPI_S_SPTEF)
    {
        xHWREGB(ulBase + SPI_D) = (unsigned char)ulData;
        return(1);
    }
    else
    {
        return(0);
    }
}