/* Enable The Timer counter interrupt. This function is to enable The Timer counter interrupt.  */
void xTimerIntEnable(unsigned long ulBase, unsigned long ulChannel, unsigned long ulIntFlags)
/* Enable The Timer counter interrupt. This function is to enable The Timer counter interrupt.  */
void xTimerIntEnable(unsigned long ulBase, unsigned long ulChannel, unsigned long ulIntFlags)
{
    unsigned long ulTmpReg = 0;
    xASSERT((ulBase == TIMER0_BASE) || (ulBase == TIMER1_BASE) ||
            (ulBase == TIMER2_BASE) || (ulBase == TIMER3_BASE) );
    xASSERT((ulChannel == xTIMER_CHANNEL0) || (ulChannel == xTIMER_CHANNEL1));
    (void) ulIntFlags;
    if(ulChannel == xTIMER_CHANNEL0)
    {
        ulTmpReg = xHWREG(ulBase + TIMER_MCR);
        ulTmpReg |= MCR_MR0I;
        xHWREG(ulBase + TIMER_MCR) = ulTmpReg;
    }
    else if(ulChannel == xTIMER_CHANNEL1)
    {
        ulTmpReg = xHWREG(ulBase + TIMER_CCR);
        ulTmpReg |= CCR_CAP0IE;
        xHWREG(ulBase + TIMER_CCR) = ulTmpReg;
    }
}