Browse Source

🎨 Fix pinsDebug_list warnings

Scott Lahteine 3 years ago
parent
commit
e77df72300
1 changed files with 171 additions and 127 deletions
  1. 171
    127
      Marlin/src/pins/pinsDebug_list.h

+ 171
- 127
Marlin/src/pins/pinsDebug_list.h View File

26
 // If the new pin name is over 28 characters long then pinsDebug.h will need to be modified.
26
 // If the new pin name is over 28 characters long then pinsDebug.h will need to be modified.
27
 
27
 
28
 #if TARGET_LPC1768
28
 #if TARGET_LPC1768
29
-  #define ANALOG_OK(PN) ((PN) == P0_02 || (PN) == P0_03 || (PN) == P0_23 || (PN) == P0_24 || (PN) == P0_25 || (PN) == P0_26 || (PN) == P1_30 || (PN) == P1_31)
29
+  #define ANALOG_OK(PN) (WITHIN(PN, P0_02, P0_03) || WITHIN(PN, P0_23, P0_26) || WITHIN(PN, P1_30, P1_31))
30
 #else
30
 #else
31
-  #define ANALOG_OK(PN) ((PN) >= 0 && (PN) < NUM_ANALOG_INPUTS)
31
+  #define ANALOG_OK(PN) WITHIN(PN, 0, NUM_ANALOG_INPUTS - 1)
32
 #endif
32
 #endif
33
 
33
 
34
 #line 35 // set __LINE__ to a known value for both passes
34
 #line 35 // set __LINE__ to a known value for both passes
37
 // Analog Pin Assignments
37
 // Analog Pin Assignments
38
 //
38
 //
39
 
39
 
40
-#if defined(EXT_AUX_A0) && ANALOG_OK(EXT_AUX_A0)
40
+#define _EXISTS(PN,V...) (defined(PN##V) && PN##V >= 0)
41
+
42
+#if _EXISTS(EXT_AUX_A0)
43
+  #if ANALOG_OK(EXT_AUX_A0)
41
   REPORT_NAME_ANALOG(__LINE__, EXT_AUX_A0)
44
   REPORT_NAME_ANALOG(__LINE__, EXT_AUX_A0)
42
 #endif
45
 #endif
43
-#if defined(EXT_AUX_A1) && ANALOG_OK(EXT_AUX_A0)
44
-  REPORT_NAME_ANALOG(__LINE__, EXT_AUX_A1)
45
 #endif
46
 #endif
46
-#if defined(EXT_AUX_A2) && ANALOG_OK(EXT_AUX_A0)
47
-  REPORT_NAME_ANALOG(__LINE__, EXT_AUX_A2)
47
+#if _EXISTS(EXT_AUX_A1)
48
+  #if ANALOG_OK(EXT_AUX_A0)
49
+    REPORT_NAME_ANALOG(__LINE__, EXT_AUX_A0)
50
+  #endif
48
 #endif
51
 #endif
49
-#if defined(EXT_AUX_A3) && ANALOG_OK(EXT_AUX_A0)
50
-  REPORT_NAME_ANALOG(__LINE__, EXT_AUX_A3)
52
+#if _EXISTS(EXT_AUX_A2)
53
+  #if ANALOG_OK(EXT_AUX_A0)
54
+    REPORT_NAME_ANALOG(__LINE__, EXT_AUX_A0)
55
+  #endif
56
+#endif
57
+#if _EXISTS(EXT_AUX_A3)
58
+  #if ANALOG_OK(EXT_AUX_A0)
59
+    REPORT_NAME_ANALOG(__LINE__, EXT_AUX_A0)
60
+  #endif
51
 #endif
61
 #endif
52
-#if defined(EXT_AUX_A4) && ANALOG_OK(EXT_AUX_A0)
53
-  REPORT_NAME_ANALOG(__LINE__, EXT_AUX_A4)
62
+#if _EXISTS(EXT_AUX_A4)
63
+  #if ANALOG_OK(EXT_AUX_A0)
64
+    REPORT_NAME_ANALOG(__LINE__, EXT_AUX_A0)
65
+  #endif
54
 #endif
66
 #endif
55
-#if PIN_EXISTS(FILWIDTH) && ANALOG_OK(FILWIDTH_PIN)
56
-  REPORT_NAME_ANALOG(__LINE__, FILWIDTH_PIN)
67
+#if PIN_EXISTS(FILWIDTH)
68
+  #if ANALOG_OK(FILWIDTH_PIN)
69
+    REPORT_NAME_ANALOG(__LINE__, FILWIDTH_PIN)
70
+  #endif
57
 #endif
71
 #endif
58
-#if PIN_EXISTS(MAIN_VOLTAGE_MEASURE) && ANALOG_OK(MAIN_VOLTAGE_MEASURE_PIN)
59
-  REPORT_NAME_ANALOG(__LINE__, MAIN_VOLTAGE_MEASURE_PIN)
72
+#if PIN_EXISTS(MAIN_VOLTAGE_MEASURE)
73
+  #if ANALOG_OK(MAIN_VOLTAGE_MEASURE_PIN)
74
+    REPORT_NAME_ANALOG(__LINE__, MAIN_VOLTAGE_MEASURE_PIN)
75
+  #endif
60
 #endif
76
 #endif
61
 #if !defined(ARDUINO_ARCH_SAM) && !defined(ARDUINO_ARCH_SAMD)  // TC1 & TC2 are macros in the SAM/SAMD tool chain
77
 #if !defined(ARDUINO_ARCH_SAM) && !defined(ARDUINO_ARCH_SAMD)  // TC1 & TC2 are macros in the SAM/SAMD tool chain
