/* Unregisters an interrupt handler for a comparator interrupt. */
void ComparatorIntUnregister(unsigned long ulBase, unsigned long ulComp)
/* Unregisters an interrupt handler for a comparator interrupt. */
void ComparatorIntUnregister(unsigned long ulBase, unsigned long ulComp)
{
    ASSERT(ulBase == COMP_BASE);
    ASSERT(ulComp < 3);
    HWREG(ulBase + COMP_O_ACINTEN) &= ~(1 << ulComp);
    IntDisable(INT_COMP0 + ulComp);
    IntUnregister(INT_COMP0 + ulComp);
}