/* Enables or Disables the one pulse immediate active function. 
The  */
void Timer1PulseActiveConfigure(unsigned long ulBase, unsigned long ulChannel, unsigned long ulActive)
/* Enables or Disables the one pulse immediate active function. 
The  */
void Timer1PulseActiveConfigure(unsigned long ulBase, unsigned long ulChannel, unsigned long ulActive)
{
    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((ulActive == TIMER_ONE_PULSE_ACTIVE_DIS) || 
            (ulActive == TIMER_ONE_PULSE_ACTIVE_EN));
    if(ulActive == TIMER_ONE_PULSE_ACTIVE_DIS) 
    {
        xHWREG(ulBase + TIMER_CH0OCFR + ulChannel * 4) &= ~TIMER_CH0OCFR_CH0IMAE;
    }
    else
    {
        xHWREG(ulBase + TIMER_CH0OCFR + ulChannel * 4) |= TIMER_CH0OCFR_CH0IMAE;
    }
}