62
-  #if defined(TC1) && ANALOG_OK(TC1)
78
+  #if _EXISTS(TC1)
79
+    #if ANALOG_OK(TC1)
63
     REPORT_NAME_ANALOG(__LINE__, TC1)
80
     REPORT_NAME_ANALOG(__LINE__, TC1)
64
   #endif
81
   #endif
65
-  #if defined(TC2) && ANALOG_OK(TC1)
66
-    REPORT_NAME_ANALOG(__LINE__, TC2)
82
+  #endif
83
+  #if _EXISTS(TC2)
84
+    #if ANALOG_OK(TC1)
85
+      REPORT_NAME_ANALOG(__LINE__, TC1)
86
+    #endif
67
   #endif
87
   #endif
68
 #endif
88
 #endif
69
-#if PIN_EXISTS(TEMP_0) && ANALOG_OK(TEMP_0_PIN)
70
-  REPORT_NAME_ANALOG(__LINE__, TEMP_0_PIN)
89
+#if PIN_EXISTS(TEMP_0)
90
+  #if ANALOG_OK(TEMP_0_PIN)
91
+      REPORT_NAME_ANALOG(__LINE__, TEMP_0_PIN)
92
+    #endif
71
 #endif
93
 #endif
72
-#if PIN_EXISTS(TEMP_1) && ANALOG_OK(TEMP_1_PIN)
73
-  REPORT_NAME_ANALOG(__LINE__, TEMP_1_PIN)
94
+#if PIN_EXISTS(TEMP_1)
95
+  #if ANALOG_OK(TEMP_1_PIN)
96
+    REPORT_NAME_ANALOG(__LINE__, TEMP_1_PIN)
97
+  #endif
74
 #endif
98
 #endif
75
-#if PIN_EXISTS(TEMP_2) && ANALOG_OK(TEMP_2_PIN)
76
-  REPORT_NAME_ANALOG(__LINE__, TEMP_2_PIN)
99
+#if PIN_EXISTS(TEMP_2)
100
+  #if ANALOG_OK(TEMP_2_PIN)
101
+    REPORT_NAME_ANALOG(__LINE__, TEMP_2_PIN)
102
+  #endif
77
 #endif
103
 #endif
78
-#if PIN_EXISTS(TEMP_3) && ANALOG_OK(TEMP_3_PIN)
79
-  REPORT_NAME_ANALOG(__LINE__, TEMP_3_PIN)
104
+#if PIN_EXISTS(TEMP_3)
105
+  #if ANALOG_OK(TEMP_3_PIN)
106
+    REPORT_NAME_ANALOG(__LINE__, TEMP_3_PIN)
107
+  #endif
80
 #endif
108
 #endif
81
-#if PIN_EXISTS(TEMP_4) && ANALOG_OK(TEMP_4_PIN)
82
-  REPORT_NAME_ANALOG(__LINE__, TEMP_4_PIN)
109
+#if PIN_EXISTS(TEMP_4)
110
+  #if ANALOG_OK(TEMP_4_PIN)
111
+    REPORT_NAME_ANALOG(__LINE__, TEMP_4_PIN)
112
+  #endif
83
 #endif
113
 #endif
84
-#if PIN_EXISTS(TEMP_5) && ANALOG_OK(TEMP_5_PIN)
85
-  REPORT_NAME_ANALOG(__LINE__, TEMP_5_PIN)
114
+#if PIN_EXISTS(TEMP_5)
115
+  #if ANALOG_OK(TEMP_5_PIN)
116
+    REPORT_NAME_ANALOG(__LINE__, TEMP_5_PIN)
117
+  #endif
86
 #endif
118
 #endif
87
-#if PIN_EXISTS(TEMP_6) && ANALOG_OK(TEMP_6_PIN)
88
-  REPORT_NAME_ANALOG(__LINE__, TEMP_6_PIN)
119
+#if PIN_EXISTS(TEMP_6)
120
+  #if ANALOG_OK(TEMP_6_PIN)
121
+    REPORT_NAME_ANALOG(__LINE__, TEMP_6_PIN)
122
+  #endif
89
 #endif
123
 #endif
90
-#if PIN_EXISTS(TEMP_7) && ANALOG_OK(TEMP_7_PIN)
91
-  REPORT_NAME_ANALOG(__LINE__, TEMP_7_PIN)
124
+#if PIN_EXISTS(TEMP_7)
125
+  #if ANALOG_OK(TEMP_7_PIN)
126
+    REPORT_NAME_ANALOG(__LINE__, TEMP_7_PIN)
127
+  #endif
92
 #endif
128
 #endif
93
-#if PIN_EXISTS(TEMP_BED) && ANALOG_OK(TEMP_BED_PIN)
94
-  REPORT_NAME_ANALOG(__LINE__, TEMP_BED_PIN)
129
+#if PIN_EXISTS(TEMP_BED)
130
+  #if ANALOG_OK(TEMP_BED_PIN)
131
+    REPORT_NAME_ANALOG(__LINE__, TEMP_BED_PIN)
132
+  #endif
95
 #endif
133
 #endif
96
-#if PIN_EXISTS(TEMP_CHAMBER) && ANALOG_OK(TEMP_CHAMBER_PIN)
97
-  REPORT_NAME_ANALOG(__LINE__, TEMP_CHAMBER_PIN)
134
+#if PIN_EXISTS(TEMP_CHAMBER)
135
+  #if ANALOG_OK(TEMP_CHAMBER_PIN)
136
+    REPORT_NAME_ANALOG(__LINE__, TEMP_CHAMBER_PIN)
137
+  #endif
98
 #endif
138
 #endif
