Browse Source

Update pwm.c

main
Frank 5 years ago
parent
commit
1b8a01a3df
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      teensy4/pwm.c

+ 2
- 2
teensy4/pwm.c View File

case 0: flexpwm = &IMXRT_FLEXPWM1; break; case 0: flexpwm = &IMXRT_FLEXPWM1; break;
case 1: flexpwm = &IMXRT_FLEXPWM2; break; case 1: flexpwm = &IMXRT_FLEXPWM2; break;
case 2: flexpwm = &IMXRT_FLEXPWM3; break; case 2: flexpwm = &IMXRT_FLEXPWM3; break;
case 3: flexpwm = &IMXRT_FLEXPWM4;
default: flexpwm = &IMXRT_FLEXPWM4;
} }
flexpwmFrequency(flexpwm, info->module & 0x03, info->channel, frequency); flexpwmFrequency(flexpwm, info->module & 0x03, info->channel, frequency);
} else if (info->type == 2) { } else if (info->type == 2) {
case 0: qtimer = &IMXRT_TMR1; break; case 0: qtimer = &IMXRT_TMR1; break;
case 1: qtimer = &IMXRT_TMR2; break; case 1: qtimer = &IMXRT_TMR2; break;
case 2: qtimer = &IMXRT_TMR3; break; case 2: qtimer = &IMXRT_TMR3; break;
case 3: qtimer = &IMXRT_TMR4;
default: qtimer = &IMXRT_TMR4;
} }
quadtimerFrequency(qtimer, info->module & 0x03, frequency); quadtimerFrequency(qtimer, info->module & 0x03, frequency);
} }

Loading…
Cancel
Save