|
@@ -124,7 +124,7 @@ void setup_endstop_interrupts() {
|
124
|
124
|
#if (digitalPinToInterrupt(X_MAX_PIN) != NOT_AN_INTERRUPT)
|
125
|
125
|
_ATTACH(X_MAX_PIN);
|
126
|
126
|
#else
|
127
|
|
- static_assert(digitalPinHasPCICR(X_MAX_PIN), "X_MAX_PIN is not interrupt-capable");
|
|
127
|
+ static_assert(digitalPinHasPCICR(X_MAX_PIN), "X_MAX_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
|
128
|
128
|
pciSetup(X_MAX_PIN);
|
129
|
129
|
#endif
|
130
|
130
|
#endif
|
|
@@ -132,7 +132,7 @@ void setup_endstop_interrupts() {
|
132
|
132
|
#if (digitalPinToInterrupt(X_MIN_PIN) != NOT_AN_INTERRUPT)
|
133
|
133
|
_ATTACH(X_MIN_PIN);
|
134
|
134
|
#else
|
135
|
|
- static_assert(digitalPinHasPCICR(X_MIN_PIN), "X_MIN_PIN is not interrupt-capable");
|
|
135
|
+ static_assert(digitalPinHasPCICR(X_MIN_PIN), "X_MIN_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
|
136
|
136
|
pciSetup(X_MIN_PIN);
|
137
|
137
|
#endif
|
138
|
138
|
#endif
|
|
@@ -140,7 +140,7 @@ void setup_endstop_interrupts() {
|
140
|
140
|
#if (digitalPinToInterrupt(Y_MAX_PIN) != NOT_AN_INTERRUPT)
|
141
|
141
|
_ATTACH(Y_MAX_PIN);
|
142
|
142
|
#else
|
143
|
|
- static_assert(digitalPinHasPCICR(Y_MAX_PIN), "Y_MAX_PIN is not interrupt-capable");
|
|
143
|
+ static_assert(digitalPinHasPCICR(Y_MAX_PIN), "Y_MAX_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
|
144
|
144
|
pciSetup(Y_MAX_PIN);
|
145
|
145
|
#endif
|
146
|
146
|
#endif
|
|
@@ -148,7 +148,7 @@ void setup_endstop_interrupts() {
|
148
|
148
|
#if (digitalPinToInterrupt(Y_MIN_PIN) != NOT_AN_INTERRUPT)
|
149
|
149
|
_ATTACH(Y_MIN_PIN);
|
150
|
150
|
#else
|
151
|
|
- static_assert(digitalPinHasPCICR(Y_MIN_PIN), "Y_MIN_PIN is not interrupt-capable");
|
|
151
|
+ static_assert(digitalPinHasPCICR(Y_MIN_PIN), "Y_MIN_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
|
152
|
152
|
pciSetup(Y_MIN_PIN);
|
153
|
153
|
#endif
|
154
|
154
|
#endif
|
|
@@ -156,7 +156,7 @@ void setup_endstop_interrupts() {
|
156
|
156
|
#if (digitalPinToInterrupt(Z_MAX_PIN) != NOT_AN_INTERRUPT)
|
157
|
157
|
_ATTACH(Z_MAX_PIN);
|
158
|
158
|
#else
|
159
|
|
- static_assert(digitalPinHasPCICR(Z_MAX_PIN), "Z_MAX_PIN is not interrupt-capable");
|
|
159
|
+ static_assert(digitalPinHasPCICR(Z_MAX_PIN), "Z_MAX_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
|
160
|
160
|
pciSetup(Z_MAX_PIN);
|
161
|
161
|
#endif
|
162
|
162
|
#endif
|
|
@@ -164,7 +164,7 @@ void setup_endstop_interrupts() {
|
164
|
164
|
#if (digitalPinToInterrupt(Z_MIN_PIN) != NOT_AN_INTERRUPT)
|
165
|
165
|
_ATTACH(Z_MIN_PIN);
|
166
|
166
|
#else
|
167
|
|
- static_assert(digitalPinHasPCICR(Z_MIN_PIN), "Z_MIN_PIN is not interrupt-capable");
|
|
167
|
+ static_assert(digitalPinHasPCICR(Z_MIN_PIN), "Z_MIN_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
|
168
|
168
|
pciSetup(Z_MIN_PIN);
|
169
|
169
|
#endif
|
170
|
170
|
#endif
|
|
@@ -172,7 +172,7 @@ void setup_endstop_interrupts() {
|
172
|
172
|
#if (digitalPinToInterrupt(X2_MAX_PIN) != NOT_AN_INTERRUPT)
|
173
|
173
|
_ATTACH(X2_MAX_PIN);
|
174
|
174
|
#else
|
175
|
|
- static_assert(digitalPinHasPCICR(X2_MAX_PIN), "X2_MAX_PIN is not interrupt-capable");
|
|
175
|
+ static_assert(digitalPinHasPCICR(X2_MAX_PIN), "X2_MAX_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
|
176
|
176
|
pciSetup(X2_MAX_PIN);
|
177
|
177
|
#endif
|
178
|
178
|
#endif
|
|
@@ -180,7 +180,7 @@ void setup_endstop_interrupts() {
|
180
|
180
|
#if (digitalPinToInterrupt(X2_MIN_PIN) != NOT_AN_INTERRUPT)
|
181
|
181
|
_ATTACH(X2_MIN_PIN);
|
182
|
182
|
#else
|
183
|
|
- static_assert(digitalPinHasPCICR(X2_MIN_PIN), "X2_MIN_PIN is not interrupt-capable");
|
|
183
|
+ static_assert(digitalPinHasPCICR(X2_MIN_PIN), "X2_MIN_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
|
184
|
184
|
pciSetup(X2_MIN_PIN);
|
185
|
185
|
#endif
|
186
|
186
|
#endif
|
|
@@ -188,7 +188,7 @@ void setup_endstop_interrupts() {
|
188
|
188
|
#if (digitalPinToInterrupt(Y2_MAX_PIN) != NOT_AN_INTERRUPT)
|
189
|
189
|
_ATTACH(Y2_MAX_PIN);
|
190
|
190
|
#else
|
191
|
|
- static_assert(digitalPinHasPCICR(Y2_MAX_PIN), "Y2_MAX_PIN is not interrupt-capable");
|
|
191
|
+ static_assert(digitalPinHasPCICR(Y2_MAX_PIN), "Y2_MAX_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
|
192
|
192
|
pciSetup(Y2_MAX_PIN);
|
193
|
193
|
#endif
|
194
|
194
|
#endif
|
|
@@ -196,7 +196,7 @@ void setup_endstop_interrupts() {
|
196
|
196
|
#if (digitalPinToInterrupt(Y2_MIN_PIN) != NOT_AN_INTERRUPT)
|
197
|
197
|
_ATTACH(Y2_MIN_PIN);
|
198
|
198
|
#else
|
199
|
|
- static_assert(digitalPinHasPCICR(Y2_MIN_PIN), "Y2_MIN_PIN is not interrupt-capable");
|
|
199
|
+ static_assert(digitalPinHasPCICR(Y2_MIN_PIN), "Y2_MIN_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
|
200
|
200
|
pciSetup(Y2_MIN_PIN);
|
201
|
201
|
#endif
|
202
|
202
|
#endif
|
|
@@ -204,7 +204,7 @@ void setup_endstop_interrupts() {
|
204
|
204
|
#if (digitalPinToInterrupt(Z2_MAX_PIN) != NOT_AN_INTERRUPT)
|
205
|
205
|
_ATTACH(Z2_MAX_PIN);
|
206
|
206
|
#else
|
207
|
|
- static_assert(digitalPinHasPCICR(Z2_MAX_PIN), "Z2_MAX_PIN is not interrupt-capable");
|
|
207
|
+ static_assert(digitalPinHasPCICR(Z2_MAX_PIN), "Z2_MAX_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
|
208
|
208
|
pciSetup(Z2_MAX_PIN);
|
209
|
209
|
#endif
|
210
|
210
|
#endif
|
|
@@ -212,7 +212,7 @@ void setup_endstop_interrupts() {
|
212
|
212
|
#if (digitalPinToInterrupt(Z2_MIN_PIN) != NOT_AN_INTERRUPT)
|
213
|
213
|
_ATTACH(Z2_MIN_PIN);
|
214
|
214
|
#else
|
215
|
|
- static_assert(digitalPinHasPCICR(Z2_MIN_PIN), "Z2_MIN_PIN is not interrupt-capable");
|
|
215
|
+ static_assert(digitalPinHasPCICR(Z2_MIN_PIN), "Z2_MIN_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
|
216
|
216
|
pciSetup(Z2_MIN_PIN);
|
217
|
217
|
#endif
|
218
|
218
|
#endif
|
|
@@ -220,7 +220,7 @@ void setup_endstop_interrupts() {
|
220
|
220
|
#if (digitalPinToInterrupt(Z3_MAX_PIN) != NOT_AN_INTERRUPT)
|
221
|
221
|
_ATTACH(Z3_MAX_PIN);
|
222
|
222
|
#else
|
223
|
|
- static_assert(digitalPinHasPCICR(Z3_MAX_PIN), "Z3_MAX_PIN is not interrupt-capable");
|
|
223
|
+ static_assert(digitalPinHasPCICR(Z3_MAX_PIN), "Z3_MAX_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
|
224
|
224
|
pciSetup(Z3_MAX_PIN);
|
225
|
225
|
#endif
|
226
|
226
|
#endif
|
|
@@ -228,7 +228,7 @@ void setup_endstop_interrupts() {
|
228
|
228
|
#if (digitalPinToInterrupt(Z3_MIN_PIN) != NOT_AN_INTERRUPT)
|
229
|
229
|
_ATTACH(Z3_MIN_PIN);
|
230
|
230
|
#else
|
231
|
|
- static_assert(digitalPinHasPCICR(Z3_MIN_PIN), "Z3_MIN_PIN is not interrupt-capable");
|
|
231
|
+ static_assert(digitalPinHasPCICR(Z3_MIN_PIN), "Z3_MIN_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
|
232
|
232
|
pciSetup(Z3_MIN_PIN);
|
233
|
233
|
#endif
|
234
|
234
|
#endif
|
|
@@ -236,7 +236,7 @@ void setup_endstop_interrupts() {
|
236
|
236
|
#if (digitalPinToInterrupt(Z4_MAX_PIN) != NOT_AN_INTERRUPT)
|
237
|
237
|
_ATTACH(Z4_MAX_PIN);
|
238
|
238
|
#else
|
239
|
|
- static_assert(digitalPinHasPCICR(Z4_MAX_PIN), "Z4_MAX_PIN is not interrupt-capable");
|
|
239
|
+ static_assert(digitalPinHasPCICR(Z4_MAX_PIN), "Z4_MAX_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
|
240
|
240
|
pciSetup(Z4_MAX_PIN);
|
241
|
241
|
#endif
|
242
|
242
|
#endif
|
|
@@ -244,7 +244,7 @@ void setup_endstop_interrupts() {
|
244
|
244
|
#if (digitalPinToInterrupt(Z4_MIN_PIN) != NOT_AN_INTERRUPT)
|
245
|
245
|
_ATTACH(Z4_MIN_PIN);
|
246
|
246
|
#else
|
247
|
|
- static_assert(digitalPinHasPCICR(Z4_MIN_PIN), "Z4_MIN_PIN is not interrupt-capable");
|
|
247
|
+ static_assert(digitalPinHasPCICR(Z4_MIN_PIN), "Z4_MIN_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
|
248
|
248
|
pciSetup(Z4_MIN_PIN);
|
249
|
249
|
#endif
|
250
|
250
|
#endif
|
|
@@ -252,7 +252,7 @@ void setup_endstop_interrupts() {
|
252
|
252
|
#if (digitalPinToInterrupt(Z_MIN_PROBE_PIN) != NOT_AN_INTERRUPT)
|
253
|
253
|
_ATTACH(Z_MIN_PROBE_PIN);
|
254
|
254
|
#else
|
255
|
|
- static_assert(digitalPinHasPCICR(Z_MIN_PROBE_PIN), "Z_MIN_PROBE_PIN is not interrupt-capable");
|
|
255
|
+ static_assert(digitalPinHasPCICR(Z_MIN_PROBE_PIN), "Z_MIN_PROBE_PIN is not interrupt-capable. Disable ENDSTOP_INTERRUPTS_FEATURE to continue.");
|
256
|
256
|
pciSetup(Z_MIN_PROBE_PIN);
|
257
|
257
|
#endif
|
258
|
258
|
#endif
|