Add MAXIMUM_STEPPER_RATE, enforce in multi-stepping

The timing value should be properly set for ALL boards. The compiler will check and set maximum step rate calculations based on those values.

Co-Authored-By: ejtagle <ejtagle@hotmail.com>
This commit is contained in:
Scott Lahteine 2018-06-10 00:46:20 -05:00
parent 1cdcc6adfa
commit b7ddfddf51
102 changed files with 508 additions and 186 deletions

View file

@ -817,6 +817,17 @@
*/
#define MINIMUM_STEPPER_PULSE 2
/**
* Maximum stepping rate (in Hz) the stepper driver allows
* If undefined, defaults to 1MHz / (2 * MINIMUM_STEPPER_PULSE)
* 500000 : Maximum for A4988 stepper driver
* 400000 : Maximum for TMC2xxx stepper drivers
* 250000 : Maximum for DRV8825 stepper driver
* 150000 : Maximum for TB6600 stepper driver
* 15000 : Maximum for TB6560 stepper driver
*/
#define MAXIMUM_STEPPER_RATE 250000 // DRV8825
// @section temperature
// Control heater 0 and heater 1 in parallel.