/* Get The Timer counter current up timer or up event counter value.  */
unsigned long TimerValueGet(unsigned long ulBase)
/* Get The Timer counter current up timer or up event counter value.  */
unsigned long TimerValueGet(unsigned long ulBase)
{
    xASSERT((ulBase == TIMER3_BASE) || (ulBase == TIMER2_BASE) ||
            (ulBase == TIMER1_BASE) || (ulBase == TIMER0_BASE));
    return (xHWREG(ulBase + TIMER_O_TDR) & TIMER_TDR_DATA_M);
}