Browse Source

Include pins.h in dependencies script (#19468)

Victor Oliveira 3 years ago
parent
commit
90bc1993b6
No account linked to committer's email address
100 changed files with 114 additions and 102 deletions
  1. 1
    1
      Marlin/src/pins/esp32/pins_E4D.h
  2. 1
    1
      Marlin/src/pins/esp32/pins_ESP32.h
  3. 1
    1
      Marlin/src/pins/esp32/pins_MRR_ESPA.h
  4. 1
    1
      Marlin/src/pins/esp32/pins_MRR_ESPE.h
  5. 1
    1
      Marlin/src/pins/lpc1768/pins_AZSMZ_MINI.h
  6. 1
    1
      Marlin/src/pins/lpc1768/pins_BIQU_B300_V1.0.h
  7. 1
    1
      Marlin/src/pins/lpc1768/pins_BIQU_BQ111_A4.h
  8. 4
    0
      Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h
  9. 2
    2
      Marlin/src/pins/lpc1768/pins_BTT_SKR_common.h
  10. 1
    1
      Marlin/src/pins/lpc1768/pins_GMARSH_X6_REV1.h
  11. 2
    2
      Marlin/src/pins/lpc1768/pins_MKS_SBASE.h
  12. 1
    1
      Marlin/src/pins/lpc1768/pins_MKS_SGEN_L.h
  13. 1
    1
      Marlin/src/pins/lpc1768/pins_RAMPS_RE_ARM.h
  14. 1
    1
      Marlin/src/pins/lpc1768/pins_SELENA_COMPACT.h
  15. 1
    1
      Marlin/src/pins/lpc1769/pins_AZTEEG_X5_GT.h
  16. 1
    1
      Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI.h
  17. 1
    1
      Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI_WIFI.h
  18. 1
    1
      Marlin/src/pins/lpc1769/pins_COHESION3D_MINI.h
  19. 1
    1
      Marlin/src/pins/lpc1769/pins_COHESION3D_REMIX.h
  20. 1
    1
      Marlin/src/pins/lpc1769/pins_MKS_SGEN.h
  21. 1
    1
      Marlin/src/pins/lpc1769/pins_MKS_SGEN_L_V2.h
  22. 1
    1
      Marlin/src/pins/lpc1769/pins_SMOOTHIEBOARD.h
  23. 1
    1
      Marlin/src/pins/lpc1769/pins_TH3D_EZBOARD.h
  24. 1
    1
      Marlin/src/pins/mega/pins_CHEAPTRONIC.h
  25. 1
    1
      Marlin/src/pins/mega/pins_CHEAPTRONICv2.h
  26. 1
    1
      Marlin/src/pins/mega/pins_CNCONTROLS_11.h
  27. 1
    1
      Marlin/src/pins/mega/pins_CNCONTROLS_12.h
  28. 1
    1
      Marlin/src/pins/mega/pins_CNCONTROLS_15.h
  29. 1
    1
      Marlin/src/pins/mega/pins_EINSTART-S.h
  30. 1
    1
      Marlin/src/pins/mega/pins_ELEFU_3.h
  31. 1
    1
      Marlin/src/pins/mega/pins_GT2560_REV_A.h
  32. 1
    1
      Marlin/src/pins/mega/pins_GT2560_V3.h
  33. 1
    1
      Marlin/src/pins/mega/pins_HJC2560C_REV2.h
  34. 1
    1
      Marlin/src/pins/mega/pins_INTAMSYS40.h
  35. 1
    1
      Marlin/src/pins/mega/pins_LEAPFROG.h
  36. 1
    1
      Marlin/src/pins/mega/pins_LEAPFROG_XEED2015.h
  37. 1
    1
      Marlin/src/pins/mega/pins_MEGACONTROLLER.h
  38. 1
    1
      Marlin/src/pins/mega/pins_MEGATRONICS.h
  39. 1
    1
      Marlin/src/pins/mega/pins_MEGATRONICS_2.h
  40. 1
    1
      Marlin/src/pins/mega/pins_MEGATRONICS_3.h
  41. 1
    1
      Marlin/src/pins/mega/pins_MIGHTYBOARD_REVE.h
  42. 1
    1
      Marlin/src/pins/mega/pins_MINITRONICS.h
  43. 1
    1
      Marlin/src/pins/mega/pins_OVERLORD.h
  44. 1
    1
      Marlin/src/pins/mega/pins_PICA.h
  45. 1
    1
      Marlin/src/pins/mega/pins_SILVER_GATE.h
  46. 1
    1
      Marlin/src/pins/mega/pins_WANHAO_ONEPLUS.h
  47. 7
    0
      Marlin/src/pins/pins.h
  48. 1
    1
      Marlin/src/pins/rambo/pins_EINSY_RAMBO.h
  49. 1
    1
      Marlin/src/pins/rambo/pins_EINSY_RETRO.h
  50. 1
    1
      Marlin/src/pins/rambo/pins_MINIRAMBO.h
  51. 1
    1
      Marlin/src/pins/rambo/pins_RAMBO.h
  52. 1
    1
      Marlin/src/pins/rambo/pins_SCOOVO_X9H.h
  53. 1
    1
      Marlin/src/pins/ramps/pins_AZTEEG_X3.h
  54. 1
    1
      Marlin/src/pins/ramps/pins_AZTEEG_X3_PRO.h
  55. 1
    1
      Marlin/src/pins/ramps/pins_BQ_ZUM_MEGA_3D.h
  56. 1
    1
      Marlin/src/pins/ramps/pins_DUPLICATOR_I3_PLUS.h
  57. 1
    1
      Marlin/src/pins/ramps/pins_FORMBOT_RAPTOR.h
  58. 1
    1
      Marlin/src/pins/ramps/pins_FORMBOT_TREX2PLUS.h
  59. 1
    1
      Marlin/src/pins/ramps/pins_FORMBOT_TREX3.h
  60. 1
    1
      Marlin/src/pins/ramps/pins_FYSETC_F6_13.h
  61. 1
    1
      Marlin/src/pins/ramps/pins_K8800.h
  62. 5
    4
      Marlin/src/pins/ramps/pins_RAMPS.h
  63. 1
    1
      Marlin/src/pins/ramps/pins_RAMPS_OLD.h
  64. 1
    1
      Marlin/src/pins/ramps/pins_RAMPS_PLUS.h
  65. 1
    1
      Marlin/src/pins/ramps/pins_RUMBA.h
  66. 1
    1
      Marlin/src/pins/ramps/pins_TENLOG_D3_HERO.h
  67. 1
    1
      Marlin/src/pins/ramps/pins_TRONXY_V3_1_0.h
  68. 1
    1
      Marlin/src/pins/ramps/pins_TT_OSCAR.h
  69. 1
    1
      Marlin/src/pins/ramps/pins_ULTIMAIN_2.h
  70. 1
    1
      Marlin/src/pins/ramps/pins_ULTIMAKER.h
  71. 1
    1
      Marlin/src/pins/ramps/pins_ULTIMAKER_OLD.h
  72. 1
    1
      Marlin/src/pins/ramps/pins_Z_BOLT_X_SERIES.h
  73. 1
    1
      Marlin/src/pins/sam/pins_ADSK.h
  74. 1
    1
      Marlin/src/pins/sam/pins_ALLIGATOR_R2.h
  75. 1
    1
      Marlin/src/pins/sam/pins_ARCHIM1.h
  76. 1
    1
      Marlin/src/pins/sam/pins_ARCHIM2.h
  77. 1
    1
      Marlin/src/pins/sam/pins_CNCONTROLS_15D.h
  78. 1
    1
      Marlin/src/pins/sam/pins_DUE3DOM.h
  79. 1
    1
      Marlin/src/pins/sam/pins_DUE3DOM_MINI.h
  80. 1
    1
      Marlin/src/pins/sam/pins_PRINTRBOARD_G2.h
  81. 1
    1
      Marlin/src/pins/sam/pins_RADDS.h
  82. 1
    1
      Marlin/src/pins/sam/pins_RAMPS4DUE.h
  83. 1
    1
      Marlin/src/pins/sam/pins_RAMPS_DUO.h
  84. 1
    1
      Marlin/src/pins/sam/pins_RAMPS_FD_V1.h
  85. 1
    1
      Marlin/src/pins/sam/pins_RAMPS_SMART.h
  86. 1
    1
      Marlin/src/pins/sam/pins_RURAMPS4D_11.h
  87. 1
    1
      Marlin/src/pins/sam/pins_RURAMPS4D_13.h
  88. 1
    1
      Marlin/src/pins/sam/pins_ULTRATRONICS_PRO.h
  89. 1
    1
      Marlin/src/pins/samd/pins_RAMPS_144.h
  90. 1
    1
      Marlin/src/pins/sanguino/pins_ANET_10.h
  91. 1
    1
      Marlin/src/pins/sanguino/pins_GEN3_MONOLITHIC.h
  92. 1
    1
      Marlin/src/pins/sanguino/pins_GEN3_PLUS.h
  93. 1
    1
      Marlin/src/pins/sanguino/pins_GEN6.h
  94. 1
    1
      Marlin/src/pins/sanguino/pins_GEN7_12.h
  95. 1
    1
      Marlin/src/pins/sanguino/pins_GEN7_14.h
  96. 1
    1
      Marlin/src/pins/sanguino/pins_GEN7_CUSTOM.h
  97. 1
    1
      Marlin/src/pins/sanguino/pins_OMCA.h
  98. 1
    1
      Marlin/src/pins/sanguino/pins_OMCA_A.h
  99. 1
    1
      Marlin/src/pins/sanguino/pins_SANGUINOLOLU_11.h
  100. 0
    0
      Marlin/src/pins/sanguino/pins_SETHI.h

+ 1
- 1
Marlin/src/pins/esp32/pins_E4D.h View File

@@ -27,7 +27,7 @@
27 27
  * for more info check https://atbox.tech/ and join to Facebook page E4d@box.
28 28
  */
29 29
 
30
-#ifndef ARDUINO_ARCH_ESP32
30
+#if NOT_TARGET(ARDUINO_ARCH_ESP32)
31 31
   #error "Oops! Select an ESP32 board in 'Tools > Board.'"
32 32
 #elif EXTRUDERS > 1 || E_STEPPERS > 1
33 33
   #error "E4d@box only supports one E Stepper. Comment out this line to continue."

+ 1
- 1
Marlin/src/pins/esp32/pins_ESP32.h View File

@@ -25,7 +25,7 @@
25 25
  * Espressif ESP32 (Tensilica Xtensa LX6) pin assignments
26 26
  */
27 27
 
28
-#ifndef ARDUINO_ARCH_ESP32
28
+#if NOT_TARGET(ARDUINO_ARCH_ESP32)
29 29
   "Oops! Select an ESP32 board in 'Tools > Board.'"
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/esp32/pins_MRR_ESPA.h View File

@@ -27,7 +27,7 @@
27 27
  * Supports 4 stepper drivers, heated bed, single hotend.
28 28
  */
29 29
 
30
-#ifndef ARDUINO_ARCH_ESP32
30
+#if NOT_TARGET(ARDUINO_ARCH_ESP32)
31 31
   #error "Oops! Select an ESP32 board in 'Tools > Board.'"
32 32
 #elif EXTRUDERS > 1 || E_STEPPERS > 1
33 33
   #error "MRR ESPA only supports one E Stepper. Comment out this line to continue."

+ 1
- 1
Marlin/src/pins/esp32/pins_MRR_ESPE.h View File

@@ -28,7 +28,7 @@
28 28
  * single hotend, and LCD controller.
29 29
  */
30 30
 
31
-#ifndef ARDUINO_ARCH_ESP32
31
+#if NOT_TARGET(ARDUINO_ARCH_ESP32)
32 32
   #error "Oops! Select an ESP32 board in 'Tools > Board.'"
33 33
 #elif EXTRUDERS > 2 || E_STEPPERS > 2
34 34
   #error "MRR ESPE only supports two E Steppers. Comment out this line to continue."

+ 1
- 1
Marlin/src/pins/lpc1768/pins_AZSMZ_MINI.h View File

@@ -25,7 +25,7 @@
25 25
  * AZSMZ MINI pin assignments
26 26
  */
27 27
 
28
-#ifndef MCU_LPC1768
28
+#if NOT_TARGET(MCU_LPC1768)
29 29
   #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/lpc1768/pins_BIQU_B300_V1.0.h View File

@@ -30,7 +30,7 @@
30 30
  *
31 31
  */
32 32
 
33
-#ifndef MCU_LPC1768
33
+#if NOT_TARGET(MCU_LPC1768)
34 34
   #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
35 35
 #endif
36 36
 

+ 1
- 1
Marlin/src/pins/lpc1768/pins_BIQU_BQ111_A4.h View File

@@ -30,7 +30,7 @@
30 30
  *
31 31
  */
32 32
 
33
-#ifndef MCU_LPC1768
33
+#if NOT_TARGET(MCU_LPC1768)
34 34
   #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
35 35
 #endif
36 36
 

+ 4
- 0
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h View File

@@ -25,6 +25,10 @@
25 25
   #define BOARD_INFO_NAME "BTT SKR V1.4"
26 26
 #endif
27 27
 
28
+#ifndef BOARD_CUSTOM_BUILD_FLAGS
29
+  #define BOARD_CUSTOM_BUILD_FLAGS -DLPC_PINCFG_UART3_P4_28
30
+#endif
31
+
28 32
 //
29 33
 // SD Connection
30 34
 //

+ 2
- 2
Marlin/src/pins/lpc1768/pins_BTT_SKR_common.h View File

@@ -22,10 +22,10 @@
22 22
 #pragma once
23 23
 
24 24
 #ifdef SKR_HAS_LPC1769
25
-  #ifndef MCU_LPC1769
25
+  #if NOT_TARGET(MCU_LPC1769)
26 26
     #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
27 27
   #endif
28
-#elif !defined(MCU_LPC1768)
28
+#elif NOT_TARGET(MCU_LPC1768)
29 29
   #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/lpc1768/pins_GMARSH_X6_REV1.h View File

@@ -21,7 +21,7 @@
21 21
  */
22 22
 #pragma once
23 23
 
24
-#ifndef MCU_LPC1768
24
+#if NOT_TARGET(MCU_LPC1768)
25 25
   #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
26 26
 #endif
27 27
 

+ 2
- 2
Marlin/src/pins/lpc1768/pins_MKS_SBASE.h View File

@@ -25,9 +25,9 @@
25 25
  * MKS SBASE pin assignments
26 26
  */
27 27
 
28
-#if defined(MKS_HAS_LPC1769) && !defined(MCU_LPC1769)
28
+#if defined(MKS_HAS_LPC1769) && NOT_TARGET(MCU_LPC1769)
29 29
   #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
30
-#elif !defined(MKS_HAS_LPC1769) && !defined(MCU_LPC1768)
30
+#elif NOT_TARGET(MKS_HAS_LPC1769, MCU_LPC1768)
31 31
   #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
32 32
 #endif
33 33
 

+ 1
- 1
Marlin/src/pins/lpc1768/pins_MKS_SGEN_L.h View File

@@ -25,7 +25,7 @@
25 25
  * MKS SGEN-L pin assignments
26 26
  */
27 27
 
28
-#ifndef MCU_LPC1768
28
+#if NOT_TARGET(MCU_LPC1768)
29 29
   #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/lpc1768/pins_RAMPS_RE_ARM.h View File

@@ -36,7 +36,7 @@
36 36
 
37 37
 // Numbers in parentheses () are the corresponding mega2560 pin numbers
38 38
 
39
-#ifndef MCU_LPC1768
39
+#if NOT_TARGET(MCU_LPC1768)
40 40
   #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
41 41
 #endif
42 42
 

+ 1
- 1
Marlin/src/pins/lpc1768/pins_SELENA_COMPACT.h View File

@@ -25,7 +25,7 @@
25 25
  * Selena Compact pin assignments
26 26
  */
27 27
 
28
-#ifndef MCU_LPC1768
28
+#if NOT_TARGET(MCU_LPC1768)
29 29
   #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/lpc1769/pins_AZTEEG_X5_GT.h View File

@@ -25,7 +25,7 @@
25 25
  * Azteeg X5 GT pin assignments
26 26
  */
27 27
 
28
-#ifndef MCU_LPC1769
28
+#if NOT_TARGET(MCU_LPC1769)
29 29
   #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI.h View File

@@ -25,7 +25,7 @@
25 25
  * Azteeg X5 MINI pin assignments
26 26
  */
27 27
 
28
-#ifndef MCU_LPC1769
28
+#if NOT_TARGET(MCU_LPC1769)
29 29
   #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI_WIFI.h View File

@@ -25,7 +25,7 @@
25 25
  * Azteeg X5 MINI pin assignments
26 26
  */
27 27
 
28
-#ifndef MCU_LPC1769
28
+#if NOT_TARGET(MCU_LPC1769)
29 29
   #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/lpc1769/pins_COHESION3D_MINI.h View File

@@ -25,7 +25,7 @@
25 25
  * Cohesion3D Mini pin assignments
26 26
  */
27 27
 
28
-#ifndef MCU_LPC1769
28
+#if NOT_TARGET(MCU_LPC1769)
29 29
   #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/lpc1769/pins_COHESION3D_REMIX.h View File

@@ -25,7 +25,7 @@
25 25
  * Cohesion3D ReMix pin assignments
26 26
  */
27 27
 
28
-#ifndef MCU_LPC1769
28
+#if NOT_TARGET(MCU_LPC1769)
29 29
   #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/lpc1769/pins_MKS_SGEN.h View File

@@ -29,7 +29,7 @@
29 29
  *
30 30
  */
31 31
 
32
-#ifndef MCU_LPC1769
32
+#if NOT_TARGET(MCU_LPC1769)
33 33
   #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
34 34
 #endif
35 35
 

+ 1
- 1
Marlin/src/pins/lpc1769/pins_MKS_SGEN_L_V2.h View File

@@ -25,7 +25,7 @@
25 25
  * MKS SGen pin assignments
26 26
  */
27 27
 
28
-#ifndef MCU_LPC1769
28
+#if NOT_TARGET(MCU_LPC1769)
29 29
   #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/lpc1769/pins_SMOOTHIEBOARD.h View File

@@ -25,7 +25,7 @@
25 25
  * Smoothieboard pin assignments
26 26
  */
27 27
 
28
-#ifndef MCU_LPC1769
28
+#if NOT_TARGET(MCU_LPC1769)
29 29
   #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/lpc1769/pins_TH3D_EZBOARD.h View File

@@ -25,7 +25,7 @@
25 25
  * TH3D EZBoard pin assignments
26 26
  */
27 27
 
28
-#ifndef MCU_LPC1769
28
+#if NOT_TARGET(MCU_LPC1769)
29 29
   #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/mega/pins_CHEAPTRONIC.h View File

@@ -25,7 +25,7 @@
25 25
  * Cheaptronic v1.0 pin assignments
26 26
  */
27 27
 
28
-#ifndef __AVR_ATmega2560__
28
+#if NOT_TARGET(__AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/mega/pins_CHEAPTRONICv2.h View File

@@ -27,7 +27,7 @@
27 27
  *          www.reprapobchod.cz
28 28
  */
29 29
 
30
-#ifndef __AVR_ATmega2560__
30
+#if NOT_TARGET(__AVR_ATmega2560__)
31 31
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
32 32
 #endif
33 33
 

+ 1
- 1
Marlin/src/pins/mega/pins_CNCONTROLS_11.h View File

@@ -25,7 +25,7 @@
25 25
  * CartesioV11 pin assignments
26 26
  */
27 27
 
28
-#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
28
+#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/mega/pins_CNCONTROLS_12.h View File

@@ -25,7 +25,7 @@
25 25
  * CartesioV12 pin assignments
26 26
  */
27 27
 
28
-#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
28
+#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/mega/pins_CNCONTROLS_15.h View File

@@ -25,7 +25,7 @@
25 25
  * CNControls V15 for HMS434 pin assignments
26 26
  */
27 27
 
28
-#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
28
+#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/mega/pins_EINSTART-S.h View File

@@ -26,7 +26,7 @@
26 26
  * PCB Silkscreen: 3DPrinterCon_v3.5
27 27
  */
28 28
 
29
-#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
29
+#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
30 30
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
31 31
 #endif
32 32
 

+ 1
- 1
Marlin/src/pins/mega/pins_ELEFU_3.h View File

@@ -25,7 +25,7 @@
25 25
  * Elefu RA Board Pin Assignments
26 26
  */
27 27
 
28
-#ifndef __AVR_ATmega2560__
28
+#if NOT_TARGET(__AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/mega/pins_GT2560_REV_A.h View File

@@ -27,7 +27,7 @@
27 27
  * Richard Smith <galorin@gmail.com>
28 28
  */
29 29
 
30
-#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
30
+#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
31 31
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
32 32
 #endif
33 33
 

+ 1
- 1
Marlin/src/pins/mega/pins_GT2560_V3.h View File

@@ -25,7 +25,7 @@
25 25
  * GT2560 RevB + GT2560 V3.0 + GT2560 V3.1 + GT2560 V4.0 pin assignment
26 26
  */
27 27
 
28
-#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
28
+#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/mega/pins_HJC2560C_REV2.h View File

@@ -25,7 +25,7 @@
25 25
  * HJC2560-C Rev2.x pin assignments
26 26
  */
27 27
 
28
-#ifndef __AVR_ATmega2560__
28
+#if NOT_TARGET(__AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/mega/pins_INTAMSYS40.h View File

@@ -27,7 +27,7 @@
27 27
  * 2208 version exists and may or may not work
28 28
  */
29 29
 
30
-#ifndef __AVR_ATmega2560__
30
+#if NOT_TARGET(__AVR_ATmega2560__)
31 31
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
32 32
 #endif
33 33
 

+ 1
- 1
Marlin/src/pins/mega/pins_LEAPFROG.h View File

@@ -25,7 +25,7 @@
25 25
  * Leapfrog Driver board pin assignments
26 26
  */
27 27
 
28
-#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
28
+#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Mega 1280' or 'Mega 2560' in 'Tools > Board.'"
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/mega/pins_LEAPFROG_XEED2015.h View File

@@ -29,7 +29,7 @@
29 29
  * printer models. As such this file is currently specific to the Xeed.
30 30
  */
31 31
 
32
-#ifndef __AVR_ATmega2560__
32
+#if NOT_TARGET(__AVR_ATmega2560__)
33 33
   #error "Oops! Select 'Mega 2560' in 'Tools > Board.'"
34 34
 #endif
35 35
 

+ 1
- 1
Marlin/src/pins/mega/pins_MEGACONTROLLER.h View File

@@ -25,7 +25,7 @@
25 25
  * Mega controller pin assignments
26 26
  */
27 27
 
28
-#ifndef __AVR_ATmega2560__
28
+#if NOT_TARGET(__AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #elif HOTENDS > 2 || E_STEPPERS > 2
31 31
   #error "Mega Controller supports up to 2 hotends / E-steppers. Comment out this line to continue."

+ 1
- 1
Marlin/src/pins/mega/pins_MEGATRONICS.h View File

@@ -25,7 +25,7 @@
25 25
  * MegaTronics pin assignments
26 26
  */
27 27
 
28
-#ifndef __AVR_ATmega2560__
28
+#if NOT_TARGET(__AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/mega/pins_MEGATRONICS_2.h View File

@@ -25,7 +25,7 @@
25 25
  * MegaTronics v2.0 pin assignments
26 26
  */
27 27
 
28
-#ifndef __AVR_ATmega2560__
28
+#if NOT_TARGET(__AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/mega/pins_MEGATRONICS_3.h View File

@@ -25,7 +25,7 @@
25 25
  * MegaTronics v3.0 / v3.1 / v3.2 pin assignments
26 26
  */
27 27
 
28
-#ifndef __AVR_ATmega2560__
28
+#if NOT_TARGET(__AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/mega/pins_MIGHTYBOARD_REVE.h View File

@@ -37,7 +37,7 @@
37 37
  *  number (B5) agrees with the schematic but B5 is assigned to logical pin 11.
38 38
  */
39 39
 
40
-#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
40
+#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
41 41
   #error "Oops! Select 'Mega 1280' or 'Mega 2560' in 'Tools > Board.'"
42 42
 #endif
43 43
 

+ 1
- 1
Marlin/src/pins/mega/pins_MINITRONICS.h View File

@@ -32,7 +32,7 @@
32 32
  *
33 33
  */
34 34
 
35
-#ifndef __AVR_ATmega1281__
35
+#if NOT_TARGET(__AVR_ATmega1281__)
36 36
   #error "Oops! Select 'Minitronics' in 'Tools > Board.'"
37 37
 #elif HOTENDS > 2 || E_STEPPERS > 2
38 38
   #error "Minitronics supports up to 2 hotends / E-steppers. Comment out this line to continue."

+ 1
- 1
Marlin/src/pins/mega/pins_OVERLORD.h View File

@@ -25,7 +25,7 @@
25 25
  * Dreammaker Overlord v1.1 pin assignments
26 26
  */
27 27
 
28
-#ifndef __AVR_ATmega2560__
28
+#if NOT_TARGET(__AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #elif HOTENDS > 2 || E_STEPPERS > 2
31 31
   #error "Overlord Controller supports up to 2 hotends / E-steppers. Comment out this line to continue."

+ 1
- 1
Marlin/src/pins/mega/pins_PICA.h View File

@@ -42,7 +42,7 @@
42 42
   AD12 = 66;  AD13 = 67;  AD14 = 68;  AD15 = 69;
43 43
 */
44 44
 
45
-#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
45
+#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
46 46
   #error "Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
47 47
 #endif
48 48
 

+ 1
- 1
Marlin/src/pins/mega/pins_SILVER_GATE.h View File

@@ -21,7 +21,7 @@
21 21
  */
22 22
 #pragma once
23 23
 
24
-#if !defined(__AVR_ATmega1281__) && !defined(__AVR_ATmega2561__)
24
+#if NOT_TARGET(__AVR_ATmega1281__, __AVR_ATmega2561__)
25 25
   #error "Oops! Select 'Silvergate' in 'Tools > Board.'"
26 26
 #endif
27 27
 

+ 1
- 1
Marlin/src/pins/mega/pins_WANHAO_ONEPLUS.h View File

@@ -25,7 +25,7 @@
25 25
  * Wanhao 0ne+ pin assignments
26 26
  */
27 27
 
28
-#ifndef __AVR_ATmega2560__
28
+#if NOT_TARGET(__AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #endif
31 31
 

+ 7
- 0
Marlin/src/pins/pins.h View File

@@ -51,6 +51,13 @@
51 51
 
52 52
 #define HAS_FREE_AUX2_PINS !(BOTH(ULTRA_LCD, NEWPANEL) && ANY(PANEL_ONE, VIKI2, miniVIKI, MINIPANEL, REPRAPWORLD_KEYPAD))
53 53
 
54
+// Test the target within the included pins file
55
+#ifdef __MARLIN_PREBUILD__
56
+  #define NOT_TARGET(V...) 0
57
+#else
58
+  #define NOT_TARGET(V...) NONE(V)
59
+#endif
60
+
54 61
 //
55 62
 // RAMPS 1.3 / 1.4 - ATmega1280, ATmega2560
56 63
 //

+ 1
- 1
Marlin/src/pins/rambo/pins_EINSY_RAMBO.h View File

@@ -25,7 +25,7 @@
25 25
  * Einsy-Rambo pin assignments
26 26
  */
27 27
 
28
-#ifndef __AVR_ATmega2560__
28
+#if NOT_TARGET(__AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino Mega 2560 or Rambo' in 'Tools > Board.'"
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/rambo/pins_EINSY_RETRO.h View File

@@ -25,7 +25,7 @@
25 25
  * Einsy-Retro pin assignments
26 26
  */
27 27
 
28
-#ifndef __AVR_ATmega2560__
28
+#if NOT_TARGET(__AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino Mega 2560 or Rambo' in 'Tools > Board.'"
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/rambo/pins_MINIRAMBO.h View File

@@ -25,7 +25,7 @@
25 25
  * Mini-RAMBo pin assignments
26 26
  */
27 27
 
28
-#ifndef __AVR_ATmega2560__
28
+#if NOT_TARGET(__AVR_ATmega2560__)
29 29
   #error "Oops! Select 'RAMBo' in 'Tools > Board' or the Mega2560 environment in PlatformIO."
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/rambo/pins_RAMBO.h View File

@@ -41,7 +41,7 @@
41 41
  * Rambo pin assignments
42 42
  */
43 43
 
44
-#ifndef __AVR_ATmega2560__
44
+#if NOT_TARGET(__AVR_ATmega2560__)
45 45
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
46 46
 #endif
47 47
 

+ 1
- 1
Marlin/src/pins/rambo/pins_SCOOVO_X9H.h View File

@@ -25,7 +25,7 @@
25 25
  * Rambo pin assignments MODIFIED FOR Scoovo X9H
26 26
  ************************************************/
27 27
 
28
-#ifndef __AVR_ATmega2560__
28
+#if NOT_TARGET(__AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/ramps/pins_AZTEEG_X3.h View File

@@ -25,7 +25,7 @@
25 25
  * AZTEEG_X3 Arduino Mega with RAMPS v1.4 pin assignments
26 26
  */
27 27
 
28
-#ifndef __AVR_ATmega2560__
28
+#if NOT_TARGET(__AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #elif HOTENDS > 2 || E_STEPPERS > 2
31 31
   #error "Azteeg X3 supports up to 2 hotends / E-steppers. Comment out this line to continue."

+ 1
- 1
Marlin/src/pins/ramps/pins_AZTEEG_X3_PRO.h View File

@@ -25,7 +25,7 @@
25 25
  * AZTEEG_X3_PRO (Arduino Mega) pin assignments
26 26
  */
27 27
 
28
-#ifndef __AVR_ATmega2560__
28
+#if NOT_TARGET(__AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #elif HOTENDS > 5 || E_STEPPERS > 5
31 31
   #error "Azteeg X3 Pro supports up to 5 hotends / E-steppers. Comment out this line to continue."

+ 1
- 1
Marlin/src/pins/ramps/pins_BQ_ZUM_MEGA_3D.h View File

@@ -25,7 +25,7 @@
25 25
  * bq ZUM Mega 3D board definition
26 26
  */
27 27
 
28
-#ifndef __AVR_ATmega2560__
28
+#if NOT_TARGET(__AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/ramps/pins_DUPLICATOR_I3_PLUS.h View File

@@ -25,7 +25,7 @@
25 25
  * Wanhao Duplicator i3 Plus pin assignments
26 26
  */
27 27
 
28
-#ifndef __AVR_ATmega2560__
28
+#if NOT_TARGET(__AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/ramps/pins_FORMBOT_RAPTOR.h View File

@@ -25,7 +25,7 @@
25 25
  * Formbot Raptor pin assignments
26 26
  */
27 27
 
28
-#ifndef __AVR_ATmega2560__
28
+#if NOT_TARGET(__AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #elif HOTENDS > 3 || E_STEPPERS > 3
31 31
   #error "Formbot supports up to 3 hotends / E-steppers. Comment out this line to continue."

+ 1
- 1
Marlin/src/pins/ramps/pins_FORMBOT_TREX2PLUS.h View File

@@ -25,7 +25,7 @@
25 25
  * Formbot pin assignments
26 26
  */
27 27
 
28
-#ifndef __AVR_ATmega2560__
28
+#if NOT_TARGET(__AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #elif HOTENDS > 2 || E_STEPPERS > 2
31 31
   #error "Formbot supports up to 2 hotends / E-steppers. Comment out this line to continue."

+ 1
- 1
Marlin/src/pins/ramps/pins_FORMBOT_TREX3.h View File

@@ -25,7 +25,7 @@
25 25
  * Formbot pin assignments
26 26
  */
27 27
 
28
-#ifndef __AVR_ATmega2560__
28
+#if NOT_TARGET(__AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #elif HOTENDS > 2 || E_STEPPERS > 2
31 31
   #error "Formbot supports up to 2 hotends / E-steppers. Comment out this line to continue."

+ 1
- 1
Marlin/src/pins/ramps/pins_FYSETC_F6_13.h View File

@@ -25,7 +25,7 @@
25 25
 // FYSETC F6 1.3 (and 1.4) pin assignments
26 26
 //
27 27
 
28
-#ifndef __AVR_ATmega2560__
28
+#if NOT_TARGET(__AVR_ATmega2560__)
29 29
   #error "Oops! Select 'FYSETC F6' in 'Tools > Board.'"
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/ramps/pins_K8800.h View File

@@ -25,7 +25,7 @@
25 25
  * Velleman K8800 (Vertex)
26 26
  */
27 27
 
28
-#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
28
+#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #endif
31 31
 

+ 5
- 4
Marlin/src/pins/ramps/pins_RAMPS.h View File

@@ -51,12 +51,13 @@
51 51
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
52 52
 #endif
53 53
 
54
-#if NONE(IS_RAMPS_SMART, IS_RAMPS_DUO, IS_RAMPS4DUE, TARGET_LPC1768)
55
-  #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
56
-    #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
57
-  #endif
54
+#if NOT_TARGET(IS_RAMPS_SMART, IS_RAMPS_DUO, IS_RAMPS4DUE, TARGET_LPC1768, __AVR_ATmega1280__, __AVR_ATmega2560__)
55
+  #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
58 56
 #endif
59 57
 
58
+// Custom flags and defines for the build
59
+//#define BOARD_CUSTOM_BUILD_FLAGS -D__FOO__
60
+
60 61
 #ifndef BOARD_INFO_NAME
61 62
   #define BOARD_INFO_NAME "RAMPS 1.4"
62 63
 #endif

+ 1
- 1
Marlin/src/pins/ramps/pins_RAMPS_OLD.h View File

@@ -25,7 +25,7 @@
25 25
  * Arduino Mega with RAMPS v1.0, v1.1, v1.2 pin assignments
26 26
  */
27 27
 
28
-#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
28
+#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/ramps/pins_RAMPS_PLUS.h View File

@@ -38,7 +38,7 @@
38 38
  *
39 39
  */
40 40
 
41
-#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
41
+#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
42 42
  #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
43 43
 #endif
44 44
 

+ 1
- 1
Marlin/src/pins/ramps/pins_RUMBA.h View File

@@ -25,7 +25,7 @@
25 25
  * RUMBA pin assignments
26 26
  */
27 27
 
28
-#ifndef __AVR_ATmega2560__
28
+#if NOT_TARGET(__AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #elif HOTENDS > 3 || E_STEPPERS > 3
31 31
   #error "RUMBA supports up to 3 hotends / E-steppers. Comment out this line to continue."

+ 1
- 1
Marlin/src/pins/ramps/pins_TENLOG_D3_HERO.h View File

@@ -25,7 +25,7 @@
25 25
  * Tenlog pin assignments
26 26
  */
27 27
 
28
-#ifndef __AVR_ATmega2560__
28
+#if NOT_TARGET(__AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #elif HOTENDS > 2 || E_STEPPERS > 2
31 31
   #error "Tenlog supports up to 2 hotends / E-steppers. Comment out this line to continue."

+ 1
- 1
Marlin/src/pins/ramps/pins_TRONXY_V3_1_0.h View File

@@ -25,7 +25,7 @@
25 25
  * Arduino Mega for Tronxy X5S-2E, etc.
26 26
  */
27 27
 
28
-#ifndef __AVR_ATmega2560__
28
+#if NOT_TARGET(__AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #elif HOTENDS > 2 || E_STEPPERS > 2
31 31
   #error "TRONXY-V3-1.0 supports only 2 hotends/E-steppers. Comment out this line to continue."

+ 1
- 1
Marlin/src/pins/ramps/pins_TT_OSCAR.h View File

@@ -20,7 +20,7 @@
20 20
  *
21 21
  */
22 22
 
23
-#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
23
+#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
24 24
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
25 25
 #endif
26 26
 

+ 1
- 1
Marlin/src/pins/ramps/pins_ULTIMAIN_2.h View File

@@ -33,7 +33,7 @@
33 33
  *    case light
34 34
  */
35 35
 
36
-#ifndef __AVR_ATmega2560__
36
+#if NOT_TARGET(__AVR_ATmega2560__)
37 37
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
38 38
 #endif
39 39
 

+ 1
- 1
Marlin/src/pins/ramps/pins_ULTIMAKER.h View File

@@ -33,7 +33,7 @@
33 33
  *    case light
34 34
  */
35 35
 
36
-#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
36
+#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
37 37
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
38 38
 #endif
39 39
 

+ 1
- 1
Marlin/src/pins/ramps/pins_ULTIMAKER_OLD.h View File

@@ -60,7 +60,7 @@
60 60
 //#define BOARD_REV_1_0
61 61
 //#define BOARD_REV_1_5
62 62
 
63
-#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
63
+#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
64 64
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
65 65
 #endif
66 66
 

+ 1
- 1
Marlin/src/pins/ramps/pins_Z_BOLT_X_SERIES.h View File

@@ -25,7 +25,7 @@
25 25
  *  Z-Bolt X Series board – based on Arduino Mega2560
26 26
  */
27 27
 
28
-#ifndef __AVR_ATmega2560__
28
+#if NOT_TARGET(__AVR_ATmega2560__)
29 29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 30
 #elif HOTENDS > 4 || E_STEPPERS > 4
31 31
   #error "Z-Bolt X Series board supports up to 4 hotends / E-steppers."

+ 1
- 1
Marlin/src/pins/sam/pins_ADSK.h View File

@@ -27,7 +27,7 @@
27 27
 
28 28
 #define BOARD_INFO_NAME "ADSK"
29 29
 
30
-#if !defined(__SAM3X8E__) && !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
30
+#if NOT_TARGET(__SAM3X8E__, __AVR_ATmega1280__, __AVR_ATmega2560__)
31 31
   #error "Oops! Select 'Arduino Due or Mega' in 'Tools > Board.'"
32 32
 #endif
33 33
 

+ 1
- 1
Marlin/src/pins/sam/pins_ALLIGATOR_R2.h View File

@@ -26,7 +26,7 @@
26 26
  * https://reprap.org/wiki/Alligator_Board
27 27
  */
28 28
 
29
-#ifndef __SAM3X8E__
29
+#if NOT_TARGET(__SAM3X8E__)
30 30
   #error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
31 31
 #endif
32 32
 

+ 1
- 1
Marlin/src/pins/sam/pins_ARCHIM1.h View File

@@ -37,7 +37,7 @@
37 37
  *   https://github.com/ultimachine/Archim/wiki
38 38
  */
39 39
 
40
-#ifndef __SAM3X8E__
40
+#if NOT_TARGET(__SAM3X8E__)
41 41
   #error "Oops! Select 'Archim' in 'Tools > Board.'"
42 42
 #endif
43 43
 

+ 1
- 1
Marlin/src/pins/sam/pins_ARCHIM2.h View File

@@ -37,7 +37,7 @@
37 37
  *   https://github.com/ultimachine/Archim/wiki
38 38
  */
39 39
 
40
-#ifndef __SAM3X8E__
40
+#if NOT_TARGET(__SAM3X8E__)
41 41
   #error "Oops! Select 'Archim' in 'Tools > Board.'"
42 42
 #elif DISABLED(TMC_USE_SW_SPI)
43 43
   #error "Archim2 requires Software SPI. Enable TMC_USE_SW_SPI in Configuration_adv.h."

+ 1
- 1
Marlin/src/pins/sam/pins_CNCONTROLS_15D.h View File

@@ -24,7 +24,7 @@
24 24
  * CNControls V15 for HMS434 with DUE pin assignments
25 25
  */
26 26
 
27
-#ifndef __SAM3X8E__
27
+#if NOT_TARGET(__SAM3X8E__)
28 28
   #error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
29 29
 #endif
30 30
 

+ 1
- 1
Marlin/src/pins/sam/pins_DUE3DOM.h View File

@@ -25,7 +25,7 @@
25 25
  * DUE3DOM pin assignments
26 26
  */
27 27
 
28
-#ifndef __SAM3X8E__
28
+#if NOT_TARGET(__SAM3X8E__)
29 29
   #error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/sam/pins_DUE3DOM_MINI.h View File

@@ -25,7 +25,7 @@
25 25
  * DUE3DOM MINI pin assignments
26 26
  */
27 27
 
28
-#ifndef __SAM3X8E__
28
+#if NOT_TARGET(__SAM3X8E__)
29 29
   #error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/sam/pins_PRINTRBOARD_G2.h View File

@@ -25,7 +25,7 @@
25 25
  * PRINTRBOARD_G2
26 26
  */
27 27
 
28
-#ifndef __SAM3X8E__
28
+#if NOT_TARGET(__SAM3X8E__)
29 29
   #error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/sam/pins_RADDS.h View File

@@ -25,7 +25,7 @@
25 25
  * RADDS
26 26
  */
27 27
 
28
-#ifndef __SAM3X8E__
28
+#if NOT_TARGET(__SAM3X8E__)
29 29
   #error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/sam/pins_RAMPS4DUE.h View File

@@ -39,7 +39,7 @@
39 39
  *       A15 | NC
40 40
  */
41 41
 
42
-#if !defined(__SAM3X8E__) && !defined(__AVR_ATmega2560__)
42
+#if NOT_TARGET(__SAM3X8E__, __AVR_ATmega2560__)
43 43
   #error "Oops! Select 'Arduino Due' or 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
44 44
 #endif
45 45
 

+ 1
- 1
Marlin/src/pins/sam/pins_RAMPS_DUO.h View File

@@ -43,7 +43,7 @@
43 43
  *       A15 | A11
44 44
  */
45 45
 
46
-#if !defined(__SAM3X8E__) && !defined(__AVR_ATmega2560__)
46
+#if NOT_TARGET(__SAM3X8E__, __AVR_ATmega2560__)
47 47
   #error "Oops! Select 'Arduino Due' or 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
48 48
 #endif
49 49
 

+ 1
- 1
Marlin/src/pins/sam/pins_RAMPS_FD_V1.h View File

@@ -28,7 +28,7 @@
28 28
  * Use 4k7 thermistor tables
29 29
  */
30 30
 
31
-#ifndef __SAM3X8E__
31
+#if NOT_TARGET(__SAM3X8E__)
32 32
   #error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
33 33
 #endif
34 34
 

+ 1
- 1
Marlin/src/pins/sam/pins_RAMPS_SMART.h View File

@@ -60,7 +60,7 @@
60 60
  * (Search the web for "Arduino DUE Board Pinout" to see the correct header.)
61 61
  */
62 62
 
63
-#ifndef __SAM3X8E__
63
+#if NOT_TARGET(__SAM3X8E__)
64 64
   #error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
65 65
 #endif
66 66
 

+ 1
- 1
Marlin/src/pins/sam/pins_RURAMPS4D_11.h View File

@@ -32,7 +32,7 @@
32 32
  *           |
33 33
  */
34 34
 
35
-#ifndef __SAM3X8E__
35
+#if NOT_TARGET(__SAM3X8E__)
36 36
   #error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
37 37
 #endif
38 38
 

+ 1
- 1
Marlin/src/pins/sam/pins_RURAMPS4D_13.h View File

@@ -32,7 +32,7 @@
32 32
  *           |
33 33
  */
34 34
 
35
-#ifndef __SAM3X8E__
35
+#if NOT_TARGET(__SAM3X8E__)
36 36
   #error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
37 37
 #endif
38 38
 

+ 1
- 1
Marlin/src/pins/sam/pins_ULTRATRONICS_PRO.h View File

@@ -26,7 +26,7 @@
26 26
  * https://reprapworld.com/documentation/datasheet_ultratronics10_05.pdf
27 27
  */
28 28
 
29
-#ifndef ARDUINO_ARCH_SAM
29
+#if NOT_TARGET(ARDUINO_ARCH_SAM)
30 30
   #error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
31 31
 #endif
32 32
 

+ 1
- 1
Marlin/src/pins/samd/pins_RAMPS_144.h View File

@@ -25,7 +25,7 @@
25 25
  * AGCM4 with RAMPS v1.4.4 pin assignments
26 26
  */
27 27
 
28
-#ifndef ARDUINO_GRAND_CENTRAL_M4
28
+#if NOT_TARGET(ARDUINO_GRAND_CENTRAL_M4)
29 29
   #error "Oops! Select 'Adafruit Grand Central M4' in 'Tools > Board.'"
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/sanguino/pins_ANET_10.h View File

@@ -89,7 +89,7 @@
89 89
  *   Many thanks to Hans Raaf (@oderwat) for developing the Anet-specific software and supporting the Anet community.
90 90
  */
91 91
 
92
-#ifndef __AVR_ATmega1284P__
92
+#if NOT_TARGET(__AVR_ATmega1284P__)
93 93
   #error "Oops! Select 'Sanguino' in 'Tools > Board' and 'ATmega1284P' in 'Tools > Processor.' (For PlatformIO, use 'melzi' or 'melzi_optiboot.')"
94 94
 #endif
95 95
 

+ 1
- 1
Marlin/src/pins/sanguino/pins_GEN3_MONOLITHIC.h View File

@@ -50,7 +50,7 @@
50 50
  *
51 51
  */
52 52
 
53
-#ifndef __AVR_ATmega644P__
53
+#if NOT_TARGET(__AVR_ATmega644P__)
54 54
   #error "Oops! Select 'Sanguino' in 'Tools > Board.'"
55 55
 #endif
56 56
 

+ 1
- 1
Marlin/src/pins/sanguino/pins_GEN3_PLUS.h View File

@@ -50,7 +50,7 @@
50 50
  *
51 51
  */
52 52
 
53
-#if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega1284P__)
53
+#if NOT_TARGET(__AVR_ATmega644P__, __AVR_ATmega1284P__)
54 54
   #error "Oops! Select 'Sanguino' in 'Tools > Boards' and 'ATmega644P' or 'ATmega1284P' in 'Tools > Processor.'"
55 55
 #endif
56 56
 

+ 1
- 1
Marlin/src/pins/sanguino/pins_GEN6.h View File

@@ -52,7 +52,7 @@
52 52
  *
53 53
  */
54 54
 
55
-#if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega1284P__)
55
+#if NOT_TARGET(__AVR_ATmega644P__, __AVR_ATmega1284P__)
56 56
   #error "Oops! Select 'Sanguino' in 'Tools > Boards' and 'ATmega644P' or 'ATmega1284P' in 'Tools > Processor.'"
57 57
 #endif
58 58
 

+ 1
- 1
Marlin/src/pins/sanguino/pins_GEN7_12.h View File

@@ -52,7 +52,7 @@
52 52
  *
53 53
  */
54 54
 
55
-#if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
55
+#if NOT_TARGET(__AVR_ATmega644P__, __AVR_ATmega644__, __AVR_ATmega1284P__)
56 56
   #error "Oops! Select 'Sanguino' in 'Tools > Boards' and 'ATmega644', 'ATmega644P', or 'ATmega1284P' in 'Tools > Processor.'"
57 57
 #endif
58 58
 

+ 1
- 1
Marlin/src/pins/sanguino/pins_GEN7_14.h View File

@@ -52,7 +52,7 @@
52 52
  *
53 53
  */
54 54
 
55
-#if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
55
+#if NOT_TARGET(__AVR_ATmega644P__, __AVR_ATmega644__, __AVR_ATmega1284P__)
56 56
   #error "Oops! Select 'Sanguino' in 'Tools > Boards' and 'ATmega644', 'ATmega644P', or 'ATmega1284P' in 'Tools > Processor.'"
57 57
 #endif
58 58
 

+ 1
- 1
Marlin/src/pins/sanguino/pins_GEN7_CUSTOM.h View File

@@ -55,7 +55,7 @@
55 55
  *
56 56
  */
57 57
 
58
-#if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
58
+#if NOT_TARGET(__AVR_ATmega644P__, __AVR_ATmega644__, __AVR_ATmega1284P__)
59 59
   #error "Oops! Select 'Sanguino' in 'Tools > Boards' and 'ATmega644', 'ATmega644P', or 'ATmega1284P' in 'Tools > Processor.'"
60 60
 #endif
61 61
 

+ 1
- 1
Marlin/src/pins/sanguino/pins_OMCA.h View File

@@ -77,7 +77,7 @@
77 77
  *
78 78
  */
79 79
 
80
-#if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__)
80
+#if NOT_TARGET(__AVR_ATmega644P__, __AVR_ATmega644__)
81 81
   #error "Oops! Select 'Sanguino' in 'Tools > Board' and 'ATmega644' or 'ATmega644P' in 'Tools > Processor.'"
82 82
 #endif
83 83
 

+ 1
- 1
Marlin/src/pins/sanguino/pins_OMCA_A.h View File

@@ -76,7 +76,7 @@
76 76
  *
77 77
  */
78 78
 
79
-#ifndef __AVR_ATmega644__
79
+#if NOT_TARGET(__AVR_ATmega644__)
80 80
   #error "Oops! Select 'Sanguino' in 'Tools > Board' and ATmega644 in 'Tools > Processor.'"
81 81
 #endif
82 82
 

+ 1
- 1
Marlin/src/pins/sanguino/pins_SANGUINOLOLU_11.h View File

@@ -52,7 +52,7 @@
52 52
  *
53 53
  */
54 54
 
55
-#if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega1284P__)
55
+#if NOT_TARGET(__AVR_ATmega644P__, __AVR_ATmega1284P__)
56 56
   #error "Oops! Select 'Sanguino' in 'Tools > Boards' and 'ATmega644P' or 'ATmega1284P' in 'Tools > Processor.'"
57 57
 #endif
58 58
 

+ 0
- 0
Marlin/src/pins/sanguino/pins_SETHI.h View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save