99
-#if PIN_EXISTS(TEMP_COOLER) && ANALOG_OK(TEMP_COOLER_PIN)
100
-  REPORT_NAME_ANALOG(__LINE__, TEMP_COOLER_PIN)
139
+#if PIN_EXISTS(TEMP_COOLER)
140
+  #if ANALOG_OK(TEMP_COOLER_PIN)
141
+    REPORT_NAME_ANALOG(__LINE__, TEMP_COOLER_PIN)
142
+  #endif
101
 #endif
143
 #endif
102
-#if PIN_EXISTS(ADC_KEYPAD) && ANALOG_OK(ADC_KEYPAD_PIN)
103
-  REPORT_NAME_ANALOG(__LINE__, ADC_KEYPAD_PIN)
144
+#if PIN_EXISTS(ADC_KEYPAD)
145
+  #if ANALOG_OK(ADC_KEYPAD_PIN)
146
+    REPORT_NAME_ANALOG(__LINE__, ADC_KEYPAD_PIN)
147
+  #endif
104
 #endif
148
 #endif
105
 
149
 
106
 //
150
 //
107
 // Digital Pin Assignments
151
 // Digital Pin Assignments
108
 //
152
 //
109
 
153
 
110
-#if defined(__FD) && __FD >= 0
154
+#if _EXISTS(__FD)
111
   REPORT_NAME_DIGITAL(__LINE__, __FD)
155
   REPORT_NAME_DIGITAL(__LINE__, __FD)
112
 #endif
156
 #endif
113
-#if defined(__FS) && __FS >= 0
157
+#if _EXISTS(__FS)
114
   REPORT_NAME_DIGITAL(__LINE__, __FS)
158
   REPORT_NAME_DIGITAL(__LINE__, __FS)
115
 #endif
159
 #endif
116
-#if defined(__GD) && __GD >= 0
160
+#if _EXISTS(__GD)
117
   REPORT_NAME_DIGITAL(__LINE__, __GD)
161
   REPORT_NAME_DIGITAL(__LINE__, __GD)
118
 #endif
162
 #endif
119
-#if defined(__GS) && __GS >= 0
163
+#if _EXISTS(__GS)
120
   REPORT_NAME_DIGITAL(__LINE__, __GS)
164
   REPORT_NAME_DIGITAL(__LINE__, __GS)
121
 #endif
165
 #endif
122
 #if PIN_EXISTS(AVR_MISO)
166
 #if PIN_EXISTS(AVR_MISO)
137
 #if PIN_EXISTS(BEEPER)
181
 #if PIN_EXISTS(BEEPER)
138
   REPORT_NAME_DIGITAL(__LINE__, BEEPER_PIN)
182
   REPORT_NAME_DIGITAL(__LINE__, BEEPER_PIN)
139
 #endif
183
 #endif
140
-#if defined(BTN_BACK) && BTN_BACK >= 0
184
+#if _EXISTS(BTN_BACK)
141
   REPORT_NAME_DIGITAL(__LINE__, BTN_BACK)
185
   REPORT_NAME_DIGITAL(__LINE__, BTN_BACK)
142
 #endif
186
 #endif
143
-#if defined(BTN_CENTER) && BTN_CENTER >= 0
187
+#if _EXISTS(BTN_CENTER)
144
   REPORT_NAME_DIGITAL(__LINE__, BTN_CENTER)
188
   REPORT_NAME_DIGITAL(__LINE__, BTN_CENTER)
145
 #endif
189
 #endif
146
-#if defined(BTN_DOWN) && BTN_DOWN >= 0
190
+#if _EXISTS(BTN_DOWN)
147
   REPORT_NAME_DIGITAL(__LINE__, BTN_DOWN)
191
   REPORT_NAME_DIGITAL(__LINE__, BTN_DOWN)
148
 #endif
192
 #endif
149
-#if defined(BTN_DWN) && BTN_DWN >= 0
193
+#if _EXISTS(BTN_DWN)
150
   REPORT_NAME_DIGITAL(__LINE__, BTN_DWN)
194
   REPORT_NAME_DIGITAL(__LINE__, BTN_DWN)
151
 #endif
195
 #endif
152
-#if defined(BTN_EN1) && BTN_EN1 >= 0
196
+#if _EXISTS(BTN_EN1)
153
   REPORT_NAME_DIGITAL(__LINE__, BTN_EN1)
197
   REPORT_NAME_DIGITAL(__LINE__, BTN_EN1)
154
 #endif
198
 #endif
155
-#if defined(BTN_EN2) && BTN_EN2 >= 0
199
+#if _EXISTS(BTN_EN2)
156
   REPORT_NAME_DIGITAL(__LINE__, BTN_EN2)
200
   REPORT_NAME_DIGITAL(__LINE__, BTN_EN2)
157
 #endif
201
 #endif
158
-#if defined(BTN_ENC_EN) && BTN_ENC_EN >= 0
202
+#if _EXISTS(BTN_ENC_EN)
159
   REPORT_NAME_DIGITAL(__LINE__, BTN_ENC_EN)
203
   REPORT_NAME_DIGITAL(__LINE__, BTN_ENC_EN)
160
 #endif
204
 #endif
161
-#if defined(BTN_ENC) && BTN_ENC >= 0
205
+#if _EXISTS(BTN_ENC)
162
   REPORT_NAME_DIGITAL(__LINE__, BTN_ENC)
206
   REPORT_NAME_DIGITAL(__LINE__, BTN_ENC)
163
 #endif
207
 #endif
164
-#if defined(BTN_HOME) && BTN_HOME >= 0
208
+#if _EXISTS(BTN_HOME)
165
   REPORT_NAME_DIGITAL(__LINE__, BTN_HOME)
209
   REPORT_NAME_DIGITAL(__LINE__, BTN_HOME)
