|
@ -297,11 +297,14 @@ |
|
|
|
|
|
|
|
|
st.en_pwm_mode(stealth); |
|
|
st.en_pwm_mode(stealth); |
|
|
|
|
|
|
|
|
PWMCONF_t pwmconf{0}; |
|
|
TMC2160_n::PWMCONF_t pwmconf{0}; |
|
|
pwmconf.pwm_freq = 0b01; // f_pwm = 2/683 f_clk
|
|
|
pwmconf.pwm_lim = 12; |
|
|
|
|
|
pwmconf.pwm_reg = 8; |
|
|
|
|
|
pwmconf.pwm_autograd = true; |
|
|
pwmconf.pwm_autoscale = true; |
|
|
pwmconf.pwm_autoscale = true; |
|
|
pwmconf.pwm_grad = 5; |
|
|
pwmconf.pwm_freq = 0b01; |
|
|
pwmconf.pwm_ampl = 180; |
|
|
pwmconf.pwm_grad = 14; |
|
|
|
|
|
pwmconf.pwm_ofs = 36; |
|
|
st.PWMCONF(pwmconf.sr); |
|
|
st.PWMCONF(pwmconf.sr); |
|
|
|
|
|
|
|
|
#if ENABLED(HYBRID_THRESHOLD) |
|
|
#if ENABLED(HYBRID_THRESHOLD) |
|
@ -651,11 +654,14 @@ |
|
|
|
|
|
|
|
|
st.en_pwm_mode(stealth); |
|
|
st.en_pwm_mode(stealth); |
|
|
|
|
|
|
|
|
PWMCONF_t pwmconf{0}; |
|
|
TMC2160_n::PWMCONF_t pwmconf{0}; |
|
|
pwmconf.pwm_freq = 0b01; // f_pwm = 2/683 f_clk
|
|
|
pwmconf.pwm_lim = 12; |
|
|
|
|
|
pwmconf.pwm_reg = 8; |
|
|
|
|
|
pwmconf.pwm_autograd = true; |
|
|
pwmconf.pwm_autoscale = true; |
|
|
pwmconf.pwm_autoscale = true; |
|
|
pwmconf.pwm_grad = 5; |
|
|
pwmconf.pwm_freq = 0b01; |
|
|
pwmconf.pwm_ampl = 180; |
|
|
pwmconf.pwm_grad = 14; |
|
|
|
|
|
pwmconf.pwm_ofs = 36; |
|
|
st.PWMCONF(pwmconf.sr); |
|
|
st.PWMCONF(pwmconf.sr); |
|
|
|
|
|
|
|
|
#if ENABLED(HYBRID_THRESHOLD) |
|
|
#if ENABLED(HYBRID_THRESHOLD) |
|
|