/* Selects master trigger output source of the Timer.  */
void TimerMasterOutputSrcSelect(unsigned long ulBase, unsigned long ulSelect)
/* Selects master trigger output source of the Timer.  */
void TimerMasterOutputSrcSelect(unsigned long ulBase, unsigned long ulSelect)
{
    xASSERT((ulBase == TIMER1_BASE) || (ulBase == TIMER0_BASE));
    xASSERT((ulSelect == TIMER_MMSEL_RESET) || 
            (ulSelect == TIMER_MMSEL_ENABLE) ||
            (ulSelect == TIMER_MMSEL_UPDATE) ||
            (ulSelect == TIMER_MMSEL_CH0CC) ||
            (ulSelect == TIMER_MMSEL_CH0OREF) ||
            (ulSelect == TIMER_MMSEL_CH1OREF) || 
            (ulSelect == TIMER_MMSEL_CH2OREF) || 
            (ulSelect == TIMER_MMSEL_CH3OREF));
    xHWREG(ulBase + TIMER_MDCFR) &= ~TIMER_MDCFR_MMSEL_M;
    xHWREG(ulBase + TIMER_MDCFR) |= ulSelect;
}