166
 #endif
210
 #endif
167
-#if defined(BTN_LEFT) && BTN_LEFT >= 0
211
+#if _EXISTS(BTN_LEFT)
168
   REPORT_NAME_DIGITAL(__LINE__, BTN_LEFT)
212
   REPORT_NAME_DIGITAL(__LINE__, BTN_LEFT)
169
 #endif
213
 #endif
170
-#if defined(BTN_LFT) && BTN_LFT >= 0
214
+#if _EXISTS(BTN_LFT)
171
   REPORT_NAME_DIGITAL(__LINE__, BTN_LFT)
215
   REPORT_NAME_DIGITAL(__LINE__, BTN_LFT)
172
 #endif
216
 #endif
173
-#if defined(BTN_RIGHT) && BTN_RIGHT >= 0
217
+#if _EXISTS(BTN_RIGHT)
174
   REPORT_NAME_DIGITAL(__LINE__, BTN_RIGHT)
218
   REPORT_NAME_DIGITAL(__LINE__, BTN_RIGHT)
175
 #endif
219
 #endif
176
-#if defined(BTN_RT) && BTN_RT >= 0
220
+#if _EXISTS(BTN_RT)
177
   REPORT_NAME_DIGITAL(__LINE__, BTN_RT)
221
   REPORT_NAME_DIGITAL(__LINE__, BTN_RT)
178
 #endif
222
 #endif
179
-#if defined(BTN_UP) && BTN_UP >= 0
223
+#if _EXISTS(BTN_UP)
180
   REPORT_NAME_DIGITAL(__LINE__, BTN_UP)
224
   REPORT_NAME_DIGITAL(__LINE__, BTN_UP)
181
 #endif
225
 #endif
182
 #if PIN_EXISTS(JOY_X)
226
 #if PIN_EXISTS(JOY_X)
287
 #if PIN_EXISTS(CUTOFF_TEST)
331
 #if PIN_EXISTS(CUTOFF_TEST)
288
   REPORT_NAME_DIGITAL(__LINE__, CUTOFF_TEST_PIN)
332
   REPORT_NAME_DIGITAL(__LINE__, CUTOFF_TEST_PIN)
289
 #endif
333
 #endif
290
-#if defined(D57) && D57 >= 0
334
+#if _EXISTS(D57)
291
   REPORT_NAME_DIGITAL(__LINE__, D57)
335
   REPORT_NAME_DIGITAL(__LINE__, D57)
292
 #endif
336
 #endif
293
-#if defined(D58) && D58 >= 0
337
+#if _EXISTS(D58)
294
   REPORT_NAME_DIGITAL(__LINE__, D58)
338
   REPORT_NAME_DIGITAL(__LINE__, D58)
295
 #endif
339
 #endif
296
 #if PIN_EXISTS(DAC_DISABLE)
340
 #if PIN_EXISTS(DAC_DISABLE)
305
 #if PIN_EXISTS(DEBUG)
349
 #if PIN_EXISTS(DEBUG)
306
   REPORT_NAME_DIGITAL(__LINE__, DEBUG_PIN)
350
   REPORT_NAME_DIGITAL(__LINE__, DEBUG_PIN)
307
 #endif
351
 #endif
308
-#if defined(DIGIPOTS_I2C_SCL) && DIGIPOTS_I2C_SCL >= 0
352
+#if _EXISTS(DIGIPOTS_I2C_SCL)
309
   REPORT_NAME_DIGITAL(__LINE__, DIGIPOTS_I2C_SCL)
353
   REPORT_NAME_DIGITAL(__LINE__, DIGIPOTS_I2C_SCL)
310
 #endif
354
 #endif
311
-#if defined(DIGIPOTS_I2C_SDA_E0) && DIGIPOTS_I2C_SDA_E0 >= 0
355
+#if _EXISTS(DIGIPOTS_I2C_SDA_E0)
312
   REPORT_NAME_DIGITAL(__LINE__, DIGIPOTS_I2C_SDA_E0)
356
   REPORT_NAME_DIGITAL(__LINE__, DIGIPOTS_I2C_SDA_E0)
313
 #endif
357
 #endif
314
-#if defined(DIGIPOTS_I2C_SDA_E1) && DIGIPOTS_I2C_SDA_E1 >= 0
358
+#if _EXISTS(DIGIPOTS_I2C_SDA_E1)
315
   REPORT_NAME_DIGITAL(__LINE__, DIGIPOTS_I2C_SDA_E1)
359
   REPORT_NAME_DIGITAL(__LINE__, DIGIPOTS_I2C_SDA_E1)
316
 #endif
360
 #endif
317
-#if defined(DIGIPOTS_I2C_SDA_X) && DIGIPOTS_I2C_SDA_X >= 0
361
+#if _EXISTS(DIGIPOTS_I2C_SDA_X)
318
   REPORT_NAME_DIGITAL(__LINE__, DIGIPOTS_I2C_SDA_X)
362
   REPORT_NAME_DIGITAL(__LINE__, DIGIPOTS_I2C_SDA_X)
319
 #endif
363
 #endif
320
-#if defined(DIGIPOTS_I2C_SDA_Y) && DIGIPOTS_I2C_SDA_Y >= 0
364
+#if _EXISTS(DIGIPOTS_I2C_SDA_Y)
321
   REPORT_NAME_DIGITAL(__LINE__, DIGIPOTS_I2C_SDA_Y)
365
   REPORT_NAME_DIGITAL(__LINE__, DIGIPOTS_I2C_SDA_Y)
322
 #endif
366
 #endif
