Sfoglia il codice sorgente

Fix PWM polarity on pins 0, 1, 24, 25

teensy4-core
PaulStoffregen 6 anni fa
parent
commit
e78946ba14
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      teensy4/pwm.c

+ 1
- 1
teensy4/pwm.c Vedi File

@@ -63,7 +63,7 @@ void flexpwmWrite(IMXRT_FLEXPWM_t *p, unsigned int submodule, uint8_t channel, u
p->MCTRL |= FLEXPWM_MCTRL_CLDOK(mask);
switch (channel) {
case 0: // X
p->SM[submodule].VAL0 = cval;
p->SM[submodule].VAL0 = modulo - cval;
p->OUTEN |= FLEXPWM_OUTEN_PWMX_EN(mask);
//printf(" write channel X\n");
break;

Loading…
Annulla
Salva