Lines Matching refs:ulBase

72 TimerBaseValid(unsigned long ulBase)  in TimerBaseValid()  argument
74 return((ulBase == TIMERA0_BASE) || (ulBase == TIMERA1_BASE) || in TimerBaseValid()
75 (ulBase == TIMERA2_BASE) || (ulBase == TIMERA3_BASE)); in TimerBaseValid()
94 TimerEnable(unsigned long ulBase, unsigned long ulTimer) in TimerEnable() argument
99 ASSERT(TimerBaseValid(ulBase)); 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
128 ASSERT(TimerBaseValid(ulBase)); in TimerDisable()
135 HWREG(ulBase + TIMER_O_CTL) &= ~(ulTimer & in TimerDisable()
185 TimerConfigure(unsigned long ulBase, unsigned long ulConfig) in TimerConfigure() argument
217 HWREG(ulBase + TIMER_O_CTL) &= ~(TIMER_CTL_TAEN | TIMER_CTL_TBEN); in TimerConfigure()
222 HWREG(ulBase + TIMER_O_CFG) = ulConfig >> 24; in TimerConfigure()
228 HWREG(ulBase + TIMER_O_TAMR) = ulConfig & 255; in TimerConfigure()
229 HWREG(ulBase + TIMER_O_TBMR) = (ulConfig >> 8) & 255; in TimerConfigure()
249 TimerControlLevel(unsigned long ulBase, unsigned long ulTimer, in TimerControlLevel() argument
255 ASSERT(TimerBaseValid(ulBase)); in TimerControlLevel()
263 HWREG(ulBase + TIMER_O_CTL) = (bInvert ? 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
292 ASSERT(TimerBaseValid(ulBase)); in TimerControlEvent()
300 HWREG(ulBase + TIMER_O_CTL) = ((HWREG(ulBase + TIMER_O_CTL) & in TimerControlEvent()
323 TimerControlStall(unsigned long ulBase, unsigned long ulTimer, in TimerControlStall() argument
329 ASSERT(TimerBaseValid(ulBase)); in TimerControlStall()
337 HWREG(ulBase + TIMER_O_CTL) = (bStall ? 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
366 ASSERT(TimerBaseValid(ulBase)); in TimerPrescaleSet()
376 HWREG(ulBase + TIMER_O_TAPR) = ulValue; in TimerPrescaleSet()
384 HWREG(ulBase + TIMER_O_TBPR) = ulValue; in TimerPrescaleSet()
406 TimerPrescaleGet(unsigned long ulBase, unsigned long ulTimer) in TimerPrescaleGet() argument
411 ASSERT(TimerBaseValid(ulBase)); in TimerPrescaleGet()
418 return((ulTimer == TIMER_A) ? HWREG(ulBase + TIMER_O_TAPR) : in TimerPrescaleGet()
419 HWREG(ulBase + TIMER_O_TBPR)); in TimerPrescaleGet()
444 TimerPrescaleMatchSet(unsigned long ulBase, unsigned long ulTimer, in TimerPrescaleMatchSet() argument
450 ASSERT(TimerBaseValid(ulBase)); in TimerPrescaleMatchSet()
460 HWREG(ulBase + TIMER_O_TAPMR) = ulValue; in TimerPrescaleMatchSet()
468 HWREG(ulBase + TIMER_O_TBPMR) = ulValue; in TimerPrescaleMatchSet()
492 TimerPrescaleMatchGet(unsigned long ulBase, unsigned long ulTimer) in TimerPrescaleMatchGet() argument
497 ASSERT(TimerBaseValid(ulBase)); in TimerPrescaleMatchGet()
504 return((ulTimer == TIMER_A) ? HWREG(ulBase + TIMER_O_TAPMR) : in TimerPrescaleMatchGet()
505 HWREG(ulBase + TIMER_O_TBPMR)); in TimerPrescaleMatchGet()
528 TimerLoadSet(unsigned long ulBase, unsigned long ulTimer, in TimerLoadSet() argument
534 ASSERT(TimerBaseValid(ulBase)); in TimerLoadSet()
543 HWREG(ulBase + TIMER_O_TAILR) = ulValue; in TimerLoadSet()
551 HWREG(ulBase + TIMER_O_TBILR) = ulValue; in TimerLoadSet()
574 TimerLoadGet(unsigned long ulBase, unsigned long ulTimer) in TimerLoadGet() argument
579 ASSERT(TimerBaseValid(ulBase)); in TimerLoadGet()
585 return((ulTimer == TIMER_A) ? HWREG(ulBase + TIMER_O_TAILR) : in TimerLoadGet()
586 HWREG(ulBase + TIMER_O_TBILR)); in TimerLoadGet()
604 TimerValueGet(unsigned long ulBase, unsigned long ulTimer) in TimerValueGet() argument
609 ASSERT(TimerBaseValid(ulBase)); in TimerValueGet()
615 return((ulTimer == TIMER_A) ? HWREG(ulBase + TIMER_O_TAR) : in TimerValueGet()
616 HWREG(ulBase + TIMER_O_TBR)); in TimerValueGet()
635 TimerValueSet(unsigned long ulBase, unsigned long ulTimer, in TimerValueSet() argument
641 ASSERT(TimerBaseValid(ulBase)); in TimerValueSet()
649 HWREG(ulBase + TIMER_O_TAV) = ulValue; in TimerValueSet()
653 HWREG(ulBase + TIMER_O_TBV) = ulValue; in TimerValueSet()
676 TimerMatchSet(unsigned long ulBase, unsigned long ulTimer, in TimerMatchSet() argument
682 ASSERT(TimerBaseValid(ulBase)); in TimerMatchSet()
691 HWREG(ulBase + TIMER_O_TAMATCHR) = ulValue; in TimerMatchSet()
699 HWREG(ulBase + TIMER_O_TBMATCHR) = ulValue; in TimerMatchSet()
718 TimerMatchGet(unsigned long ulBase, unsigned long ulTimer) in TimerMatchGet() argument
723 ASSERT(TimerBaseValid(ulBase)); in TimerMatchGet()
729 return((ulTimer == TIMER_A) ? HWREG(ulBase + TIMER_O_TAMATCHR) : in TimerMatchGet()
730 HWREG(ulBase + TIMER_O_TBMATCHR)); in TimerMatchGet()
757 TimerIntRegister(unsigned long ulBase, unsigned long ulTimer, in TimerIntRegister() argument
763 ASSERT(TimerBaseValid(ulBase)); in TimerIntRegister()
767 ulBase = ((ulBase == TIMERA0_BASE) ? INT_TIMERA0A : in TimerIntRegister()
768 ((ulBase == TIMERA1_BASE) ? INT_TIMERA1A : in TimerIntRegister()
769 ((ulBase == TIMERA2_BASE) ? INT_TIMERA2A : INT_TIMERA3A))); in TimerIntRegister()
779 IntRegister(ulBase, pfnHandler); in TimerIntRegister()
784 IntEnable(ulBase); in TimerIntRegister()
795 IntRegister(ulBase + 1, pfnHandler); in TimerIntRegister()
800 IntEnable(ulBase + 1); in TimerIntRegister()
823 TimerIntUnregister(unsigned long ulBase, unsigned long ulTimer) in TimerIntUnregister() argument
828 ASSERT(TimerBaseValid(ulBase)); in TimerIntUnregister()
836 ulBase = ((ulBase == TIMERA0_BASE) ? INT_TIMERA0A : in TimerIntUnregister()
837 ((ulBase == TIMERA1_BASE) ? INT_TIMERA1A : in TimerIntUnregister()
838 ((ulBase == TIMERA2_BASE) ? INT_TIMERA2A : INT_TIMERA3A))); in TimerIntUnregister()
850 IntDisable(ulBase); in TimerIntUnregister()
855 IntUnregister(ulBase); in TimerIntUnregister()
866 IntDisable(ulBase + 1); in TimerIntUnregister()
871 IntUnregister(ulBase + 1); in TimerIntUnregister()
900 TimerIntEnable(unsigned long ulBase, unsigned long ulIntFlags) in TimerIntEnable() argument
905 ASSERT(TimerBaseValid(ulBase)); in TimerIntEnable()
910 HWREG(ulBase + TIMER_O_IMR) |= ulIntFlags; in TimerIntEnable()
931 TimerIntDisable(unsigned long ulBase, unsigned long ulIntFlags) in TimerIntDisable() argument
936 ASSERT(TimerBaseValid(ulBase)); in TimerIntDisable()
941 HWREG(ulBase + TIMER_O_IMR) &= ~(ulIntFlags); in TimerIntDisable()
961 TimerIntStatus(unsigned long ulBase, tBoolean bMasked) in TimerIntStatus() argument
966 ASSERT(TimerBaseValid(ulBase)); in TimerIntStatus()
972 return(bMasked ? HWREG(ulBase + TIMER_O_MIS) : in TimerIntStatus()
973 HWREG(ulBase + TIMER_O_RIS)); in TimerIntStatus()
1003 TimerIntClear(unsigned long ulBase, unsigned long ulIntFlags) in TimerIntClear() argument
1008 ASSERT(TimerBaseValid(ulBase)); in TimerIntClear()
1013 HWREG(ulBase + TIMER_O_ICR) = ulIntFlags; in TimerIntClear()
1046 TimerDMAEventSet(unsigned long ulBase, unsigned long ulDMAEvent) in TimerDMAEventSet() argument
1051 ASSERT(TimerBaseValid(ulBase)); in TimerDMAEventSet()
1056 HWREG(ulBase + TIMER_O_DMAEV) = ulDMAEvent; in TimerDMAEventSet()
1088 TimerDMAEventGet(unsigned long ulBase) in TimerDMAEventGet() argument
1093 ASSERT(TimerBaseValid(ulBase)); in TimerDMAEventGet()
1098 return(HWREG(ulBase + TIMER_O_DMAEV)); in TimerDMAEventGet()