323
-#if defined(DIGIPOTS_I2C_SDA_Z) && DIGIPOTS_I2C_SDA_Z >= 0
367
+#if _EXISTS(DIGIPOTS_I2C_SDA_Z)
324
   REPORT_NAME_DIGITAL(__LINE__, DIGIPOTS_I2C_SDA_Z)
368
   REPORT_NAME_DIGITAL(__LINE__, DIGIPOTS_I2C_SDA_Z)
325
 #endif
369
 #endif
326
 #if PIN_EXISTS(DIGIPOTSS)
370
 #if PIN_EXISTS(DIGIPOTSS)
327
   REPORT_NAME_DIGITAL(__LINE__, DIGIPOTSS_PIN)
371
   REPORT_NAME_DIGITAL(__LINE__, DIGIPOTSS_PIN)
328
 #endif
372
 #endif
329
-#if defined(DOGLCD_A0) && DOGLCD_A0 >= 0
373
+#if _EXISTS(DOGLCD_A0)
330
   REPORT_NAME_DIGITAL(__LINE__, DOGLCD_A0)
374
   REPORT_NAME_DIGITAL(__LINE__, DOGLCD_A0)
331
 #endif
375
 #endif
332
-#if defined(DOGLCD_CS) && DOGLCD_CS >= 0
376
+#if _EXISTS(DOGLCD_CS)
333
   REPORT_NAME_DIGITAL(__LINE__, DOGLCD_CS)
377
   REPORT_NAME_DIGITAL(__LINE__, DOGLCD_CS)
334
 #endif
378
 #endif
335
-#if defined(DOGLCD_MOSI) && DOGLCD_MOSI >= 0
379
+#if _EXISTS(DOGLCD_MOSI)
336
   REPORT_NAME_DIGITAL(__LINE__, DOGLCD_MOSI)
380
   REPORT_NAME_DIGITAL(__LINE__, DOGLCD_MOSI)
337
 #endif
381
 #endif
338
-#if defined(DOGLCD_SCK) && DOGLCD_SCK >= 0
382
+#if _EXISTS(DOGLCD_SCK)
339
   REPORT_NAME_DIGITAL(__LINE__, DOGLCD_SCK)
383
   REPORT_NAME_DIGITAL(__LINE__, DOGLCD_SCK)
340
 #endif
384
 #endif
341
-#if defined(TMC_SW_MISO) && TMC_SW_MISO >= 0
385
+#if _EXISTS(TMC_SW_MISO)
342
   REPORT_NAME_DIGITAL(__LINE__, TMC_SW_MISO)
386
   REPORT_NAME_DIGITAL(__LINE__, TMC_SW_MISO)
343
 #endif
387
 #endif
344
-#if defined(TMC_SW_MOSI) && TMC_SW_MOSI >= 0
388
+#if _EXISTS(TMC_SW_MOSI)
345
   REPORT_NAME_DIGITAL(__LINE__, TMC_SW_MOSI)
389
   REPORT_NAME_DIGITAL(__LINE__, TMC_SW_MOSI)
346
 #endif
390
 #endif
347
-#if defined(TMC_SW_SCK) && TMC_SW_SCK >= 0
391
+#if _EXISTS(TMC_SW_SCK)
348
   REPORT_NAME_DIGITAL(__LINE__, TMC_SW_SCK)
392
   REPORT_NAME_DIGITAL(__LINE__, TMC_SW_SCK)
349
 #endif
393
 #endif
350
-#if defined(TFTGLCD_CS) && TFTGLCD_CS >= 0
394
+#if _EXISTS(TFTGLCD_CS)
351
   REPORT_NAME_DIGITAL(__LINE__, TFTGLCD_CS)
395
   REPORT_NAME_DIGITAL(__LINE__, TFTGLCD_CS)
352
 #endif
396
 #endif
353
 #if PIN_EXISTS(E_MUX0)
397
 #if PIN_EXISTS(E_MUX0)
557
 #if PIN_EXISTS(E7_STEP)
601
 #if PIN_EXISTS(E7_STEP)
558
   REPORT_NAME_DIGITAL(__LINE__, E7_STEP_PIN)
602
   REPORT_NAME_DIGITAL(__LINE__, E7_STEP_PIN)
559
 #endif
603
 #endif
560
-#if defined(ENET_CRS) && ENET_CRS >= 0
604
+#if _EXISTS(ENET_CRS)
561
   REPORT_NAME_DIGITAL(__LINE__, ENET_CRS)
605
   REPORT_NAME_DIGITAL(__LINE__, ENET_CRS)
562
 #endif
606
 #endif
563
-#if defined(ENET_MDIO) && ENET_MDIO >= 0
607
+#if _EXISTS(ENET_MDIO)
564
   REPORT_NAME_DIGITAL(__LINE__, ENET_MDIO)
608
   REPORT_NAME_DIGITAL(__LINE__, ENET_MDIO)
565
 #endif
609
 #endif
566
-#if defined(ENET_MOC) && ENET_MOC >= 0
610
+#if _EXISTS(ENET_MOC)
567
   REPORT_NAME_DIGITAL(__LINE__, ENET_MOC)
611
   REPORT_NAME_DIGITAL(__LINE__, ENET_MOC)
568
 #endif
612
 #endif
569
-#if defined(ENET_RX_ER) && ENET_RX_ER >= 0
613
+#if _EXISTS(ENET_RX_ER)
570
   REPORT_NAME_DIGITAL(__LINE__, ENET_RX_ER)
614
   REPORT_NAME_DIGITAL(__LINE__, ENET_RX_ER)
571
 #endif
615
 #endif
572
-#if defined(ENET_RXD0) && ENET_RXD0 >= 0
616
+#if _EXISTS(ENET_RXD0)
573
   REPORT_NAME_DIGITAL(__LINE__, ENET_RXD0)
