/* Get the SPI interrupt flag of the specified SPI port.  */
unsigned long SPIIntFlagGet(unsigned long ulBase)
/* Get the SPI interrupt flag of the specified SPI port.  */
unsigned long SPIIntFlagGet(unsigned long ulBase)
{
    xASSERT((ulBase == SPI3_BASE) || (ulBase == SPI1_BASE)||
            (ulBase == SPI2_BASE));
    return (xHWREG(ulBase + SPI_SR));
}