Home
last modified time | relevance | path

Searched refs:timerOffset (Results 1 – 2 of 2) sorted by relevance

/hal_adi-latest/MAX/Libraries/PeriphDrivers/Source/AFE/
Dafe_timer.c52 uint32_t timerOffset; in AFE_TMR_Stop_16() local
55 timerOffset = TIMER_16B_OFFSET; in AFE_TMR_Stop_16()
57 timerOffset = TIMER_16A_OFFSET; in AFE_TMR_Stop_16()
60 tmr->ctrl0 &= ~(MXC_F_TMR_CTRL0_EN_A << timerOffset); in AFE_TMR_Stop_16()
69 uint32_t timerOffset; in AFE_TMR_SetCompare_16() local
72 timerOffset = TIMER_16B_OFFSET; in AFE_TMR_SetCompare_16()
74 timerOffset = TIMER_16A_OFFSET; in AFE_TMR_SetCompare_16()
77 tmr->cmp &= ~(0xFFFF << timerOffset); in AFE_TMR_SetCompare_16()
78 tmr->cmp |= (cmp_cnt << timerOffset); in AFE_TMR_SetCompare_16()
87 uint32_t timerOffset; in AFE_TMR_SetCount_16() local
[all …]
/hal_adi-latest/MAX/Libraries/PeriphDrivers/Source/TMR/
Dtmr_revb.c170 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()
[all …]