Lines Matching refs:timerOffset
170 uint32_t timerOffset; in MXC_TMR_RevB_ConfigGeneric() local
180 timerOffset = TIMER_16B_OFFSET; in MXC_TMR_RevB_ConfigGeneric()
182 timerOffset = TIMER_16A_OFFSET; in MXC_TMR_RevB_ConfigGeneric()
185 tmr->ctrl0 |= (MXC_F_TMR_REVB_CTRL0_CLKEN_A << timerOffset); in MXC_TMR_RevB_ConfigGeneric()
186 while (!(tmr->ctrl1 & (MXC_F_TMR_REVB_CTRL1_CLKRDY_A << timerOffset))) {} in MXC_TMR_RevB_ConfigGeneric()
188 tmr->ctrl0 |= (cfg->mode << timerOffset); in MXC_TMR_RevB_ConfigGeneric()
189 tmr->ctrl0 |= ((cfg->pol << MXC_F_TMR_REVB_CTRL0_POL_A_POS) << timerOffset); in MXC_TMR_RevB_ConfigGeneric()
191 tmr->cnt = (0x1 << timerOffset); in MXC_TMR_RevB_ConfigGeneric()
192 while (!(tmr->intfl & (MXC_F_TMR_REVB_INTFL_WRDONE_A << timerOffset))) {} in MXC_TMR_RevB_ConfigGeneric()
194 tmr->cmp = (cfg->cmp_cnt << timerOffset); in MXC_TMR_RevB_ConfigGeneric()
196 tmr->ctrl1 &= ~(MXC_F_TMR_REVB_CTRL1_OUTEN_A << timerOffset); in MXC_TMR_RevB_ConfigGeneric()
198 tmr->ctrl1 |= (MXC_F_TMR_REVB_CTRL1_OUTEN_A << timerOffset); in MXC_TMR_RevB_ConfigGeneric()