simplefoc / Arduino-FOC

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

Use interrupt if no repetition counter #383

Closed Candas1 closed 4 months ago

Candas1 commented 4 months ago

This was initially saving space as the interrupt code was completely removed with the build flag, and improving the performance. Now the interrupt is started if the timer has no repetition counter, so the interrupt code has to be there in all cases.