/* Write data element to the SPI interface with block.  */
void xSPIDataPut(unsigned long ulBase, unsigned long ulData)
/* Write data element to the SPI interface with block.  */
void xSPIDataPut(unsigned long ulBase, unsigned long ulData)
{
    xASSERT((ulBase == SPI0_BASE) || (ulBase == SPI1_BASE)||
            (ulBase == SPI2_BASE) || (ulBase == SPI3_BASE));
    while((xHWREG(ulBase + SPI_STATUS) & SPI_STATUS_BUSY))
    {
    }
    xHWREG(ulBase + SPI_TX) = ulData;
}