/* Puts a data element into the SPI transmit .  */
void SPIDataPut(unsigned long ulBase, unsigned long ulData)
/* Puts a data element into the SPI transmit .  */
void SPIDataPut(unsigned long ulBase, unsigned long ulData)
{
    xASSERT((ulBase == SPI0_BASE) || (ulBase == SPI1_BASE));
    xASSERT(ulData < 256);
    while(!(xHWREGB(ulBase + SPI_S) & SPI_S_SPTEF))
    {
    }
    xHWREGB(ulBase + SPI_D) = (unsigned char)ulData;
}