/* 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 ulIntStatus;
    xASSERT(PWMBaseValid(ulBase));
    xASSERT(((ulChannel >= 0) || (ulChannel <= 3)));
    xASSERT((ulIntType == PWM_INT_CHXCC) || (ulIntType == PWM_INT_UEV1));
    if (ulIntType == PWM_INT_UEV1)
    {
        ulIntStatus = xHWREG(ulBase + TIMER_SR) & ulIntType;
        if(ulIntStatus != 0)
        {
            return xtrue;
        }
    }
    else
    {
        ulIntStatus = xHWREG(ulBase + TIMER_SR) & (PWM_INT_CHXCC << ulChannel);
        if(ulIntStatus != 0)
        {
            return xtrue;
        }
    }  
    return xfalse;
}