/* Enables or Disables Timer Reference Output Clear. 
The  */
void TimerOREFClrConfigure(unsigned long ulBase, unsigned long ulChannel, unsigned long ulOREFClear)
/* Enables or Disables Timer Reference Output Clear. 
The  */
void TimerOREFClrConfigure(unsigned long ulBase, unsigned long ulChannel, unsigned long ulOREFClear)
{
    xASSERT((ulBase == TIMER1_BASE) || (ulBase == TIMER0_BASE));
    xASSERT((ulChannel == TIMER_CH_0) || (ulChannel == TIMER_CH_1) ||
            (ulChannel == TIMER_CH_2) || (ulChannel == TIMER_CH_3)); 
    xASSERT((ulOREFClear == TIMER_OREF_CLEAR_DIS) || 
            (ulOREFClear == TIMER_OREF_CLEAR_EN));
    xHWREG(ulBase + TIMER_CH0OCFR + 4 * ulChannel) &= ~TIMER_CH0OCFR_REF0CE;
    xHWREG(ulBase + TIMER_CH0OCFR + 4 * ulChannel) |= ulOREFClear;
}