Browse Source

Move L6470 enum

Scott Lahteine 5 years ago
parent
commit
713157f712
2 changed files with 1 additions and 5 deletions
  1. 0
    4
      Marlin/src/core/enum.h
  2. 1
    1
      Marlin/src/libs/L6470/L6470_Marlin.h

+ 0
- 4
Marlin/src/core/enum.h View File

49
   NO_AXIS   = 0xFF
49
   NO_AXIS   = 0xFF
50
 };
50
 };
51
 
51
 
52
-#if HAS_DRIVER(L6470)
53
-  enum L6470_driver_enum : unsigned char { X, Y, Z, X2, Y2, Z2, Z3, E0, E1, E2, E3, E4, E5 };
54
-#endif
55
-
56
 #define LOOP_S_LE_N(VAR, S, N) for (uint8_t VAR=(S); VAR<=(N); VAR++)
52
 #define LOOP_S_LE_N(VAR, S, N) for (uint8_t VAR=(S); VAR<=(N); VAR++)
57
 #define LOOP_S_L_N(VAR, S, N) for (uint8_t VAR=(S); VAR<(N); VAR++)
53
 #define LOOP_S_L_N(VAR, S, N) for (uint8_t VAR=(S); VAR<(N); VAR++)
58
 #define LOOP_LE_N(VAR, N) LOOP_S_LE_N(VAR, 0, N)
54
 #define LOOP_LE_N(VAR, N) LOOP_S_LE_N(VAR, 0, N)

+ 1
- 1
Marlin/src/libs/L6470/L6470_Marlin.h View File

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

Loading…
Cancel
Save