Lines Matching defs:tcntb
53 #define TCNTB(n) (0x0c + (n) * 12)
118 uint32_t tcon, tcntb, tcmpb;
121 tcntb = PWM_READ(sc, TCNTB(timer->timer_index));
125 conf->period = (u_int)(((uint64_t)tcntb * 1000000000) / sc->sc_clkfreq);
136 uint32_t tcon, tcntb, tcmpb;
145 tcntb = conf->period / (1000000000 / sc->sc_clkfreq);
149 tcmpb = tcntb - tcmpb;
151 PWM_WRITE(sc, TCNTB(timer->timer_index), tcntb - 1);