/* Enables generator and fault interrupts for a PWM module. */
void PWMIntEnable(unsigned long ulBase, unsigned long ulGenFault)
/* Enables generator and fault interrupts for a PWM module. */
void PWMIntEnable(unsigned long ulBase, unsigned long ulGenFault)
{
    ASSERT(ulBase == PWM_BASE);
    ASSERT((ulGenFault & ~(PWM_INT_GEN_0 | PWM_INT_GEN_1 | PWM_INT_GEN_2 |
                           PWM_INT_GEN_3 | PWM_INT_FAULT0 | PWM_INT_FAULT1 |
                           PWM_INT_FAULT2 | PWM_INT_FAULT3)) == 0);
    HWREG(ulBase + PWM_O_INTEN) |= ulGenFault;
}