|
@@ -60,36 +60,36 @@ void manage_inactivity(bool ignore_stepper_queue = false);
|
60
|
60
|
#endif
|
61
|
61
|
|
62
|
62
|
#if HAS_X2_ENABLE
|
63
|
|
- #define enable_x() do{ X_ENABLE_WRITE( X_ENABLE_ON); X2_ENABLE_WRITE( X_ENABLE_ON); }while(0)
|
64
|
|
- #define disable_x() do{ X_ENABLE_WRITE(!X_ENABLE_ON); X2_ENABLE_WRITE(!X_ENABLE_ON); axis_known_position[X_AXIS] = false; }while(0)
|
|
63
|
+ #define enable_X() do{ X_ENABLE_WRITE( X_ENABLE_ON); X2_ENABLE_WRITE( X_ENABLE_ON); }while(0)
|
|
64
|
+ #define disable_X() do{ X_ENABLE_WRITE(!X_ENABLE_ON); X2_ENABLE_WRITE(!X_ENABLE_ON); axis_known_position[X_AXIS] = false; }while(0)
|
65
|
65
|
#elif HAS_X_ENABLE
|
66
|
|
- #define enable_x() X_ENABLE_WRITE( X_ENABLE_ON)
|
67
|
|
- #define disable_x() do{ X_ENABLE_WRITE(!X_ENABLE_ON); axis_known_position[X_AXIS] = false; }while(0)
|
|
66
|
+ #define enable_X() X_ENABLE_WRITE( X_ENABLE_ON)
|
|
67
|
+ #define disable_X() do{ X_ENABLE_WRITE(!X_ENABLE_ON); axis_known_position[X_AXIS] = false; }while(0)
|
68
|
68
|
#else
|
69
|
|
- #define enable_x() NOOP
|
70
|
|
- #define disable_x() NOOP
|
|
69
|
+ #define enable_X() NOOP
|
|
70
|
+ #define disable_X() NOOP
|
71
|
71
|
#endif
|
72
|
72
|
|
73
|
73
|
#if HAS_Y2_ENABLE
|
74
|
|
- #define enable_y() do{ Y_ENABLE_WRITE( Y_ENABLE_ON); Y2_ENABLE_WRITE(Y_ENABLE_ON); }while(0)
|
75
|
|
- #define disable_y() do{ Y_ENABLE_WRITE(!Y_ENABLE_ON); Y2_ENABLE_WRITE(!Y_ENABLE_ON); axis_known_position[Y_AXIS] = false; }while(0)
|
|
74
|
+ #define enable_Y() do{ Y_ENABLE_WRITE( Y_ENABLE_ON); Y2_ENABLE_WRITE(Y_ENABLE_ON); }while(0)
|
|
75
|
+ #define disable_Y() do{ Y_ENABLE_WRITE(!Y_ENABLE_ON); Y2_ENABLE_WRITE(!Y_ENABLE_ON); axis_known_position[Y_AXIS] = false; }while(0)
|
76
|
76
|
#elif HAS_Y_ENABLE
|
77
|
|
- #define enable_y() Y_ENABLE_WRITE( Y_ENABLE_ON)
|
78
|
|
- #define disable_y() do{ Y_ENABLE_WRITE(!Y_ENABLE_ON); axis_known_position[Y_AXIS] = false; }while(0)
|
|
77
|
+ #define enable_Y() Y_ENABLE_WRITE( Y_ENABLE_ON)
|
|
78
|
+ #define disable_Y() do{ Y_ENABLE_WRITE(!Y_ENABLE_ON); axis_known_position[Y_AXIS] = false; }while(0)
|
79
|
79
|
#else
|
80
|
|
- #define enable_y() NOOP
|
81
|
|
- #define disable_y() NOOP
|
|
80
|
+ #define enable_Y() NOOP
|
|
81
|
+ #define disable_Y() NOOP
|
82
|
82
|
#endif
|
83
|
83
|
|
84
|
84
|
#if HAS_Z2_ENABLE
|
85
|
|
- #define enable_z() do{ Z_ENABLE_WRITE( Z_ENABLE_ON); Z2_ENABLE_WRITE(Z_ENABLE_ON); }while(0)
|
86
|
|
- #define disable_z() do{ Z_ENABLE_WRITE(!Z_ENABLE_ON); Z2_ENABLE_WRITE(!Z_ENABLE_ON); axis_known_position[Z_AXIS] = false; }while(0)
|
|
85
|
+ #define enable_Z() do{ Z_ENABLE_WRITE( Z_ENABLE_ON); Z2_ENABLE_WRITE(Z_ENABLE_ON); }while(0)
|
|
86
|
+ #define disable_Z() do{ Z_ENABLE_WRITE(!Z_ENABLE_ON); Z2_ENABLE_WRITE(!Z_ENABLE_ON); axis_known_position[Z_AXIS] = false; }while(0)
|
87
|
87
|
#elif HAS_Z_ENABLE
|
88
|
|
- #define enable_z() Z_ENABLE_WRITE( Z_ENABLE_ON)
|
89
|
|
- #define disable_z() do{ Z_ENABLE_WRITE(!Z_ENABLE_ON); axis_known_position[Z_AXIS] = false; }while(0)
|
|
88
|
+ #define enable_Z() Z_ENABLE_WRITE( Z_ENABLE_ON)
|
|
89
|
+ #define disable_Z() do{ Z_ENABLE_WRITE(!Z_ENABLE_ON); axis_known_position[Z_AXIS] = false; }while(0)
|
90
|
90
|
#else
|
91
|
|
- #define enable_z() NOOP
|
92
|
|
- #define disable_z() NOOP
|
|
91
|
+ #define enable_Z() NOOP
|
|
92
|
+ #define disable_Z() NOOP
|
93
|
93
|
#endif
|
94
|
94
|
|
95
|
95
|
#if ENABLED(MIXING_EXTRUDER)
|
|
@@ -98,64 +98,64 @@ void manage_inactivity(bool ignore_stepper_queue = false);
|
98
|
98
|
* Mixing steppers synchronize their enable (and direction) together
|
99
|
99
|
*/
|
100
|
100
|
#if MIXING_STEPPERS > 3
|
101
|
|
- #define enable_e0() { E0_ENABLE_WRITE( E_ENABLE_ON); E1_ENABLE_WRITE( E_ENABLE_ON); E2_ENABLE_WRITE( E_ENABLE_ON); E3_ENABLE_WRITE( E_ENABLE_ON); }
|
102
|
|
- #define disable_e0() { E0_ENABLE_WRITE(!E_ENABLE_ON); E1_ENABLE_WRITE(!E_ENABLE_ON); E2_ENABLE_WRITE(!E_ENABLE_ON); E3_ENABLE_WRITE(!E_ENABLE_ON); }
|
|
101
|
+ #define enable_E0() { E0_ENABLE_WRITE( E_ENABLE_ON); E1_ENABLE_WRITE( E_ENABLE_ON); E2_ENABLE_WRITE( E_ENABLE_ON); E3_ENABLE_WRITE( E_ENABLE_ON); }
|
|
102
|
+ #define disable_E0() { E0_ENABLE_WRITE(!E_ENABLE_ON); E1_ENABLE_WRITE(!E_ENABLE_ON); E2_ENABLE_WRITE(!E_ENABLE_ON); E3_ENABLE_WRITE(!E_ENABLE_ON); }
|
103
|
103
|
#elif MIXING_STEPPERS > 2
|
104
|
|
- #define enable_e0() { E0_ENABLE_WRITE( E_ENABLE_ON); E1_ENABLE_WRITE( E_ENABLE_ON); E2_ENABLE_WRITE( E_ENABLE_ON); }
|
105
|
|
- #define disable_e0() { E0_ENABLE_WRITE(!E_ENABLE_ON); E1_ENABLE_WRITE(!E_ENABLE_ON); E2_ENABLE_WRITE(!E_ENABLE_ON); }
|
|
104
|
+ #define enable_E0() { E0_ENABLE_WRITE( E_ENABLE_ON); E1_ENABLE_WRITE( E_ENABLE_ON); E2_ENABLE_WRITE( E_ENABLE_ON); }
|
|
105
|
+ #define disable_E0() { E0_ENABLE_WRITE(!E_ENABLE_ON); E1_ENABLE_WRITE(!E_ENABLE_ON); E2_ENABLE_WRITE(!E_ENABLE_ON); }
|
106
|
106
|
#else
|
107
|
|
- #define enable_e0() { E0_ENABLE_WRITE( E_ENABLE_ON); E1_ENABLE_WRITE( E_ENABLE_ON); }
|
108
|
|
- #define disable_e0() { E0_ENABLE_WRITE(!E_ENABLE_ON); E1_ENABLE_WRITE(!E_ENABLE_ON); }
|
|
107
|
+ #define enable_E0() { E0_ENABLE_WRITE( E_ENABLE_ON); E1_ENABLE_WRITE( E_ENABLE_ON); }
|
|
108
|
+ #define disable_E0() { E0_ENABLE_WRITE(!E_ENABLE_ON); E1_ENABLE_WRITE(!E_ENABLE_ON); }
|
109
|
109
|
#endif
|
110
|
|
- #define enable_e1() NOOP
|
111
|
|
- #define disable_e1() NOOP
|
112
|
|
- #define enable_e2() NOOP
|
113
|
|
- #define disable_e2() NOOP
|
114
|
|
- #define enable_e3() NOOP
|
115
|
|
- #define disable_e3() NOOP
|
116
|
|
- #define enable_e4() NOOP
|
117
|
|
- #define disable_e4() NOOP
|
|
110
|
+ #define enable_E1() NOOP
|
|
111
|
+ #define disable_E1() NOOP
|
|
112
|
+ #define enable_E2() NOOP
|
|
113
|
+ #define disable_E2() NOOP
|
|
114
|
+ #define enable_E3() NOOP
|
|
115
|
+ #define disable_E3() NOOP
|
|
116
|
+ #define enable_E4() NOOP
|
|
117
|
+ #define disable_E4() NOOP
|
118
|
118
|
|
119
|
119
|
#else // !MIXING_EXTRUDER
|
120
|
120
|
|
121
|
121
|
#if HAS_E0_ENABLE
|
122
|
|
- #define enable_e0() E0_ENABLE_WRITE( E_ENABLE_ON)
|
123
|
|
- #define disable_e0() E0_ENABLE_WRITE(!E_ENABLE_ON)
|
|
122
|
+ #define enable_E0() E0_ENABLE_WRITE( E_ENABLE_ON)
|
|
123
|
+ #define disable_E0() E0_ENABLE_WRITE(!E_ENABLE_ON)
|
124
|
124
|
#else
|
125
|
|
- #define enable_e0() NOOP
|
126
|
|
- #define disable_e0() NOOP
|
|
125
|
+ #define enable_E0() NOOP
|
|
126
|
+ #define disable_E0() NOOP
|
127
|
127
|
#endif
|
128
|
128
|
|
129
|
129
|
#if E_STEPPERS > 1 && HAS_E1_ENABLE
|
130
|
|
- #define enable_e1() E1_ENABLE_WRITE( E_ENABLE_ON)
|
131
|
|
- #define disable_e1() E1_ENABLE_WRITE(!E_ENABLE_ON)
|
|
130
|
+ #define enable_E1() E1_ENABLE_WRITE( E_ENABLE_ON)
|
|
131
|
+ #define disable_E1() E1_ENABLE_WRITE(!E_ENABLE_ON)
|
132
|
132
|
#else
|
133
|
|
- #define enable_e1() NOOP
|
134
|
|
- #define disable_e1() NOOP
|
|
133
|
+ #define enable_E1() NOOP
|
|
134
|
+ #define disable_E1() NOOP
|
135
|
135
|
#endif
|
136
|
136
|
|
137
|
137
|
#if E_STEPPERS > 2 && HAS_E2_ENABLE
|
138
|
|
- #define enable_e2() E2_ENABLE_WRITE( E_ENABLE_ON)
|
139
|
|
- #define disable_e2() E2_ENABLE_WRITE(!E_ENABLE_ON)
|
|
138
|
+ #define enable_E2() E2_ENABLE_WRITE( E_ENABLE_ON)
|
|
139
|
+ #define disable_E2() E2_ENABLE_WRITE(!E_ENABLE_ON)
|
140
|
140
|
#else
|
141
|
|
- #define enable_e2() NOOP
|
142
|
|
- #define disable_e2() NOOP
|
|
141
|
+ #define enable_E2() NOOP
|
|
142
|
+ #define disable_E2() NOOP
|
143
|
143
|
#endif
|
144
|
144
|
|
145
|
145
|
#if E_STEPPERS > 3 && HAS_E3_ENABLE
|
146
|
|
- #define enable_e3() E3_ENABLE_WRITE( E_ENABLE_ON)
|
147
|
|
- #define disable_e3() E3_ENABLE_WRITE(!E_ENABLE_ON)
|
|
146
|
+ #define enable_E3() E3_ENABLE_WRITE( E_ENABLE_ON)
|
|
147
|
+ #define disable_E3() E3_ENABLE_WRITE(!E_ENABLE_ON)
|
148
|
148
|
#else
|
149
|
|
- #define enable_e3() NOOP
|
150
|
|
- #define disable_e3() NOOP
|
|
149
|
+ #define enable_E3() NOOP
|
|
150
|
+ #define disable_E3() NOOP
|
151
|
151
|
#endif
|
152
|
152
|
|
153
|
153
|
#if E_STEPPERS > 4 && HAS_E4_ENABLE
|
154
|
|
- #define enable_e4() E4_ENABLE_WRITE( E_ENABLE_ON)
|
155
|
|
- #define disable_e4() E4_ENABLE_WRITE(!E_ENABLE_ON)
|
|
154
|
+ #define enable_E4() E4_ENABLE_WRITE( E_ENABLE_ON)
|
|
155
|
+ #define disable_E4() E4_ENABLE_WRITE(!E_ENABLE_ON)
|
156
|
156
|
#else
|
157
|
|
- #define enable_e4() NOOP
|
158
|
|
- #define disable_e4() NOOP
|
|
157
|
+ #define enable_E4() NOOP
|
|
158
|
+ #define disable_E4() NOOP
|
159
|
159
|
#endif
|
160
|
160
|
|
161
|
161
|
#endif // !MIXING_EXTRUDER
|