Skip to content

Commit

Permalink
renamed the flag to force_center_aligend_3pwm
Browse files Browse the repository at this point in the history
  • Loading branch information
askuric committed Apr 19, 2024
1 parent d48f4d7 commit c171a01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/drivers/hardware_specific/teensy/teensy4_mcu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#pragma message("SimpleFOC: compiling for Teensy 4.x")
#pragma message("")

// #define AVOID_TEENSY4_CENTER_ALIGNED_3PWM
// #define TEENSY4_FORCE_CENTER_ALIGNED_3PWM


// function finding the TRIG event given the flexpwm timer and the submodule
Expand Down Expand Up @@ -83,7 +83,7 @@ void xbar_init() {
}

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

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

#ifndef AVOID_TEENSY4_CENTER_ALIGNED_3PWM
#ifnef TEENSY4_FORCE_CENTER_ALIGNED_3PWM

// function setting the high pwm frequency to the supplied pins
// - BLDC motor - 3PWM setting
Expand Down

0 comments on commit c171a01

Please sign in to comment.