luni64 / TeensyStep

Fast Stepper Motor Library for Teensy boards
https://luni64.github.io/TeensyStep/
MIT License
272 stars 56 forks source link

How to run with stm32f103? #116

Closed EeeLo closed 1 year ago

ramboerik commented 2 years ago

Hi, you need to use the STM32 branch and change what hardware timer to use. Here is the line you need to modify to match what timers that the stm32f103 has: https://github.com/luni64/TeensyStep/blob/bbc3a97d3a72d976f5d5b5e244144a7b525f644b/src/timer/stm32/TimerField.cpp#L4

EeeLo commented 2 years ago

您好,您需要修改 STM322 的分支并使用您的匹配。

https://github.com/luni64/TeensyStep/blob/bbc3a97d3a72d976f5d5b5e244144a7b525f644b/src/timer/stm32/TimerField.cpp#L4

Hi,I already run with stm32f103, now I have new question about the "overrideSpeed",I build it with STM32 board ,but not have member named "overrideSpeed", I can see there have some code in the project like "Winder.cpp", how to add in STM32's library?