Browse Source

Move L6470 enum

pull/1/head
Scott Lahteine 5 years ago
parent
commit
713157f712
  1. 4
      Marlin/src/core/enum.h
  2. 2
      Marlin/src/libs/L6470/L6470_Marlin.h

4
Marlin/src/core/enum.h

@ -49,10 +49,6 @@ enum AxisEnum : unsigned char {
NO_AXIS = 0xFF
};
#if HAS_DRIVER(L6470)
enum L6470_driver_enum : unsigned char { X, Y, Z, X2, Y2, Z2, Z3, E0, E1, E2, E3, E4, E5 };
#endif
#define LOOP_S_LE_N(VAR, S, N) for (uint8_t VAR=(S); VAR<=(N); VAR++)
#define LOOP_S_L_N(VAR, S, N) for (uint8_t VAR=(S); VAR<(N); VAR++)
#define LOOP_LE_N(VAR, N) LOOP_S_LE_N(VAR, 0, N)

2
Marlin/src/libs/L6470/L6470_Marlin.h

@ -27,7 +27,7 @@
#define L6470_GETPARAM(P,Q) stepper##Q.GetParam(P)
#define MAX_L6470 (7 + MAX_EXTRUDERS) // Maximum number of axes in Marlin
enum L6470_driver_enum : unsigned char { X, Y, Z, X2, Y2, Z2, Z3, E0, E1, E2, E3, E4, E5, MAX_L6470 };
#define L6470_ERROR_MASK (STATUS_UVLO | STATUS_TH_WRN | STATUS_TH_SD | STATUS_OCD | STATUS_STEP_LOSS_A | STATUS_STEP_LOSS_B)
#define dSPIN_STEP_CLOCK_FWD dSPIN_STEP_CLOCK

Loading…
Cancel
Save