/* Get timer current counter value. This function is used to get timer current counter value.  */
unsigned long TimerValueGet(unsigned long ulBase)
/* Get timer current counter value. This function is used to get timer current counter value.  */
unsigned long TimerValueGet(unsigned long ulBase)
{
    xASSERT((ulBase == TIMER0_BASE) || (ulBase == TIMER1_BASE) ||
            (ulBase == TIMER2_BASE) || (ulBase == TIMER3_BASE) );
    return (xHWREG(ulBase + TIMER_TC));
}