617
   REPORT_NAME_DIGITAL(__LINE__, ENET_RXD0)
574
 #endif
618
 #endif
575
-#if defined(ENET_RXD1) && ENET_RXD1 >= 0
619
+#if _EXISTS(ENET_RXD1)
576
   REPORT_NAME_DIGITAL(__LINE__, ENET_RXD1)
620
   REPORT_NAME_DIGITAL(__LINE__, ENET_RXD1)
577
 #endif
621
 #endif
578
-#if defined(ENET_TX_EN) && ENET_TX_EN >= 0
622
+#if _EXISTS(ENET_TX_EN)
579
   REPORT_NAME_DIGITAL(__LINE__, ENET_TX_EN)
623
   REPORT_NAME_DIGITAL(__LINE__, ENET_TX_EN)
580
 #endif
624
 #endif
581
-#if defined(ENET_TXD0) && ENET_TXD0 >= 0
625
+#if _EXISTS(ENET_TXD0)
582
   REPORT_NAME_DIGITAL(__LINE__, ENET_TXD0)
626
   REPORT_NAME_DIGITAL(__LINE__, ENET_TXD0)
583
 #endif
627
 #endif
584
-#if defined(ENET_TXD1) && ENET_TXD1 >= 0
628
+#if _EXISTS(ENET_TXD1)
585
   REPORT_NAME_DIGITAL(__LINE__, ENET_TXD1)
629
   REPORT_NAME_DIGITAL(__LINE__, ENET_TXD1)
586
 #endif
630
 #endif
587
 #if PIN_EXISTS(EXP_VOLTAGE_LEVEL)
631
 #if PIN_EXISTS(EXP_VOLTAGE_LEVEL)
588
   REPORT_NAME_DIGITAL(__LINE__, EXP_VOLTAGE_LEVEL_PIN)
632
   REPORT_NAME_DIGITAL(__LINE__, EXP_VOLTAGE_LEVEL_PIN)
589
 #endif
633
 #endif
590
 
634
 
591
-#if defined(EXT_AUX_A0_IO) && EXT_AUX_A0_IO >= 0
635
+#if _EXISTS(EXT_AUX_A0_IO)
592
   REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_A0_IO)
636
   REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_A0_IO)
593
 #endif
637
 #endif
594
-#if defined(EXT_AUX_A1_IO) && EXT_AUX_A1_IO >= 0
638
+#if _EXISTS(EXT_AUX_A1_IO)
595
   REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_A1_IO)
639
   REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_A1_IO)
596
 #endif
640
 #endif
597
-#if defined(EXT_AUX_A2_IO) && EXT_AUX_A2_IO >= 0
641
+#if _EXISTS(EXT_AUX_A2_IO)
598
   REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_A2_IO)
642
   REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_A2_IO)
599
 #endif
643
 #endif
600
-#if defined(EXT_AUX_A3_IO) && EXT_AUX_A3_IO >= 0
644
+#if _EXISTS(EXT_AUX_A3_IO)
601
   REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_A3_IO)
645
   REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_A3_IO)
602
 #endif
646
 #endif
603
-#if defined(EXT_AUX_A4_IO) && EXT_AUX_A4_IO >= 0
647
+#if _EXISTS(EXT_AUX_A4_IO)
604
   REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_A4_IO)
648
   REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_A4_IO)
605
 #endif
649
 #endif
606
-#if defined(EXT_AUX_PWM_D24) && EXT_AUX_PWM_D24 >= 0
650
+#if _EXISTS(EXT_AUX_PWM_D24)
607
   REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_PWM_D24)
651
   REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_PWM_D24)
608
 #endif
652
 #endif
609
-#if defined(EXT_AUX_RX1_D2) && EXT_AUX_RX1_D2 >= 0
653
+#if _EXISTS(EXT_AUX_RX1_D2)
610
   REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_RX1_D2)
654
   REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_RX1_D2)
611
 #endif
655
 #endif
612
-#if defined(EXT_AUX_SCL_D0) && EXT_AUX_SCL_D0 >= 0
656
+#if _EXISTS(EXT_AUX_SCL_D0)
613
   REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_SCL_D0)
657
   REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_SCL_D0)
614
 #endif
658
 #endif
615
-#if defined(EXT_AUX_SDA_D1) && EXT_AUX_SDA_D1 >= 0
659
+#if _EXISTS(EXT_AUX_SDA_D1)
616
   REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_SDA_D1)
660
   REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_SDA_D1)
617
 #endif
661
 #endif
618
-#if defined(EXT_AUX_TX1_D3) && EXT_AUX_TX1_D3 >= 0
662
+#if _EXISTS(EXT_AUX_TX1_D3)
619
   REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_TX1_D3)
663
   REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_TX1_D3)
620
 #endif
664
 #endif
621
-#if defined(EXTRUDER_0_AUTO_FAN) && EXTRUDER_0_AUTO_FAN >= 0
665
+#if _EXISTS(EXTRUDER_0_AUTO_FAN)
622
   REPORT_NAME_DIGITAL(__LINE__, EXTRUDER_0_AUTO_FAN)
666
   REPORT_NAME_DIGITAL(__LINE__, EXTRUDER_0_AUTO_FAN)
623
 #endif
667
 #endif
624
-#if defined(EXTRUDER_1_AUTO_FAN) && EXTRUDER_1_AUTO_FAN >= 0
668
+#if _EXISTS(EXTRUDER_1_AUTO_FAN)
625
   REPORT_NAME_DIGITAL(__LINE__, EXTRUDER_1_AUTO_FAN)
669
   REPORT_NAME_DIGITAL(__LINE__, EXTRUDER_1_AUTO_FAN)
