|
@@ -115,7 +115,7 @@ void setup_endstop_interrupts( void ) {
|
115
|
115
|
attachInterrupt(digitalPinToInterrupt(X_MAX_PIN), endstop_ISR, CHANGE); // assign it
|
116
|
116
|
#else
|
117
|
117
|
// Not all used endstop/probe -pins can raise interrupts. Please deactivate ENDSTOP_INTERRUPTS or change the pin configuration!
|
118
|
|
- static_assert(digitalPinToPCICR(X_MAX_PIN) != NULL, "ENDSTOP_INTERRUPT_ERROR"); // if pin has no pin change interrupt - error
|
|
118
|
+ static_assert(digitalPinToPCICR(X_MAX_PIN) != NULL, "X_MAX_PIN is not interrupt-capable"); // if pin has no pin change interrupt - error
|
119
|
119
|
pciSetup(X_MAX_PIN); // assign it
|
120
|
120
|
#endif
|
121
|
121
|
#endif
|
|
@@ -125,7 +125,7 @@ void setup_endstop_interrupts( void ) {
|
125
|
125
|
attachInterrupt(digitalPinToInterrupt(X_MIN_PIN), endstop_ISR, CHANGE);
|
126
|
126
|
#else
|
127
|
127
|
// Not all used endstop/probe -pins can raise interrupts. Please deactivate ENDSTOP_INTERRUPTS or change the pin configuration!
|
128
|
|
- static_assert(digitalPinToPCICR(X_MIN_PIN) != NULL, "ENDSTOP_INTERRUPT_ERROR");
|
|
128
|
+ static_assert(digitalPinToPCICR(X_MIN_PIN) != NULL, "X_MIN_PIN is not interrupt-capable");
|
129
|
129
|
pciSetup(X_MIN_PIN);
|
130
|
130
|
#endif
|
131
|
131
|
#endif
|
|
@@ -135,7 +135,7 @@ void setup_endstop_interrupts( void ) {
|
135
|
135
|
attachInterrupt(digitalPinToInterrupt(Y_MAX_PIN), endstop_ISR, CHANGE);
|
136
|
136
|
#else
|
137
|
137
|
// Not all used endstop/probe -pins can raise interrupts. Please deactivate ENDSTOP_INTERRUPTS or change the pin configuration!
|
138
|
|
- static_assert(digitalPinToPCICR(Y_MAX_PIN) != NULL, "ENDSTOP_INTERRUPT_ERROR");
|
|
138
|
+ static_assert(digitalPinToPCICR(Y_MAX_PIN) != NULL, "Y_MAX_PIN is not interrupt-capable");
|
139
|
139
|
pciSetup(Y_MAX_PIN);
|
140
|
140
|
#endif
|
141
|
141
|
#endif
|
|
@@ -145,7 +145,7 @@ void setup_endstop_interrupts( void ) {
|
145
|
145
|
attachInterrupt(digitalPinToInterrupt(Y_MIN_PIN), endstop_ISR, CHANGE);
|
146
|
146
|
#else
|
147
|
147
|
// Not all used endstop/probe -pins can raise interrupts. Please deactivate ENDSTOP_INTERRUPTS or change the pin configuration!
|
148
|
|
- static_assert(digitalPinToPCICR(Y_MIN_PIN) != NULL, "ENDSTOP_INTERRUPT_ERROR");
|
|
148
|
+ static_assert(digitalPinToPCICR(Y_MIN_PIN) != NULL, "Y_MIN_PIN is not interrupt-capable");
|
149
|
149
|
pciSetup(Y_MIN_PIN);
|
150
|
150
|
#endif
|
151
|
151
|
#endif
|
|
@@ -155,7 +155,7 @@ void setup_endstop_interrupts( void ) {
|
155
|
155
|
attachInterrupt(digitalPinToInterrupt(Z_MAX_PIN), endstop_ISR, CHANGE);
|
156
|
156
|
#else
|
157
|
157
|
// Not all used endstop/probe -pins can raise interrupts. Please deactivate ENDSTOP_INTERRUPTS or change the pin configuration!
|
158
|
|
- static_assert(digitalPinToPCICR(Z_MAX_PIN) != NULL, "ENDSTOP_INTERRUPT_ERROR");
|
|
158
|
+ static_assert(digitalPinToPCICR(Z_MAX_PIN) != NULL, "Z_MAX_PIN is not interrupt-capable");
|
159
|
159
|
pciSetup(Z_MAX_PIN);
|
160
|
160
|
#endif
|
161
|
161
|
#endif
|
|
@@ -165,7 +165,7 @@ void setup_endstop_interrupts( void ) {
|
165
|
165
|
attachInterrupt(digitalPinToInterrupt(Z_MIN_PIN), endstop_ISR, CHANGE);
|
166
|
166
|
#else
|
167
|
167
|
// Not all used endstop/probe -pins can raise interrupts. Please deactivate ENDSTOP_INTERRUPTS or change the pin configuration!
|
168
|
|
- static_assert(digitalPinToPCICR(Z_MIN_PIN) != NULL, "ENDSTOP_INTERRUPT_ERROR");
|
|
168
|
+ static_assert(digitalPinToPCICR(Z_MIN_PIN) != NULL, "Z_MIN_PIN is not interrupt-capable");
|
169
|
169
|
pciSetup(Z_MIN_PIN);
|
170
|
170
|
#endif
|
171
|
171
|
#endif
|
|
@@ -175,7 +175,7 @@ void setup_endstop_interrupts( void ) {
|
175
|
175
|
attachInterrupt(digitalPinToInterrupt(Z2_MAX_PIN), endstop_ISR, CHANGE);
|
176
|
176
|
#else
|
177
|
177
|
// Not all used endstop/probe -pins can raise interrupts. Please deactivate ENDSTOP_INTERRUPTS or change the pin configuration!
|
178
|
|
- static_assert(digitalPinToPCICR(Z2_MAX_PIN) != NULL, "ENDSTOP_INTERRUPT_ERROR");
|
|
178
|
+ static_assert(digitalPinToPCICR(Z2_MAX_PIN) != NULL, "Z2_MAX_PIN is not interrupt-capable");
|
179
|
179
|
pciSetup(Z2_MAX_PIN);
|
180
|
180
|
#endif
|
181
|
181
|
#endif
|
|
@@ -185,7 +185,7 @@ void setup_endstop_interrupts( void ) {
|
185
|
185
|
attachInterrupt(digitalPinToInterrupt(Z2_MIN_PIN), endstop_ISR, CHANGE);
|
186
|
186
|
#else
|
187
|
187
|
// Not all used endstop/probe -pins can raise interrupts. Please deactivate ENDSTOP_INTERRUPTS or change the pin configuration!
|
188
|
|
- static_assert(digitalPinToPCICR(Z2_MIN_PIN) != NULL, "ENDSTOP_INTERRUPT_ERROR");
|
|
188
|
+ static_assert(digitalPinToPCICR(Z2_MIN_PIN) != NULL, "Z2_MIN_PIN is not interrupt-capable");
|
189
|
189
|
pciSetup(Z2_MIN_PIN);
|
190
|
190
|
#endif
|
191
|
191
|
#endif
|
|
@@ -195,7 +195,7 @@ void setup_endstop_interrupts( void ) {
|
195
|
195
|
attachInterrupt(digitalPinToInterrupt(Z_MIN_PROBE_PIN), endstop_ISR, CHANGE);
|
196
|
196
|
#else
|
197
|
197
|
// Not all used endstop/probe -pins can raise interrupts. Please deactivate ENDSTOP_INTERRUPTS or change the pin configuration!
|
198
|
|
- static_assert(digitalPinToPCICR(Z_MIN_PROBE_PIN) != NULL, "ENDSTOP_INTERRUPT_ERROR");
|
|
198
|
+ static_assert(digitalPinToPCICR(Z_MIN_PROBE_PIN) != NULL, "Z_MIN_PROBE_PIN is not interrupt-capable");
|
199
|
199
|
pciSetup(Z_MIN_PROBE_PIN);
|
200
|
200
|
#endif
|
201
|
201
|
#endif
|