/* Select The Timer counter capture detect edge. 
The  */
void TimerCaptureEdgeSelect(unsigned long ulBase, unsigned long ulEdge)
/* Select The Timer counter capture detect edge. 
The  */
void TimerCaptureEdgeSelect(unsigned long ulBase, unsigned long ulEdge)
{
    xASSERT((ulBase == TIMER0_BASE) || (ulBase == TIMER1_BASE));
    xASSERT((ulEdge == TIMER_CAP_RISING) || 
            (ulEdge == TIMER_CAP_BOTH) || 
            (ulEdge == TIMER_CAP_FALLING));
    xHWREG(ulBase + TIMER_O_TEXCON) &= ~TIMER_TEXCON_TEX_EDGE_M;
    xHWREG(ulBase + TIMER_O_TEXCON) |= ulEdge;
}