/* This function is used to set modules trigger by timer interrupt.  */
void TIMER_SetTriggerTarget(TIMER_T *timer, uint32_t u32Mask)
/* This function is used to set modules trigger by timer interrupt.  */
void TIMER_SetTriggerTarget(TIMER_T *timer, uint32_t u32Mask)
{
    timer->TRGCTL = (timer->TRGCTL & ~(TIMER_TRGCTL_TRGEPWM_Msk | TIMER_TRGCTL_TRGDAC_Msk | TIMER_TRGCTL_TRGEADC_Msk | TIMER_TRGCTL_TRGPDMA_Msk)) | u32Mask;
}