/* 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; 
    unsigned long ulIntStatus;
    ulChannelTemp = (ulBase == PWMA_BASE) ? ulChannel : (ulChannel - 4);
    xASSERT((ulBase == PWMA_BASE) || (ulBase == PWMB_BASE));
    xASSERT(((ulChannelTemp >= 0) || (ulChannelTemp <= 3)));
    xASSERT((ulIntType == PWM_INT_CHXCC) || (ulIntType == PWM_INT_UEV1));
    if (ulIntType == PWM_INT_UEV1)
    {
        ulIntStatus = xHWREG(ulBase + TIMER_INTSR) & ulIntType;
        if(ulIntStatus != 0)
        {
            return xtrue;
        }
    }
    else
    {
        ulIntStatus = xHWREG(ulBase + TIMER_INTSR) & (PWM_INT_CHXCC << ulChannelTemp);
        if(ulIntStatus != 0)
        {
            return xtrue;
        }
    }  
    return xfalse;
}