浏览代码

Include pins.h in dependencies script (#19468)

Victor Oliveira 4 年前
父节点
当前提交
90bc1993b6
没有帐户链接到提交者的电子邮件
共有 100 个文件被更改,包括 114 次插入102 次删除
  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 查看文件

27
  * for more info check https://atbox.tech/ and join to Facebook page E4d@box.
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
   #error "Oops! Select an ESP32 board in 'Tools > Board.'"
31
   #error "Oops! Select an ESP32 board in 'Tools > Board.'"
32
 #elif EXTRUDERS > 1 || E_STEPPERS > 1
32
 #elif EXTRUDERS > 1 || E_STEPPERS > 1
33
   #error "E4d@box only supports one E Stepper. Comment out this line to continue."
33
   #error "E4d@box only supports one E Stepper. Comment out this line to continue."

+ 1
- 1
Marlin/src/pins/esp32/pins_ESP32.h 查看文件

25
  * Espressif ESP32 (Tensilica Xtensa LX6) pin assignments
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
   "Oops! Select an ESP32 board in 'Tools > Board.'"
29
   "Oops! Select an ESP32 board in 'Tools > Board.'"
30
 #endif
30
 #endif
31
 
31
 

+ 1
- 1
Marlin/src/pins/esp32/pins_MRR_ESPA.h 查看文件

27
  * Supports 4 stepper drivers, heated bed, single hotend.
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
   #error "Oops! Select an ESP32 board in 'Tools > Board.'"
31
   #error "Oops! Select an ESP32 board in 'Tools > Board.'"
32
 #elif EXTRUDERS > 1 || E_STEPPERS > 1
32
 #elif EXTRUDERS > 1 || E_STEPPERS > 1
33
   #error "MRR ESPA only supports one E Stepper. Comment out this line to continue."
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 查看文件

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

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

+ 1
- 1
Marlin/src/pins/lpc1768/pins_BIQU_B300_V1.0.h 查看文件

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

+ 1
- 1
Marlin/src/pins/lpc1768/pins_BIQU_BQ111_A4.h 查看文件

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

+ 4
- 0
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h 查看文件

25
   #define BOARD_INFO_NAME "BTT SKR V1.4"
25
   #define BOARD_INFO_NAME "BTT SKR V1.4"
26
 #endif
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
 // SD Connection
33
 // SD Connection
30
 //
34
 //

+ 2
- 2
Marlin/src/pins/lpc1768/pins_BTT_SKR_common.h 查看文件

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

+ 1
- 1
Marlin/src/pins/lpc1768/pins_GMARSH_X6_REV1.h 查看文件

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

+ 2
- 2
Marlin/src/pins/lpc1768/pins_MKS_SBASE.h 查看文件

25
  * MKS SBASE pin assignments
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
   #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
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
   #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
31
   #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
32
 #endif
32
 #endif
33
 
33
 

+ 1
- 1
Marlin/src/pins/lpc1768/pins_MKS_SGEN_L.h 查看文件

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

+ 1
- 1
Marlin/src/pins/lpc1768/pins_RAMPS_RE_ARM.h 查看文件

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

+ 1
- 1
Marlin/src/pins/lpc1768/pins_SELENA_COMPACT.h 查看文件

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

+ 1
- 1
Marlin/src/pins/lpc1769/pins_AZTEEG_X5_GT.h 查看文件

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

+ 1
- 1
Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI.h 查看文件

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

+ 1
- 1
Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI_WIFI.h 查看文件

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

+ 1
- 1
Marlin/src/pins/lpc1769/pins_COHESION3D_MINI.h 查看文件

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

+ 1
- 1
Marlin/src/pins/lpc1769/pins_COHESION3D_REMIX.h 查看文件

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

+ 1
- 1
Marlin/src/pins/lpc1769/pins_MKS_SGEN.h 查看文件

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

+ 1
- 1
Marlin/src/pins/lpc1769/pins_MKS_SGEN_L_V2.h 查看文件

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

+ 1
- 1
Marlin/src/pins/lpc1769/pins_SMOOTHIEBOARD.h 查看文件

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

+ 1
- 1
Marlin/src/pins/lpc1769/pins_TH3D_EZBOARD.h 查看文件

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

+ 1
- 1
Marlin/src/pins/mega/pins_CHEAPTRONIC.h 查看文件

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

+ 1
- 1
Marlin/src/pins/mega/pins_CHEAPTRONICv2.h 查看文件

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

+ 1
- 1
Marlin/src/pins/mega/pins_CNCONTROLS_11.h 查看文件

25
  * CartesioV11 pin assignments
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
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30
 #endif
30
 #endif
31
 
31
 

+ 1
- 1
Marlin/src/pins/mega/pins_CNCONTROLS_12.h 查看文件

25
  * CartesioV12 pin assignments
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
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30
 #endif
30
 #endif
31
 
31
 

+ 1
- 1
Marlin/src/pins/mega/pins_CNCONTROLS_15.h 查看文件

25
  * CNControls V15 for HMS434 pin assignments
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
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30
 #endif
30
 #endif
31
 
31
 

+ 1
- 1
Marlin/src/pins/mega/pins_EINSTART-S.h 查看文件

26
  * PCB Silkscreen: 3DPrinterCon_v3.5
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
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
31
 #endif
31
 #endif
32
 
32
 

+ 1
- 1
Marlin/src/pins/mega/pins_ELEFU_3.h 查看文件

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

+ 1
- 1
Marlin/src/pins/mega/pins_GT2560_REV_A.h 查看文件

27
  * Richard Smith <galorin@gmail.com>
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
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
31
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
32
 #endif
32
 #endif
33
 
33
 

+ 1
- 1
Marlin/src/pins/mega/pins_GT2560_V3.h 查看文件

25
  * GT2560 RevB + GT2560 V3.0 + GT2560 V3.1 + GT2560 V4.0 pin assignment
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
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30
 #endif
30
 #endif
31
 
31
 

+ 1
- 1
Marlin/src/pins/mega/pins_HJC2560C_REV2.h 查看文件

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

+ 1
- 1
Marlin/src/pins/mega/pins_INTAMSYS40.h 查看文件

27
  * 2208 version exists and may or may not work
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
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
31
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
32
 #endif
32
 #endif
33
 
33
 

+ 1
- 1
Marlin/src/pins/mega/pins_LEAPFROG.h 查看文件

25
  * Leapfrog Driver board pin assignments
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
   #error "Oops! Select 'Mega 1280' or 'Mega 2560' in 'Tools > Board.'"
29
   #error "Oops! Select 'Mega 1280' or 'Mega 2560' in 'Tools > Board.'"
30
 #endif
30
 #endif
31
 
31
 

+ 1
- 1
Marlin/src/pins/mega/pins_LEAPFROG_XEED2015.h 查看文件

29
  * printer models. As such this file is currently specific to the Xeed.
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
   #error "Oops! Select 'Mega 2560' in 'Tools > Board.'"
33
   #error "Oops! Select 'Mega 2560' in 'Tools > Board.'"
34
 #endif
34
 #endif
35
 
35
 

+ 1
- 1
Marlin/src/pins/mega/pins_MEGACONTROLLER.h 查看文件

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

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

+ 1
- 1
Marlin/src/pins/mega/pins_MEGATRONICS_2.h 查看文件

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

+ 1
- 1
Marlin/src/pins/mega/pins_MEGATRONICS_3.h 查看文件

25
  * MegaTronics v3.0 / v3.1 / v3.2 pin assignments
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
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30
 #endif
30
 #endif
31
 
31
 

+ 1
- 1
Marlin/src/pins/mega/pins_MIGHTYBOARD_REVE.h 查看文件

37
  *  number (B5) agrees with the schematic but B5 is assigned to logical pin 11.
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
   #error "Oops! Select 'Mega 1280' or 'Mega 2560' in 'Tools > Board.'"
41
   #error "Oops! Select 'Mega 1280' or 'Mega 2560' in 'Tools > Board.'"
42
 #endif
42
 #endif
43
 
43
 

+ 1
- 1
Marlin/src/pins/mega/pins_MINITRONICS.h 查看文件

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

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

42
   AD12 = 66;  AD13 = 67;  AD14 = 68;  AD15 = 69;
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
   #error "Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
46
   #error "Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
47
 #endif
47
 #endif
48
 
48
 

+ 1
- 1
Marlin/src/pins/mega/pins_SILVER_GATE.h 查看文件

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

+ 1
- 1
Marlin/src/pins/mega/pins_WANHAO_ONEPLUS.h 查看文件

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

+ 7
- 0
Marlin/src/pins/pins.h 查看文件

51
 
51
 
52
 #define HAS_FREE_AUX2_PINS !(BOTH(ULTRA_LCD, NEWPANEL) && ANY(PANEL_ONE, VIKI2, miniVIKI, MINIPANEL, REPRAPWORLD_KEYPAD))
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
 // RAMPS 1.3 / 1.4 - ATmega1280, ATmega2560
62
 // RAMPS 1.3 / 1.4 - ATmega1280, ATmega2560
56
 //
63
 //

+ 1
- 1
Marlin/src/pins/rambo/pins_EINSY_RAMBO.h 查看文件

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

+ 1
- 1
Marlin/src/pins/rambo/pins_EINSY_RETRO.h 查看文件

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

+ 1
- 1
Marlin/src/pins/rambo/pins_MINIRAMBO.h 查看文件

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

+ 1
- 1
Marlin/src/pins/rambo/pins_RAMBO.h 查看文件

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

+ 1
- 1
Marlin/src/pins/rambo/pins_SCOOVO_X9H.h 查看文件

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

+ 1
- 1
Marlin/src/pins/ramps/pins_AZTEEG_X3.h 查看文件

25
  * AZTEEG_X3 Arduino Mega with RAMPS v1.4 pin assignments
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
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30
 #elif HOTENDS > 2 || E_STEPPERS > 2
30
 #elif HOTENDS > 2 || E_STEPPERS > 2
31
   #error "Azteeg X3 supports up to 2 hotends / E-steppers. Comment out this line to continue."
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 查看文件

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

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

+ 1
- 1
Marlin/src/pins/ramps/pins_DUPLICATOR_I3_PLUS.h 查看文件

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

+ 1
- 1
Marlin/src/pins/ramps/pins_FORMBOT_RAPTOR.h 查看文件

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

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

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

25
 // FYSETC F6 1.3 (and 1.4) pin assignments
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
   #error "Oops! Select 'FYSETC F6' in 'Tools > Board.'"
29
   #error "Oops! Select 'FYSETC F6' in 'Tools > Board.'"
30
 #endif
30
 #endif
31
 
31
 

+ 1
- 1
Marlin/src/pins/ramps/pins_K8800.h 查看文件

25
  * Velleman K8800 (Vertex)
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
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30
 #endif
30
 #endif
31
 
31
 

+ 5
- 4
Marlin/src/pins/ramps/pins_RAMPS.h 查看文件

51
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
51
   #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
52
 #endif
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
 #endif
56
 #endif
59
 
57
 
58
+// Custom flags and defines for the build
59
+//#define BOARD_CUSTOM_BUILD_FLAGS -D__FOO__
60
+
60
 #ifndef BOARD_INFO_NAME
61
 #ifndef BOARD_INFO_NAME
61
   #define BOARD_INFO_NAME "RAMPS 1.4"
62
   #define BOARD_INFO_NAME "RAMPS 1.4"
62
 #endif
63
 #endif

+ 1
- 1
Marlin/src/pins/ramps/pins_RAMPS_OLD.h 查看文件

25
  * Arduino Mega with RAMPS v1.0, v1.1, v1.2 pin assignments
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
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30
 #endif
30
 #endif
31
 
31
 

+ 1
- 1
Marlin/src/pins/ramps/pins_RAMPS_PLUS.h 查看文件

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

+ 1
- 1
Marlin/src/pins/ramps/pins_RUMBA.h 查看文件

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

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

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

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

+ 1
- 1
Marlin/src/pins/ramps/pins_ULTIMAIN_2.h 查看文件

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

+ 1
- 1
Marlin/src/pins/ramps/pins_ULTIMAKER.h 查看文件

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

+ 1
- 1
Marlin/src/pins/ramps/pins_ULTIMAKER_OLD.h 查看文件

60
 //#define BOARD_REV_1_0
60
 //#define BOARD_REV_1_0
61
 //#define BOARD_REV_1_5
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
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
64
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
65
 #endif
65
 #endif
66
 
66
 

+ 1
- 1
Marlin/src/pins/ramps/pins_Z_BOLT_X_SERIES.h 查看文件

25
  *  Z-Bolt X Series board – based on Arduino Mega2560
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
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
29
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30
 #elif HOTENDS > 4 || E_STEPPERS > 4
30
 #elif HOTENDS > 4 || E_STEPPERS > 4
31
   #error "Z-Bolt X Series board supports up to 4 hotends / E-steppers."
31
   #error "Z-Bolt X Series board supports up to 4 hotends / E-steppers."

+ 1
- 1
Marlin/src/pins/sam/pins_ADSK.h 查看文件

27
 
27
 
28
 #define BOARD_INFO_NAME "ADSK"
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
   #error "Oops! Select 'Arduino Due or Mega' in 'Tools > Board.'"
31
   #error "Oops! Select 'Arduino Due or Mega' in 'Tools > Board.'"
32
 #endif
32
 #endif
33
 
33
 

+ 1
- 1
Marlin/src/pins/sam/pins_ALLIGATOR_R2.h 查看文件

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

+ 1
- 1
Marlin/src/pins/sam/pins_ARCHIM1.h 查看文件

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

+ 1
- 1
Marlin/src/pins/sam/pins_ARCHIM2.h 查看文件

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

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

+ 1
- 1
Marlin/src/pins/sam/pins_DUE3DOM.h 查看文件

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

+ 1
- 1
Marlin/src/pins/sam/pins_DUE3DOM_MINI.h 查看文件

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

+ 1
- 1
Marlin/src/pins/sam/pins_PRINTRBOARD_G2.h 查看文件

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

+ 1
- 1
Marlin/src/pins/sam/pins_RADDS.h 查看文件

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

+ 1
- 1
Marlin/src/pins/sam/pins_RAMPS4DUE.h 查看文件

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

+ 1
- 1
Marlin/src/pins/sam/pins_RAMPS_DUO.h 查看文件

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

+ 1
- 1
Marlin/src/pins/sam/pins_RAMPS_FD_V1.h 查看文件

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

+ 1
- 1
Marlin/src/pins/sam/pins_RAMPS_SMART.h 查看文件

60
  * (Search the web for "Arduino DUE Board Pinout" to see the correct header.)
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
   #error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
64
   #error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
65
 #endif
65
 #endif
66
 
66
 

+ 1
- 1
Marlin/src/pins/sam/pins_RURAMPS4D_11.h 查看文件

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

+ 1
- 1
Marlin/src/pins/sam/pins_RURAMPS4D_13.h 查看文件

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

+ 1
- 1
Marlin/src/pins/sam/pins_ULTRATRONICS_PRO.h 查看文件

26
  * https://reprapworld.com/documentation/datasheet_ultratronics10_05.pdf
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
   #error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
30
   #error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
31
 #endif
31
 #endif
32
 
32
 

+ 1
- 1
Marlin/src/pins/samd/pins_RAMPS_144.h 查看文件

25
  * AGCM4 with RAMPS v1.4.4 pin assignments
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
   #error "Oops! Select 'Adafruit Grand Central M4' in 'Tools > Board.'"
29
   #error "Oops! Select 'Adafruit Grand Central M4' in 'Tools > Board.'"
30
 #endif
30
 #endif
31
 
31
 

+ 1
- 1
Marlin/src/pins/sanguino/pins_ANET_10.h 查看文件

89
  *   Many thanks to Hans Raaf (@oderwat) for developing the Anet-specific software and supporting the Anet community.
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
   #error "Oops! Select 'Sanguino' in 'Tools > Board' and 'ATmega1284P' in 'Tools > Processor.' (For PlatformIO, use 'melzi' or 'melzi_optiboot.')"
93
   #error "Oops! Select 'Sanguino' in 'Tools > Board' and 'ATmega1284P' in 'Tools > Processor.' (For PlatformIO, use 'melzi' or 'melzi_optiboot.')"
94
 #endif
94
 #endif
95
 
95
 

+ 1
- 1
Marlin/src/pins/sanguino/pins_GEN3_MONOLITHIC.h 查看文件

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

+ 1
- 1
Marlin/src/pins/sanguino/pins_GEN3_PLUS.h 查看文件

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

+ 1
- 1
Marlin/src/pins/sanguino/pins_GEN6.h 查看文件

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

+ 1
- 1
Marlin/src/pins/sanguino/pins_GEN7_12.h 查看文件

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
   #error "Oops! Select 'Sanguino' in 'Tools > Boards' and 'ATmega644', 'ATmega644P', or 'ATmega1284P' in 'Tools > Processor.'"
56
   #error "Oops! Select 'Sanguino' in 'Tools > Boards' and 'ATmega644', 'ATmega644P', or 'ATmega1284P' in 'Tools > Processor.'"
57
 #endif
57
 #endif
58
 
58
 

+ 1
- 1
Marlin/src/pins/sanguino/pins_GEN7_14.h 查看文件

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
   #error "Oops! Select 'Sanguino' in 'Tools > Boards' and 'ATmega644', 'ATmega644P', or 'ATmega1284P' in 'Tools > Processor.'"
56
   #error "Oops! Select 'Sanguino' in 'Tools > Boards' and 'ATmega644', 'ATmega644P', or 'ATmega1284P' in 'Tools > Processor.'"
57
 #endif
57
 #endif
58
 
58
 

+ 1
- 1
Marlin/src/pins/sanguino/pins_GEN7_CUSTOM.h 查看文件

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
   #error "Oops! Select 'Sanguino' in 'Tools > Boards' and 'ATmega644', 'ATmega644P', or 'ATmega1284P' in 'Tools > Processor.'"
59
   #error "Oops! Select 'Sanguino' in 'Tools > Boards' and 'ATmega644', 'ATmega644P', or 'ATmega1284P' in 'Tools > Processor.'"
60
 #endif
60
 #endif
61
 
61
 

+ 1
- 1
Marlin/src/pins/sanguino/pins_OMCA.h 查看文件

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

+ 1
- 1
Marlin/src/pins/sanguino/pins_OMCA_A.h 查看文件

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

+ 1
- 1
Marlin/src/pins/sanguino/pins_SANGUINOLOLU_11.h 查看文件

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

+ 0
- 0
Marlin/src/pins/sanguino/pins_SETHI.h 查看文件


部分文件因为文件数量过多而无法显示

正在加载...
取消
保存