/* 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 = (ulBase == PWMA_BASE) ? ulChannel : (ulChannel - 4);
    xASSERT(ulBase == PWMA_BASE);
    xASSERT(((ulChannelTemp >= 0) || (ulChannelTemp <= 3)));
    if (ulIntType & PWM_INT_PWM)
    {
        xHWREG(ulBase + PWM_PIIR) |= (PWM_PIER_PWMIE0 << ulChannelTemp);
    }
    if (ulIntType & PWM_INT_DUTY)
    {
        xHWREG(ulBase + PWM_PIIR) |= (PWM_PIER_PWMDIE0 << ulChannelTemp);
    }
    if (ulIntType & PWM_INT_CAP_BOTH)
    {
        xHWREG(ulBase + PWM_CCR0 + (ulChannelTemp << 1)) |= 
        (PWM_CCR0_CAPIF0 << ((ulChannel % 2) ? 16 : 0)) ;
    }
}