/* 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);
    while(xHWREG(ulBase + SPI_CNTRL) & SPI_CNTRL_GO_BUSY)
    {
    }
    xHWREG(ulBase + SPI_TX0) = ulData;
}