/* Set timer prescale value. This function is used to configure timer clock prescale value. 
MODE_COUNTER_CH0_RISING MODE_COUNTER_CH0_FALLING MODE_COUNTER_CH0_BOTHEDGE MODE_COUNTER_CH1_RISING MODE_COUNTER_CH1_FALLING MODE_COUNTER_CH1_BOTHEDGE */
void TimerPrescaleSet(unsigned long ulBase, unsigned long ulValue)
/* Set timer prescale value. This function is used to configure timer clock prescale value. 
MODE_COUNTER_CH0_RISING MODE_COUNTER_CH0_FALLING MODE_COUNTER_CH0_BOTHEDGE MODE_COUNTER_CH1_RISING MODE_COUNTER_CH1_FALLING MODE_COUNTER_CH1_BOTHEDGE */
void TimerPrescaleSet(unsigned long ulBase, unsigned long ulValue)
{
    xASSERT((ulBase == TIMER0_BASE) || (ulBase == TIMER1_BASE) ||
            (ulBase == TIMER2_BASE) || (ulBase == TIMER3_BASE) );
    xHWREG(ulBase + TIMER_PR) = ulValue;
}