simplefoc / Arduino-FOC

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

About MCPWM? #30

Closed zhuangfengzi closed 4 years ago

zhuangfengzi commented 4 years ago

What are these mistakes? How to solve this problem? thank you!

e:\Program Files (x86)\Arduino\libraries\Arduino-FOC-v.1.5.0\src\FOCutils.cpp:108:55: error: 'MCPWM_SELECT_SYNC_INT0' was not declared in this scope

mcpwm_sync_enable(m_slot.mcpwm_unit, MCPWM_TIMER_0, MCPWM_SELECT_SYNC_INT0, 0);

                                                   ^

exit status 1 Error compiling for development board esp32 dev module

askuric commented 4 years ago

You have the explanation in ESP32 docs: https://docs.simplefoc.com/microcontrollers

You will have to replace the mcpwm.h file.

zhuangfengzi commented 4 years ago

@askuric Focsimple is great! Thank you very much.

askuric commented 4 years ago

I'm happy you like it and that you've found your solution! https://github.com/simplefoc/Arduino-FOC/issues/14