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

compile time fix for rp2040 - include hardware/pwm.h #251

Closed mschuldt closed 1 year ago

mschuldt commented 1 year ago

Without this include I get many declaration errors such as: error: 'pwm_gpio_to_slice_num' was not declared in this scope

runger1101001 commented 1 year ago

Hey, this change is already present on the dev branch of the library, and will be part of the next release.

But thank you very much for reporting it!