/* Registers an interrupt handler for the specified PWM generator block. */
void PWMGenIntRegister(unsigned long ulBase, unsigned long ulGen, void(*pfnIntHandler)(void))
/* Registers an interrupt handler for the specified PWM generator block. */
void PWMGenIntRegister(unsigned long ulBase, unsigned long ulGen, void(*pfnIntHandler)(void))
{
    unsigned long ulInt;
    ASSERT((ulBase == PWM0_BASE) || (ulBase == PWM1_BASE));
    ASSERT(PWMGenValid(ulGen));
    ulInt = PWMGenIntGet(ulBase, ulGen);
    IntRegister(ulInt, pfnIntHandler);
    IntEnable(ulInt);
}