/* Clear the FIFO buffer of the specified SPI port.  */
void SPIFIFOClear(unsigned long ulBase, unsigned long ulRxTx)
/* Clear the FIFO buffer of the specified SPI port.  */
void SPIFIFOClear(unsigned long ulBase, unsigned long ulRxTx)
{
    xASSERT((ulBase == SPI0_BASE) || (ulBase == SPI1_BASE)||
            (ulBase == SPI2_BASE) );
    xHWREG(ulBase + SPI_FIFOCTL) |= ulRxTx;
}