/* Gets interrupt status for the specified GPIO port. */
long GPIOIntStatus(unsigned long ulPort, tBoolean bMasked)
/* Gets interrupt status for the specified GPIO port. */
long GPIOIntStatus(unsigned long ulPort, tBoolean bMasked)
{
    ASSERT(GPIOBaseValid(ulPort));
    if(bMasked)
    {
        return(HWREG(ulPort + GPIO_O_GPIO_MIS));
    }
    else
    {
        return(HWREG(ulPort + GPIO_O_GPIO_RIS));
    }
}