Add board MKS_BASE_HEROIC (#9926)

Followup to #9008

- Don't define micro-stepping pins for boards that lack them.
- Allow setting of 128 microsteps with `M350`.
This commit is contained in:
Scott Lahteine
2018-03-03 23:14:52 -06:00
committed by GitHub
parent 649f375494
commit 6d7f4f84e2
6 changed files with 63 additions and 23 deletions

View File

@ -252,8 +252,12 @@
// MS1 MS2 Stepper Driver Microstepping mode table
#define MICROSTEP1 LOW,LOW
#define MICROSTEP2 HIGH,LOW
#define MICROSTEP4 LOW,HIGH
#if ENABLED(HEROIC_STEPPER_DRIVERS)
#define MICROSTEP128 LOW,HIGH
#else
#define MICROSTEP2 HIGH,LOW
#define MICROSTEP4 LOW,HIGH
#endif
#define MICROSTEP8 HIGH,HIGH
#ifdef __SAM3X8E__
#if MB(ALLIGATOR)
@ -263,7 +267,7 @@
#define MICROSTEP16 HIGH,HIGH
#endif
#else
#define MICROSTEP16 HIGH,HIGH
#define MICROSTEP16 HIGH,HIGH
#endif
/**