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