/* Check ADC status flag. This function is used to check whether special flag is set or not.  */
xtBoolean SPIIntFlagCheck(unsigned long ulBase, unsigned long ulFlags)
/* Check ADC status flag. This function is used to check whether special flag is set or not.  */
xtBoolean SPIIntFlagCheck(unsigned long ulBase, unsigned long ulFlags)
{
    xASSERT(ulBase == SPI0_BASE);
    xASSERT(ulFlags == SPI_INT_SPIF);
    if(xHWREG(ulBase + S0SPINT) & ulFlags)
    {
        return (xtrue);
    }
    else
    {
        return (xfalse);
    }
}