/* Clear the PWM interrupt flag of the PWM module. 
The  */
void PWMIntFlagClear(unsigned long ulBase, unsigned long ulChannel, unsigned long ulIntType)
/* Clear the PWM interrupt flag of the PWM module. 
The  */
void PWMIntFlagClear(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)
    {
        xHWREG(ulBase + PWM_INTSTS) |= (1 << ulChannelTemp);
    }
    if (ulIntType & PWM_INT_DUTY)
    {
        xHWREG(ulBase + PWM_INTSTS) |= (0x100 << ulChannelTemp);
    }
    if (ulIntType & PWM_INT_CAP_BOTH)
    {
    	xHWREG(ulBase + PWM_INTSTS) |= (0x01010000 << ulChannelTemp);
    }
}