/* Registers an interrupt handler for the quadrature encoder interrupt. */
void QEIIntRegister(unsigned long ulBase, void(*pfnHandler)(void))
/* Registers an interrupt handler for the quadrature encoder interrupt. */
void QEIIntRegister(unsigned long ulBase, void(*pfnHandler)(void))
{
    unsigned long ulInt;
    ASSERT((ulBase == QEI0_BASE) || (ulBase == QEI1_BASE));
    ulInt = (ulBase == QEI0_BASE) ? INT_QEI0 : INT_QEI1;
    IntRegister(ulInt, pfnHandler);
    IntEnable(ulInt);
}