Skip to content

Commit abda754

Browse files
authored
Update teensy4_mcu.cpp
1 parent 3c2c7cf commit abda754

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/drivers/hardware_specific/teensy/teensy4_mcu.cpp

+3-3
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 TEENSY4_FORCE_CENTER_ALIGNED_3PWM
13+
// #define SIMPLEFOC_TEENSY4_FORCE_CENTER_ALIGNED_3PWM
1414

1515

1616
// function finding the TRIG event given the flexpwm timer and the submodule
@@ -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-
#ifdef TEENSY4_FORCE_CENTER_ALIGNED_3PWM
572+
#ifdef SIMPLEFOC_TEENSY4_FORCE_CENTER_ALIGNED_3PWM
573573

574574
// function setting the high pwm frequency to the supplied pins
575575
// - BLDC motor - 3PWM setting
@@ -663,4 +663,4 @@ void _writeCenterAligned3PMW(float dc_a, float dc_b, float dc_c, void* params){
663663

664664
#endif
665665

666-
#endif
666+
#endif

0 commit comments

Comments
 (0)