Lines Matching refs:ulTimer

94 TimerEnable(unsigned long ulBase, unsigned long ulTimer)  in TimerEnable()  argument
100 ASSERT((ulTimer == TIMER_A) || (ulTimer == TIMER_B) || in TimerEnable()
101 (ulTimer == TIMER_BOTH)); in TimerEnable()
106 HWREG(ulBase + TIMER_O_CTL) |= ulTimer & (TIMER_CTL_TAEN | TIMER_CTL_TBEN); in TimerEnable()
123 TimerDisable(unsigned long ulBase, unsigned long ulTimer) in TimerDisable() argument
129 ASSERT((ulTimer == TIMER_A) || (ulTimer == TIMER_B) || in TimerDisable()
130 (ulTimer == TIMER_BOTH)); in TimerDisable()
135 HWREG(ulBase + TIMER_O_CTL) &= ~(ulTimer & in TimerDisable()
249 TimerControlLevel(unsigned long ulBase, unsigned long ulTimer, in TimerControlLevel() argument
256 ASSERT((ulTimer == TIMER_A) || (ulTimer == TIMER_B) || in TimerControlLevel()
257 (ulTimer == TIMER_BOTH)); in TimerControlLevel()
262 ulTimer &= TIMER_CTL_TAPWML | TIMER_CTL_TBPWML; in TimerControlLevel()
264 (HWREG(ulBase + TIMER_O_CTL) | ulTimer) : in TimerControlLevel()
265 (HWREG(ulBase + TIMER_O_CTL) & ~(ulTimer))); in TimerControlLevel()
286 TimerControlEvent(unsigned long ulBase, unsigned long ulTimer, in TimerControlEvent() argument
293 ASSERT((ulTimer == TIMER_A) || (ulTimer == TIMER_B) || in TimerControlEvent()
294 (ulTimer == TIMER_BOTH)); in TimerControlEvent()
299 ulEvent &= ulTimer & (TIMER_CTL_TAEVENT_M | TIMER_CTL_TBEVENT_M); in TimerControlEvent()
323 TimerControlStall(unsigned long ulBase, unsigned long ulTimer, in TimerControlStall() argument
330 ASSERT((ulTimer == TIMER_A) || (ulTimer == TIMER_B) || in TimerControlStall()
331 (ulTimer == TIMER_BOTH)); in TimerControlStall()
336 ulTimer &= TIMER_CTL_TASTALL | TIMER_CTL_TBSTALL; in TimerControlStall()
338 (HWREG(ulBase + TIMER_O_CTL) | ulTimer) : in TimerControlStall()
339 (HWREG(ulBase + TIMER_O_CTL) & ~(ulTimer))); in TimerControlStall()
360 TimerPrescaleSet(unsigned long ulBase, unsigned long ulTimer, in TimerPrescaleSet() argument
367 ASSERT((ulTimer == TIMER_A) || (ulTimer == TIMER_B) || in TimerPrescaleSet()
368 (ulTimer == TIMER_BOTH)); in TimerPrescaleSet()
374 if(ulTimer & TIMER_A) in TimerPrescaleSet()
382 if(ulTimer & TIMER_B) in TimerPrescaleSet()
406 TimerPrescaleGet(unsigned long ulBase, unsigned long ulTimer) in TimerPrescaleGet() argument
412 ASSERT((ulTimer == TIMER_A) || (ulTimer == TIMER_B) || in TimerPrescaleGet()
413 (ulTimer == TIMER_BOTH)); in TimerPrescaleGet()
418 return((ulTimer == TIMER_A) ? HWREG(ulBase + TIMER_O_TAPR) : in TimerPrescaleGet()
444 TimerPrescaleMatchSet(unsigned long ulBase, unsigned long ulTimer, in TimerPrescaleMatchSet() argument
451 ASSERT((ulTimer == TIMER_A) || (ulTimer == TIMER_B) || in TimerPrescaleMatchSet()
452 (ulTimer == TIMER_BOTH)); in TimerPrescaleMatchSet()
458 if(ulTimer & TIMER_A) in TimerPrescaleMatchSet()
466 if(ulTimer & TIMER_B) in TimerPrescaleMatchSet()
492 TimerPrescaleMatchGet(unsigned long ulBase, unsigned long ulTimer) in TimerPrescaleMatchGet() argument
498 ASSERT((ulTimer == TIMER_A) || (ulTimer == TIMER_B) || in TimerPrescaleMatchGet()
499 (ulTimer == TIMER_BOTH)); in TimerPrescaleMatchGet()
504 return((ulTimer == TIMER_A) ? HWREG(ulBase + TIMER_O_TAPMR) : in TimerPrescaleMatchGet()
528 TimerLoadSet(unsigned long ulBase, unsigned long ulTimer, in TimerLoadSet() argument
535 ASSERT((ulTimer == TIMER_A) || (ulTimer == TIMER_B) || in TimerLoadSet()
536 (ulTimer == TIMER_BOTH)); in TimerLoadSet()
541 if(ulTimer & TIMER_A) in TimerLoadSet()
549 if(ulTimer & TIMER_B) in TimerLoadSet()
574 TimerLoadGet(unsigned long ulBase, unsigned long ulTimer) in TimerLoadGet() argument
580 ASSERT((ulTimer == TIMER_A) || (ulTimer == TIMER_B)); in TimerLoadGet()
585 return((ulTimer == TIMER_A) ? HWREG(ulBase + TIMER_O_TAILR) : in TimerLoadGet()
604 TimerValueGet(unsigned long ulBase, unsigned long ulTimer) in TimerValueGet() argument
610 ASSERT((ulTimer == TIMER_A) || (ulTimer == TIMER_B)); in TimerValueGet()
615 return((ulTimer == TIMER_A) ? HWREG(ulBase + TIMER_O_TAR) : in TimerValueGet()
635 TimerValueSet(unsigned long ulBase, unsigned long ulTimer, in TimerValueSet() argument
642 ASSERT((ulTimer == TIMER_A) || (ulTimer == TIMER_B)); in TimerValueSet()
647 if(ulTimer == TIMER_A) in TimerValueSet()
676 TimerMatchSet(unsigned long ulBase, unsigned long ulTimer, in TimerMatchSet() argument
683 ASSERT((ulTimer == TIMER_A) || (ulTimer == TIMER_B) || in TimerMatchSet()
684 (ulTimer == TIMER_BOTH)); in TimerMatchSet()
689 if(ulTimer & TIMER_A) in TimerMatchSet()
697 if(ulTimer & TIMER_B) in TimerMatchSet()
718 TimerMatchGet(unsigned long ulBase, unsigned long ulTimer) in TimerMatchGet() argument
724 ASSERT((ulTimer == TIMER_A) || (ulTimer == TIMER_B)); in TimerMatchGet()
729 return((ulTimer == TIMER_A) ? HWREG(ulBase + TIMER_O_TAMATCHR) : in TimerMatchGet()
757 TimerIntRegister(unsigned long ulBase, unsigned long ulTimer, in TimerIntRegister() argument
764 ASSERT((ulTimer == TIMER_A) || (ulTimer == TIMER_B) || in TimerIntRegister()
765 (ulTimer == TIMER_BOTH)); in TimerIntRegister()
774 if(ulTimer & TIMER_A) in TimerIntRegister()
790 if(ulTimer & TIMER_B) in TimerIntRegister()
823 TimerIntUnregister(unsigned long ulBase, unsigned long ulTimer) in TimerIntUnregister() argument
829 ASSERT((ulTimer == TIMER_A) || (ulTimer == TIMER_B) || in TimerIntUnregister()
830 (ulTimer == TIMER_BOTH)); in TimerIntUnregister()
845 if(ulTimer & TIMER_A) in TimerIntUnregister()
861 if(ulTimer & TIMER_B) in TimerIntUnregister()