/* Write data element to the SPI interface with Noblock.  */
long xSPIDataPutNonBlocking(unsigned long ulBase, unsigned long ulData)
/* Write data element to the SPI interface with Noblock.  */
long xSPIDataPutNonBlocking(unsigned long ulBase, unsigned long ulData)
{
    xASSERT((ulBase == SPI0_BASE) || (ulBase == SPI1_BASE)||
            (ulBase == SPI2_BASE) || (ulBase == SPI3_BASE));
    if(!((xHWREG(ulBase + SPI_STATUS) & SPI_STATUS_BUSY)))
    {
        xHWREG(ulBase + SPI_TX) = ulData;
        return(1);
    }
    else
    {
        return(0);
    }
}