Lines Matching refs:baseAddress

62 #define timerMaskShift(baseAddress) ((((baseAddress) & 0XF000) >> 12) * 2)  argument
77 static uint32_t getPowerMgrId(uint32_t baseAddress);
121 TimerDisable(hwAttrs->baseAddress, object->timer); in initHw()
125 HWREG(hwAttrs->baseAddress + TIMER_O_TAMR) = TIMER_TAMR_TAMR_PERIOD; in initHw()
129 HWREG(hwAttrs->baseAddress + TIMER_O_TBMR) = TIMER_TBMR_TBMR_PERIOD; in initHw()
134 HWREG(hwAttrs->baseAddress + TIMER_O_CFG) = TIMER_CFG_32_BIT_TIMER; in initHw()
138 HWREG(hwAttrs->baseAddress + TIMER_O_CFG) = TIMER_CFG_16_BIT; in initHw()
142 HWREG(hwAttrs->baseAddress + TIMER_O_IMR) = ~object->timer; in initHw()
145 TimerPrescaleSet(hwAttrs->baseAddress, object->timer, object->prescaler); in initHw()
146 TimerLoadSet(hwAttrs->baseAddress, object->timer, object->period); in initHw()
152 TimerControlStall(hwAttrs->baseAddress, object->timer, true); in initHw()
209 static uint32_t getPowerMgrId(uint32_t baseAddress) in getPowerMgrId() argument
211 switch (baseAddress) { in getPowerMgrId()
251 bool TimerCC32XX_allocateTimerResource(uint32_t baseAddress, in TimerCC32XX_allocateTimerResource() argument
259 powerMgrId = getPowerMgrId(baseAddress); in TimerCC32XX_allocateTimerResource()
266 mask = subTimer << timerMaskShift(baseAddress); in TimerCC32XX_allocateTimerResource()
312 TimerCC32XX_freeTimerResource(hwAttrs->baseAddress, hwAttrs->subTimer); in TimerCC32XX_close()
327 void TimerCC32XX_freeTimerResource(uint32_t baseAddress, in TimerCC32XX_freeTimerResource() argument
333 mask = subTimer << timerMaskShift(baseAddress); in TimerCC32XX_freeTimerResource()
339 Power_releaseDependency(getPowerMgrId(baseAddress)); in TimerCC32XX_freeTimerResource()
354 count = HWREG(hWAttrs->baseAddress + TIMER_O_TAR); in TimerCC32XX_getCount()
357 count = HWREG(hWAttrs->baseAddress + TIMER_O_TBR); in TimerCC32XX_getCount()
378 TimerIntClear(hwAttrs->baseAddress, interruptMask); in TimerCC32XX_hwiIntFunction()
418 if (!TimerCC32XX_allocateTimerResource(hwAttrs->baseAddress, in TimerCC32XX_open()
573 TimerPrescaleSet(hwAttrs->baseAddress, object->timer, object->prescaler); in TimerCC32XX_setPeriod()
574 TimerLoadSet(hwAttrs->baseAddress, object->timer, object->period); in TimerCC32XX_setPeriod()
606 TimerIntEnable(hwAttrs->baseAddress, interruptMask); in TimerCC32XX_start()
613 HWREG(hwAttrs->baseAddress + TIMER_O_TAMR) |= TIMER_TAMR_TAILD; in TimerCC32XX_start()
616 HWREG(hwAttrs->baseAddress + TIMER_O_TBMR) |= TIMER_TBMR_TBILD; in TimerCC32XX_start()
619 TimerEnable(hwAttrs->baseAddress, object->timer); in TimerCC32XX_start()
656 TimerDisable(hwAttrs->baseAddress, object->timer); in TimerCC32XX_stop()
657 TimerIntDisable(hwAttrs->baseAddress, interruptMask); in TimerCC32XX_stop()