/* Get the SPI interrupt flag of the specified SPI port.  */
xtBoolean SPIIntFlagGet(unsigned long ulBase, unsigned long ulIntFlags)
/* Get the SPI interrupt flag of the specified SPI port.  */
xtBoolean SPIIntFlagGet(unsigned long ulBase, unsigned long ulIntFlags)
{
    xASSERT((ulBase == SPI0_BASE) || (ulBase == SPI1_BASE)||
            (ulBase == SPI2_BASE)||(ulBase == SPI3_BASE) );
    return ((xHWREG(ulBase + SPI_STATUS) & ulIntFlags) ? xtrue : xfalse);
}