Lines Matching refs:EPWM_WRITE2
83 #define EPWM_WRITE2(_sc, reg, value) \
217 EPWM_WRITE2(sc, (chan == 0) ? EPWM_CMPA : EPWM_CMPB, tbcmp);
240 EPWM_WRITE2(sc, EPWM_AQCSFRC, regval);
295 EPWM_WRITE2(sc, EPWM_TBCTL, regval);
296 EPWM_WRITE2(sc, EPWM_TBPRD, tbprd - 1);
356 EPWM_WRITE2(sc, EPWM_CMPA, sc->sc_pwm_dutyA);
357 EPWM_WRITE2(sc, EPWM_CMPB, sc->sc_pwm_dutyB);
362 EPWM_WRITE2(sc, EPWM_TBCTL, reg);
364 EPWM_WRITE2(sc, EPWM_TBPRD, sc->sc_pwm_period - 1);
398 EPWM_WRITE2(sc, EPWM_TBCTL, reg);
430 EPWM_WRITE2(sc, EPWM_CMPA, sc->sc_pwm_dutyA);
434 EPWM_WRITE2(sc, EPWM_CMPB, sc->sc_pwm_dutyB);
464 EPWM_WRITE2(sc, EPWM_CMPA, sc->sc_pwm_dutyA);
465 EPWM_WRITE2(sc, EPWM_CMPB, sc->sc_pwm_dutyB);
468 EPWM_WRITE2(sc, EPWM_TBPRD, period - 1);
613 EPWM_WRITE2(sc, EPWM_TBCTL, reg);
620 EPWM_WRITE2(sc, EPWM_TBPRD, sc->sc_pwm_period - 1);
621 EPWM_WRITE2(sc, EPWM_CMPA, sc->sc_pwm_dutyA);
622 EPWM_WRITE2(sc, EPWM_CMPB, sc->sc_pwm_dutyB);
624 EPWM_WRITE2(sc, EPWM_AQCTLA, (AQCTL_ZRO_SET | AQCTL_CAU_CLEAR));
625 EPWM_WRITE2(sc, EPWM_AQCTLB, (AQCTL_ZRO_SET | AQCTL_CBU_CLEAR));
630 EPWM_WRITE2(sc, EPWM_TBCTL, reg);
632 EPWM_WRITE2(sc, EPWM_TZCTL, 0xf);