Skip to content

Commit c171a01

Browse files
committed
renamed the flag to force_center_aligend_3pwm
1 parent d48f4d7 commit c171a01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/drivers/hardware_specific/teensy/teensy4_mcu.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#pragma message("SimpleFOC: compiling for Teensy 4.x")
1111
#pragma message("")
1212

13-
// #define AVOID_TEENSY4_CENTER_ALIGNED_3PWM
13+
// #define TEENSY4_FORCE_CENTER_ALIGNED_3PWM
1414

1515

1616
// function finding the TRIG event given the flexpwm timer and the submodule
@@ -83,7 +83,7 @@ void xbar_init() {
8383
}
8484

8585
// function which finds the flexpwm instance for a pin
86-
// if it does not belong to the flexpwm timer it returns a nullpointer
86+
// if it does not belong to the flexpwm timer it returns a null-pointer
8787
IMXRT_FLEXPWM_t* get_flexpwm(uint8_t pin){
8888

8989
const struct pwm_pin_info_struct *info;
@@ -569,7 +569,7 @@ void write_pwm_on_pin(IMXRT_FLEXPWM_t *p, unsigned int submodule, uint8_t channe
569569
p->MCTRL |= FLEXPWM_MCTRL_LDOK(mask);
570570
}
571571

572-
#ifndef AVOID_TEENSY4_CENTER_ALIGNED_3PWM
572+
#ifnef TEENSY4_FORCE_CENTER_ALIGNED_3PWM
573573

574574
// function setting the high pwm frequency to the supplied pins
575575
// - BLDC motor - 3PWM setting

0 commit comments

Comments
 (0)