Browse Source

More 8 extruder defines

pull/1/head
Scott Lahteine 5 years ago
parent
commit
1d1dc8e339
  1. 12
      Marlin/Configuration_adv.h
  2. 4
      Marlin/src/inc/SanityCheck.h
  3. 12
      Marlin/src/module/stepper/TMC26X.cpp
  4. 2
      Marlin/src/module/temperature.h

12
Marlin/Configuration_adv.h

@ -1957,6 +1957,18 @@
#define E5_MICROSTEPS 16 #define E5_MICROSTEPS 16
#endif #endif
#if AXIS_DRIVER_TYPE_E6(TMC26X)
#define E6_MAX_CURRENT 1000
#define E6_SENSE_RESISTOR 91
#define E6_MICROSTEPS 16
#endif
#if AXIS_DRIVER_TYPE_E7(TMC26X)
#define E7_MAX_CURRENT 1000
#define E7_SENSE_RESISTOR 91
#define E7_MICROSTEPS 16
#endif
#endif // TMC26X #endif // TMC26X
// @section tmc_smart // @section tmc_smart

4
Marlin/src/inc/SanityCheck.h

@ -2140,6 +2140,10 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
INVALID_TMC_ADDRESS(E4); INVALID_TMC_ADDRESS(E4);
#elif AXIS_DRIVER_TYPE_E5(TMC2209) #elif AXIS_DRIVER_TYPE_E5(TMC2209)
INVALID_TMC_ADDRESS(E5); INVALID_TMC_ADDRESS(E5);
#elif AXIS_DRIVER_TYPE_E6(TMC2209)
INVALID_TMC_ADDRESS(E6);
#elif AXIS_DRIVER_TYPE_E7(TMC2209)
INVALID_TMC_ADDRESS(E7);
#endif #endif
#undef INVALID_TMC_ADDRESS #undef INVALID_TMC_ADDRESS

12
Marlin/src/module/stepper/TMC26X.cpp

@ -78,6 +78,12 @@
#if AXIS_DRIVER_TYPE_E5(TMC26X) #if AXIS_DRIVER_TYPE_E5(TMC26X)
_TMC26X_DEFINE(E5); _TMC26X_DEFINE(E5);
#endif #endif
#if AXIS_DRIVER_TYPE_E6(TMC26X)
_TMC26X_DEFINE(E6);
#endif
#if AXIS_DRIVER_TYPE_E7(TMC26X)
_TMC26X_DEFINE(E7);
#endif
#define _TMC26X_INIT(A) do{ \ #define _TMC26X_INIT(A) do{ \
stepper##A.setMicrosteps(A##_MICROSTEPS); \ stepper##A.setMicrosteps(A##_MICROSTEPS); \
@ -127,6 +133,12 @@ void tmc26x_init_to_defaults() {
#if AXIS_DRIVER_TYPE_E5(TMC26X) #if AXIS_DRIVER_TYPE_E5(TMC26X)
_TMC26X_INIT(E5); _TMC26X_INIT(E5);
#endif #endif
#if AXIS_DRIVER_TYPE_E6(TMC26X)
_TMC26X_INIT(E6);
#endif
#if AXIS_DRIVER_TYPE_E7(TMC26X)
_TMC26X_INIT(E7);
#endif
} }
#endif // TMC26X #endif // TMC26X

2
Marlin/src/module/temperature.h

@ -49,7 +49,7 @@
typedef enum : int8_t { typedef enum : int8_t {
INDEX_NONE = -5, INDEX_NONE = -5,
H_PROBE, H_REDUNDANT, H_CHAMBER, H_BED, H_PROBE, H_REDUNDANT, H_CHAMBER, H_BED,
H_E0, H_E1, H_E2, H_E3, H_E4, H_E5 H_E0, H_E1, H_E2, H_E3, H_E4, H_E5, H_E6, H_E7
} heater_ind_t; } heater_ind_t;
// PID storage // PID storage

Loading…
Cancel
Save