626
 #endif
670
 #endif
627
 #if PIN_EXISTS(FAN)
671
 #if PIN_EXISTS(FAN)
735
 #if PIN_EXISTS(LCD_BACKLIGHT)
779
 #if PIN_EXISTS(LCD_BACKLIGHT)
736
   REPORT_NAME_DIGITAL(__LINE__, LCD_BACKLIGHT_PIN)
780
   REPORT_NAME_DIGITAL(__LINE__, LCD_BACKLIGHT_PIN)
737
 #endif
781
 #endif
738
-#if defined(LCD_PINS_D4) && LCD_PINS_D4 >= 0
782
+#if _EXISTS(LCD_PINS_D4)
739
   REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_D4)
783
   REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_D4)
740
 #endif
784
 #endif
741
-#if defined(LCD_PINS_D5) && LCD_PINS_D5 >= 0
785
+#if _EXISTS(LCD_PINS_D5)
742
   REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_D5)
786
   REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_D5)
743
 #endif
787
 #endif
744
-#if defined(LCD_PINS_D6) && LCD_PINS_D6 >= 0
788
+#if _EXISTS(LCD_PINS_D6)
745
   REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_D6)
789
   REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_D6)
746
 #endif
790
 #endif
747
-#if defined(LCD_PINS_D7) && LCD_PINS_D7 >= 0
791
+#if _EXISTS(LCD_PINS_D7)
748
   REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_D7)
792
   REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_D7)
749
 #endif
793
 #endif
750
-#if defined(LCD_PINS_ENABLE) && LCD_PINS_ENABLE >= 0
794
+#if _EXISTS(LCD_PINS_ENABLE)
751
   REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_ENABLE)
795
   REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_ENABLE)
752
 #endif
796
 #endif
753
-#if defined(LCD_PINS_RS) && LCD_PINS_RS >= 0
797
+#if _EXISTS(LCD_PINS_RS)
754
   REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_RS)
798
   REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_RS)
755
 #endif
799
 #endif
756
-#if defined(LCD_SDSS) && LCD_SDSS >= 0
800
+#if _EXISTS(LCD_SDSS)
757
   REPORT_NAME_DIGITAL(__LINE__, LCD_SDSS)
801
   REPORT_NAME_DIGITAL(__LINE__, LCD_SDSS)
758
 #endif
802
 #endif
759
 #if PIN_EXISTS(LED_GREEN)
803
 #if PIN_EXISTS(LED_GREEN)
799
   REPORT_NAME_DIGITAL(__LINE__, MAX7219_LOAD_PIN)
843
   REPORT_NAME_DIGITAL(__LINE__, MAX7219_LOAD_PIN)
800
 #endif
844
 #endif
801
 
845
 
802
-// #if defined(MISO) && MISO >= 0
803
-//   REPORT_NAME_DIGITAL(__LINE__, MISO)
804
-// #endif
846
+//#if _EXISTS(MISO)
847
+//  REPORT_NAME_DIGITAL(__LINE__, MISO)
848
+//#endif
805
 #if PIN_EXISTS(MISO)
849
 #if PIN_EXISTS(MISO)
806
   REPORT_NAME_DIGITAL(__LINE__, SD_MISO_PIN)
850
   REPORT_NAME_DIGITAL(__LINE__, SD_MISO_PIN)
807
 #endif
851
 #endif
817
 #if PIN_EXISTS(MOSFET_D)
861
 #if PIN_EXISTS(MOSFET_D)
818
   REPORT_NAME_DIGITAL(__LINE__, MOSFET_D_PIN)
862
   REPORT_NAME_DIGITAL(__LINE__, MOSFET_D_PIN)
819
 #endif
863
 #endif
820
-// #if defined(MOSI) && MOSI >= 0
821
-//   REPORT_NAME_DIGITAL(__LINE__, MOSI)
822
-// #endif
864
+//#if _EXISTS(MOSI)
865
+//  REPORT_NAME_DIGITAL(__LINE__, MOSI)
866
+//#endif
823
 #if PIN_EXISTS(MOSI)
867
 #if PIN_EXISTS(MOSI)
824
   REPORT_NAME_DIGITAL(__LINE__, SD_MOSI_PIN)
868
   REPORT_NAME_DIGITAL(__LINE__, SD_MOSI_PIN)
825
 #endif
869
 #endif
862
 #if PIN_EXISTS(PWM_2)
906
 #if PIN_EXISTS(PWM_2)
863
   REPORT_NAME_DIGITAL(__LINE__, PWM_2_PIN)
907
   REPORT_NAME_DIGITAL(__LINE__, PWM_2_PIN)
864
 #endif
908
 #endif
865
-#if defined(REF_CLK) && REF_CLK >= 0
909
+#if _EXISTS(REF_CLK)
866
   REPORT_NAME_DIGITAL(__LINE__, REF_CLK)
910
   REPORT_NAME_DIGITAL(__LINE__, REF_CLK)
867
 #endif
911
 #endif
868
 #if PIN_EXISTS(RAMPS_D10)
912
 #if PIN_EXISTS(RAMPS_D10)
898
 #if PIN_EXISTS(SAFETY_TRIGGERED)
942
 #if PIN_EXISTS(SAFETY_TRIGGERED)
899
   REPORT_NAME_DIGITAL(__LINE__, SAFETY_TRIGGERED_PIN)
943
   REPORT_NAME_DIGITAL(__LINE__, SAFETY_TRIGGERED_PIN)
900
 #endif
944
 #endif
