simplefoc / Arduino-FOC

Arduino FOC for BLDC and Stepper motors - Arduino Based Field Oriented Control Algorithm Library
https://docs.simplefoc.com
MIT License
2.03k stars 521 forks source link

bugfix for teensy 3.0-3.0, wrong check for timer 3 #321

Closed askuric closed 1 year ago

askuric commented 1 year ago

Fixing the wrong condition statement for the architectures teensy 3.2 and lower. The issue is caused by the FTM3_SC register that is created even though the board does not have FTM3 timer ( or at least does not use it for PWM ).

https://community.simplefoc.com/t/errors-compiling-simplefoc-for-teensy-3-2/3185/2 https://community.simplefoc.com/t/errors-compiling-simplefoc-for-teensy-3-2-still-not-solved/3809