/* Get the PWM interrupt flag of the PWM module. 
The  */
xtBoolean PWMIntFlagGet(unsigned long ulBase, unsigned long ulChannel, unsigned long ulIntType)
/* Get the PWM interrupt flag of the PWM module. 
The  */
xtBoolean PWMIntFlagGet(unsigned long ulBase, unsigned long ulChannel, unsigned long ulIntType)
{
    unsigned long ulChannelTemp;
    ulChannelTemp = ulChannel;
    xASSERT((ulBase == PWMA_BASE) || (ulBase == PWMB_BASE));
    xASSERT(((ulChannelTemp >= 0) || (ulChannelTemp <= 5)));
    if (ulIntType == PWM_INT_PWM)
    {
        return ((xHWREG(ulBase + PWM_INTSTS) & (1 << ulChannelTemp))
                ? xtrue : xfalse);
    }
    else if (ulIntType == PWM_INT_DUTY)
    {
        return ((xHWREG(ulBase + PWM_INTSTS) & (0x100 << ulChannelTemp))
                ? xtrue : xfalse);
    }
    else
    {
        return ((xHWREG(ulBase + PWM_INTSTS) & (0x01010000 << ulChannelTemp))
                ? xtrue : xfalse);
    }
}