/* Check the busy status of the specified SPI port.  */
xtBoolean SPIIsBusy(unsigned long ulBase)
/* Check the busy status of the specified SPI port.  */
xtBoolean SPIIsBusy(unsigned long ulBase)
{
    xASSERT((ulBase == SPI0_BASE) || (ulBase == SPI1_BASE));
    return ((xHWREG(ulBase + SPI_CNTRL) & SPI_CNTRL_GO_BUSY) ? xtrue : xfalse);
}