901
-// #if defined(SCK) && SCK >= 0
902
-//   REPORT_NAME_DIGITAL(__LINE__, SCK)
903
-// #endif
945
+//#if _EXISTS(SCK)
946
+//  REPORT_NAME_DIGITAL(__LINE__, SCK)
947
+//#endif
904
 #if PIN_EXISTS(SCK)
948
 #if PIN_EXISTS(SCK)
905
   REPORT_NAME_DIGITAL(__LINE__, SD_SCK_PIN)
949
   REPORT_NAME_DIGITAL(__LINE__, SD_SCK_PIN)
906
 #endif
950
 #endif
907
-// #if defined(SCL) && SCL >= 0
908
-//   REPORT_NAME_DIGITAL(__LINE__, SCL)
909
-// #endif
951
+//#if _EXISTS(SCL)
952
+//  REPORT_NAME_DIGITAL(__LINE__, SCL)
953
+//#endif
910
 #if PIN_EXISTS(SD_DETECT)
954
 #if PIN_EXISTS(SD_DETECT)
911
   REPORT_NAME_DIGITAL(__LINE__, SD_DETECT_PIN)
955
   REPORT_NAME_DIGITAL(__LINE__, SD_DETECT_PIN)
912
 #endif
956
 #endif
913
-// #if defined(SDA) && SDA >= 0
914
-//   REPORT_NAME_DIGITAL(__LINE__, SDA)
915
-// #endif
957
+//#if _EXISTS(SDA)
958
+//  REPORT_NAME_DIGITAL(__LINE__, SDA)
959
+//#endif
916
 #if PIN_EXISTS(SDPOWER)
960
 #if PIN_EXISTS(SDPOWER)
917
   REPORT_NAME_DIGITAL(__LINE__, SDPOWER_PIN)
961
   REPORT_NAME_DIGITAL(__LINE__, SDPOWER_PIN)
918
 #endif
962
 #endif
919
-#if defined(SDSS) && SDSS >= 0
963
+#if _EXISTS(SDSS)
920
   REPORT_NAME_DIGITAL(__LINE__, SDSS)
964
   REPORT_NAME_DIGITAL(__LINE__, SDSS)
921
 #endif
965
 #endif
922
-#if defined(SERVO0) && SERVO0 >= 0
966
+#if _EXISTS(SERVO0)
923
   REPORT_NAME_DIGITAL(__LINE__, SERVO0)
967
   REPORT_NAME_DIGITAL(__LINE__, SERVO0)
924
 #endif
968
 #endif
925
 #if PIN_EXISTS(SERVO0)
969
 #if PIN_EXISTS(SERVO0)
976
 #if PIN_EXISTS(SOL7)
1020
 #if PIN_EXISTS(SOL7)
977
   REPORT_NAME_DIGITAL(__LINE__, SOL7_PIN)
1021
   REPORT_NAME_DIGITAL(__LINE__, SOL7_PIN)
978
 #endif
1022
 #endif
979
-#if defined(SPARE_IO) && SPARE_IO >= 0
1023
+#if _EXISTS(SPARE_IO)
980
   REPORT_NAME_DIGITAL(__LINE__, SPARE_IO)
1024
   REPORT_NAME_DIGITAL(__LINE__, SPARE_IO)
981
 #endif
1025
 #endif
982
 #if PIN_EXISTS(SPI_EEPROM1_CS)
1026
 #if PIN_EXISTS(SPI_EEPROM1_CS)
1015
 #if PIN_EXISTS(STAT_LED_BLUE)
1059
 #if PIN_EXISTS(STAT_LED_BLUE)
1016
   REPORT_NAME_DIGITAL(__LINE__, STAT_LED_BLUE_PIN)
1060
   REPORT_NAME_DIGITAL(__LINE__, STAT_LED_BLUE_PIN)
1017
 #endif
1061
 #endif
1018
-#if defined(STAT_LED_RED_LED) && STAT_LED_RED_LED >= 0
1062
+#if _EXISTS(STAT_LED_RED_LED)
1019
   REPORT_NAME_DIGITAL(__LINE__, STAT_LED_RED_LED)
1063
   REPORT_NAME_DIGITAL(__LINE__, STAT_LED_RED_LED)
1020
 #endif
1064
 #endif
1021
 #if PIN_EXISTS(STAT_LED_RED)
1065
 #if PIN_EXISTS(STAT_LED_RED)
1069
 #if PIN_EXISTS(TX_ENABLE)
1113
 #if PIN_EXISTS(TX_ENABLE)
1070
   REPORT_NAME_DIGITAL(__LINE__, TX_ENABLE_PIN)
1114
   REPORT_NAME_DIGITAL(__LINE__, TX_ENABLE_PIN)
1071
 #endif
1115
 #endif
1072
-#if defined(UI1) && UI1 >= 0
1116
+#if _EXISTS(UI1)
1073
   REPORT_NAME_DIGITAL(__LINE__, UI1)
1117
   REPORT_NAME_DIGITAL(__LINE__, UI1)
1074
 #endif
1118
 #endif
1075
-#if defined(UI2) && UI2 >= 0
1119
+#if _EXISTS(UI2)
1076
   REPORT_NAME_DIGITAL(__LINE__, UI2)
1120
   REPORT_NAME_DIGITAL(__LINE__, UI2)
1077
 #endif
1121
 #endif
1078
-#if defined(UNUSED_PWM) && UNUSED_PWM >= 0
1122
+#if _EXISTS(UNUSED_PWM)
1079
   REPORT_NAME_DIGITAL(__LINE__, UNUSED_PWM)
1123
   REPORT_NAME_DIGITAL(__LINE__, UNUSED_PWM)
1080
 #endif
1124
 #endif
1081
 #if PIN_EXISTS(X_ATT)
1125
 #if PIN_EXISTS(X_ATT)

Loading…
Cancel
Save