Browse Source

Tweak tests, consolidate pins target validation (#21254)

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

26
Marlin/src/pins/esp32/env_validate.h

@ -0,0 +1,26 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
#if NOT_TARGET(ARDUINO_ARCH_ESP32)
#error "Oops! Select an ESP32 board in 'Tools > Board.'"
#endif

6
Marlin/src/pins/esp32/pins_E4D.h

@ -27,9 +27,9 @@
* for more info check https://atbox.tech/ and join to Facebook page E4d@box.
*/
#if NOT_TARGET(ARDUINO_ARCH_ESP32)
#error "Oops! Select an ESP32 board in 'Tools > Board.'"
#elif EXTRUDERS > 1 || E_STEPPERS > 1
#include "env_validate.h"
#if EXTRUDERS > 1 || E_STEPPERS > 1
#error "E4d@box only supports one E Stepper. Comment out this line to continue."
#elif HOTENDS > 1
#error "E4d@box only supports one hotend / E-stepper. Comment out this line to continue."

4
Marlin/src/pins/esp32/pins_ESP32.h

@ -25,9 +25,7 @@
* Espressif ESP32 (Tensilica Xtensa LX6) pin assignments
*/
#if NOT_TARGET(ARDUINO_ARCH_ESP32)
"Oops! Select an ESP32 board in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "Espressif ESP32"

6
Marlin/src/pins/esp32/pins_FYSETC_E4.h

@ -27,9 +27,9 @@
* Supports 4 stepper drivers, heated bed, single hotend.
*/
#ifndef ARDUINO_ARCH_ESP32
#error "Oops! Select an ESP32 board in 'Tools > Board.'"
#elif EXTRUDERS > 1 || E_STEPPERS > 1
#include "env_validate.h"
#if EXTRUDERS > 1 || E_STEPPERS > 1
#error "FYSETC E4 only supports one E Stepper. Comment out this line to continue."
#elif HOTENDS > 1
#error "FYSETC E4 only supports one hotend / E-stepper. Comment out this line to continue."

6
Marlin/src/pins/esp32/pins_MRR_ESPA.h

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

6
Marlin/src/pins/esp32/pins_MRR_ESPE.h

@ -28,9 +28,9 @@
* single hotend, and LCD controller.
*/
#if NOT_TARGET(ARDUINO_ARCH_ESP32)
#error "Oops! Select an ESP32 board in 'Tools > Board.'"
#elif EXTRUDERS > 2 || E_STEPPERS > 2
#include "env_validate.h"
#if EXTRUDERS > 2 || E_STEPPERS > 2
#error "MRR ESPE only supports two E Steppers. Comment out this line to continue."
#elif HOTENDS > 1
#error "MRR ESPE only supports one hotend / E-stepper. Comment out this line to continue."

30
Marlin/src/pins/lpc1768/env_validate.h

@ -0,0 +1,30 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
#if ENABLED(REQUIRE_LPC1769) && NOT_TARGET(MCU_LPC1769)
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
#elif DISABLED(REQUIRE_LPC1769) && NOT_TARGET(MCU_LPC1768)
#error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
#endif
#undef REQUIRE_LPC1769

4
Marlin/src/pins/lpc1768/pins_AZSMZ_MINI.h

@ -25,9 +25,7 @@
* AZSMZ MINI pin assignments
*/
#if NOT_TARGET(MCU_LPC1768)
#error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "AZSMZ MINI"

4
Marlin/src/pins/lpc1768/pins_BIQU_B300_V1.0.h

@ -29,9 +29,7 @@
* BOARD_BIQU_BQ111_A4 (Hotend, Fan, Bed)
*/
#if NOT_TARGET(MCU_LPC1768)
#error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
#endif
#include "env_validate.h"
#ifndef BOARD_INFO_NAME
#define BOARD_INFO_NAME "BIQU Thunder B300 V1.0"

4
Marlin/src/pins/lpc1768/pins_BIQU_BQ111_A4.h

@ -29,9 +29,7 @@
* BOARD_BIQU_BQ111_A4 (Hotend, Fan, Bed)
*/
#if NOT_TARGET(MCU_LPC1768)
#error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "BIQU BQ111-A4"

6
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h

@ -21,14 +21,12 @@
*/
#pragma once
#include "env_validate.h"
#ifndef BOARD_INFO_NAME
#define BOARD_INFO_NAME "BTT SKR V1.4"
#endif
#ifndef BOARD_CUSTOM_BUILD_FLAGS
#define BOARD_CUSTOM_BUILD_FLAGS -DLPC_PINCFG_UART3_P4_28
#endif
//
// SD Connection
//

8
Marlin/src/pins/lpc1768/pins_BTT_SKR_common.h

@ -21,13 +21,7 @@
*/
#pragma once
#if ENABLED(SKR_HAS_LPC1769)
#if NOT_TARGET(MCU_LPC1769)
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
#endif
#elif NOT_TARGET(MCU_LPC1768)
#error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
#endif
#include "env_validate.h"
// If you have the Big tree tech driver expansion module, enable HAS_BTT_EXP_MOT
// https://github.com/bigtreetech/BTT-Expansion-module/tree/master/BTT%20EXP-MOT

4
Marlin/src/pins/lpc1768/pins_GMARSH_X6_REV1.h

@ -21,9 +21,7 @@
*/
#pragma once
#if NOT_TARGET(MCU_LPC1768)
#error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "GMARSH X6 REV1"

6
Marlin/src/pins/lpc1768/pins_MKS_SBASE.h

@ -25,11 +25,7 @@
* MKS SBASE pin assignments
*/
#if defined(MKS_HAS_LPC1769) && NOT_TARGET(MCU_LPC1769)
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
#elif !defined(MKS_HAS_LPC1769) && NOT_TARGET(MCU_LPC1768)
#error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
#endif
#include "env_validate.h"
#ifndef BOARD_INFO_NAME
#define BOARD_INFO_NAME "MKS SBASE"

4
Marlin/src/pins/lpc1768/pins_MKS_SGEN_L.h

@ -25,9 +25,7 @@
* MKS SGEN-L pin assignments
*/
#if NOT_TARGET(MCU_LPC1768)
#error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "MKS SGen-L"
#define BOARD_WEBSITE_URL "github.com/makerbase-mks/MKS-SGEN_L"

4
Marlin/src/pins/lpc1768/pins_RAMPS_RE_ARM.h

@ -35,9 +35,7 @@
// Numbers in parentheses () are the corresponding mega2560 pin numbers
#if NOT_TARGET(MCU_LPC1768)
#error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "Re-ARM RAMPS 1.4"

4
Marlin/src/pins/lpc1768/pins_SELENA_COMPACT.h

@ -25,9 +25,7 @@
* Selena Compact pin assignments
*/
#if NOT_TARGET(MCU_LPC1768)
#error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "Selena Compact"
#define BOARD_WEBSITE_URL "github.com/Ales2-k/Selena"

26
Marlin/src/pins/lpc1769/env_validate.h

@ -0,0 +1,26 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
#if NOT_TARGET(MCU_LPC1769)
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
#endif

4
Marlin/src/pins/lpc1769/pins_AZTEEG_X5_GT.h

@ -25,9 +25,7 @@
* Azteeg X5 GT pin assignments
*/
#if NOT_TARGET(MCU_LPC1769)
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "Azteeg X5 GT"
#define BOARD_WEBSITE_URL "tinyurl.com/yx8tdqa3"

5
Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI.h

@ -24,10 +24,7 @@
/**
* Azteeg X5 MINI pin assignments
*/
#if NOT_TARGET(MCU_LPC1769)
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
#endif
#include "env_validate.h"
#ifndef BOARD_INFO_NAME
#define BOARD_INFO_NAME "Azteeg X5 MINI"

6
Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI_WIFI.h

@ -22,12 +22,10 @@
#pragma once
/**
* Azteeg X5 MINI pin assignments
* Azteeg X5 MINI WIFI pin assignments
*/
#if NOT_TARGET(MCU_LPC1769)
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "Azteeg X5 MINI WIFI"

2
Marlin/src/pins/lpc1769/pins_BTT_SKR_E3_TURBO.h

@ -21,6 +21,8 @@
*/
#pragma once
#include "env_validate.h"
#ifndef BOARD_INFO_NAME
#define BOARD_INFO_NAME "BTT SKR E3 Turbo"
#endif

2
Marlin/src/pins/lpc1769/pins_BTT_SKR_V1_4_TURBO.h

@ -22,9 +22,9 @@
#pragma once
#define BOARD_INFO_NAME "BTT SKR V1.4 TURBO"
#define SKR_HAS_LPC1769
//
// Include SKR 1.4 pins
//
#define REQUIRE_LPC1769
#include "../lpc1768/pins_BTT_SKR_V1_4.h"

4
Marlin/src/pins/lpc1769/pins_COHESION3D_MINI.h

@ -25,9 +25,7 @@
* Cohesion3D Mini pin assignments
*/
#if NOT_TARGET(MCU_LPC1769)
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "Cohesion3D Mini"

4
Marlin/src/pins/lpc1769/pins_COHESION3D_REMIX.h

@ -25,9 +25,7 @@
* Cohesion3D ReMix pin assignments
*/
#if NOT_TARGET(MCU_LPC1769)
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "Cohesion3D ReMix"

4
Marlin/src/pins/lpc1769/pins_FLY_CDY.h

@ -21,9 +21,7 @@
*/
#pragma once
#if NOT_TARGET(MCU_LPC1769)
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "FLY-CDY"
#define BOARD_WEBSITE_URL "github.com/FLYmaker/FLY-CDY"

6
Marlin/src/pins/lpc1769/pins_MKS_SGEN.h

@ -28,14 +28,10 @@
* https://github.com/makerbase-mks/MKS-SGen/blob/master/Hardware/MKS%20SGEN%20V1.0_001/MKS%20SGEN%20V1.0_001%20PIN.pdf
*/
#if NOT_TARGET(MCU_LPC1769)
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
#endif
#define BOARD_INFO_NAME "MKS SGen"
#define BOARD_WEBSITE_URL "github.com/makerbase-mks/MKS-SGEN"
#define MKS_HAS_LPC1769
#define REQUIRE_LPC1769
#include "../lpc1768/pins_MKS_SBASE.h"
#if HAS_TMC_UART

4
Marlin/src/pins/lpc1769/pins_MKS_SGEN_L_V2.h

@ -25,9 +25,7 @@
* MKS SGen pin assignments
*/
#if NOT_TARGET(MCU_LPC1769)
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "MKS SGEN_L V2"
#define BOARD_WEBSITE_URL "github.com/makerbase-mks"

4
Marlin/src/pins/lpc1769/pins_SMOOTHIEBOARD.h

@ -25,9 +25,7 @@
* Smoothieboard pin assignments
*/
#if NOT_TARGET(MCU_LPC1769)
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "Smoothieboard"
#define BOARD_WEBSITE_URL "smoothieware.org/smoothieboard"

4
Marlin/src/pins/lpc1769/pins_TH3D_EZBOARD.h

@ -25,9 +25,7 @@
* TH3D EZBoard pin assignments
*/
#if NOT_TARGET(MCU_LPC1769)
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "TH3D EZBoard"
#define BOARD_WEBSITE_URL "th3dstudio.com"

30
Marlin/src/pins/mega/env_validate.h

@ -0,0 +1,30 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
#if ENABLED(ALLOW_MEGA1280) && NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560 or 1280' in 'Tools > Board.'"
#elif NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#undef ALLOW_MEGA1280

4
Marlin/src/pins/mega/pins_CHEAPTRONIC.h

@ -25,9 +25,7 @@
* Cheaptronic v1.0 pin assignments
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "Cheaptronic v1.0"
//

4
Marlin/src/pins/mega/pins_CHEAPTRONICv2.h

@ -27,9 +27,7 @@
* www.reprapobchod.cz
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "Cheaptronic v2.0"

5
Marlin/src/pins/mega/pins_CNCONTROLS_11.h

@ -25,9 +25,8 @@
* CartesioV11 pin assignments
*/
#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#define ALLOW_MEGA1280
#include "env_validate.h"
#define BOARD_INFO_NAME "CN Controls V11"

5
Marlin/src/pins/mega/pins_CNCONTROLS_12.h

@ -25,9 +25,8 @@
* CartesioV12 pin assignments
*/
#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#define ALLOW_MEGA1280
#include "env_validate.h"
#define BOARD_INFO_NAME "CN Controls V12"

5
Marlin/src/pins/mega/pins_CNCONTROLS_15.h

@ -25,9 +25,8 @@
* CNControls V15 for HMS434 pin assignments
*/
#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#define ALLOW_MEGA1280
#include "env_validate.h"
#define BOARD_INFO_NAME "CN Controls V15"

5
Marlin/src/pins/mega/pins_EINSTART-S.h

@ -26,9 +26,8 @@
* PCB Silkscreen: 3DPrinterCon_v3.5
*/
#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#define ALLOW_MEGA1280
#include "env_validate.h"
#define BOARD_INFO_NAME "Einstart-S"

4
Marlin/src/pins/mega/pins_ELEFU_3.h

@ -25,9 +25,7 @@
* Elefu RA Board Pin Assignments
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "Elefu Ra v3"

5
Marlin/src/pins/mega/pins_GT2560_REV_A.h

@ -27,9 +27,8 @@
* Richard Smith <galorin@gmail.com>
*/
#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#define ALLOW_MEGA1280
#include "env_validate.h"
#ifndef BOARD_INFO_NAME
#define BOARD_INFO_NAME "GT2560 Rev.A"

5
Marlin/src/pins/mega/pins_GT2560_V3.h

@ -25,9 +25,8 @@
* Geeetech GT2560 RevB + GT2560 3.0/3.1 + GT2560 4.0/4.1 pin assignments
*/
#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#define ALLOW_MEGA1280
#include "env_validate.h"
#ifndef BOARD_INFO_NAME
#define BOARD_INFO_NAME "GT2560 RevB/3.x/4.x"

4
Marlin/src/pins/mega/pins_HJC2560C_REV2.h

@ -25,9 +25,7 @@
* Geeetech HJC2560-C Rev 2.x board pin assignments
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define DEFAULT_MACHINE_NAME "ADIMLab Gantry v2"
#define BOARD_INFO_NAME "HJC2560-C"

4
Marlin/src/pins/mega/pins_INTAMSYS40.h

@ -27,9 +27,7 @@
* 2208 version exists and may or may not work
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "Intamsys 4.0"

5
Marlin/src/pins/mega/pins_LEAPFROG.h

@ -25,9 +25,8 @@
* Leapfrog Driver board pin assignments
*/
#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
#error "Oops! Select 'Mega 1280' or 'Mega 2560' in 'Tools > Board.'"
#endif
#define ALLOW_MEGA1280
#include "env_validate.h"
#define BOARD_INFO_NAME "Leapfrog"

4
Marlin/src/pins/mega/pins_LEAPFROG_XEED2015.h

@ -29,9 +29,7 @@
* printer models. As such this file is currently specific to the Xeed.
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Mega 2560' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "Leapfrog Xeed 2015"

6
Marlin/src/pins/mega/pins_MEGACONTROLLER.h

@ -25,12 +25,12 @@
* Mega controller pin assignments
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#elif HOTENDS > 2 || E_STEPPERS > 2
#if HOTENDS > 2 || E_STEPPERS > 2
#error "Mega Controller supports up to 2 hotends / E-steppers. Comment out this line to continue."
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "Mega Controller"
//

4
Marlin/src/pins/mega/pins_MEGATRONICS.h

@ -25,9 +25,7 @@
* MegaTronics pin assignments
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "Megatronics"
//

4
Marlin/src/pins/mega/pins_MEGATRONICS_2.h

@ -25,9 +25,7 @@
* MegaTronics v2.0 pin assignments
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "Megatronics v2.0"
//

4
Marlin/src/pins/mega/pins_MEGATRONICS_3.h

@ -25,9 +25,7 @@
* MegaTronics v3.0 / v3.1 / v3.2 pin assignments
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#if MB(MEGATRONICS_32)
#define BOARD_INFO_NAME "Megatronics v3.2"

5
Marlin/src/pins/mega/pins_MIGHTYBOARD_REVE.h

@ -37,9 +37,8 @@
* number (B5) agrees with the schematic but B5 is assigned to logical pin 11.
*/
#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
#error "Oops! Select 'Mega 1280' or 'Mega 2560' in 'Tools > Board.'"
#endif
#define ALLOW_MEGA1280
#include "env_validate.h"
#define BOARD_INFO_NAME "Mightyboard"
#define DEFAULT_MACHINE_NAME "MB Replicator"

6
Marlin/src/pins/mega/pins_OVERLORD.h

@ -25,12 +25,12 @@
* Dreammaker Overlord v1.1 pin assignments
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#elif HOTENDS > 2 || E_STEPPERS > 2
#if HOTENDS > 2 || E_STEPPERS > 2
#error "Overlord Controller supports up to 2 hotends / E-steppers. Comment out this line to continue."
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "OVERLORD"
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME

6
Marlin/src/pins/mega/pins_PICA.h

@ -29,6 +29,8 @@
* Applies to PICA, PICA_REVB
*/
#include "env_validate.h"
#ifndef BOARD_INFO_NAME
#define BOARD_INFO_NAME "PICA"
#endif
@ -42,10 +44,6 @@
AD12 = 66; AD13 = 67; AD14 = 68; AD15 = 69;
*/
#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
#error "Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
#endif
//
// Servos
//

4
Marlin/src/pins/mega/pins_WANHAO_ONEPLUS.h

@ -25,9 +25,7 @@
* Wanhao 0ne+ pin assignments
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "Wanhao i3 Mini 0ne+"
#define DEFAULT_MACHINE_NAME "i3 Mini"

2
Marlin/src/pins/pins.h

@ -378,7 +378,7 @@
#elif MB(BTT_SKR_V1_3)
#include "lpc1768/pins_BTT_SKR_V1_3.h" // LPC1768 env:LPC1768
#elif MB(BTT_SKR_V1_4)
#include "lpc1768/pins_BTT_SKR_V1_4.h" // LPC1768 env:LPC1768
#include "lpc1768/pins_BTT_SKR_V1_4.h" // LPC1768 env:LPC1768_btt_skr_v1_4
//
// LPC1769 ARM Cortex M3

4
Marlin/src/pins/pinsDebug.h

@ -41,7 +41,7 @@
#define REPORT_NAME_ANALOG(COUNTER, NAME) _ADD_PIN(#NAME, COUNTER)
#include "pinsDebug_list.h"
#line 46
#line 45
// manually add pins that have names that are macros which don't play well with these macros
#if ANY(AVR_ATmega2560_FAMILY, AVR_ATmega1284_FAMILY, ARDUINO_ARCH_SAM, TARGET_LPC1768)
@ -227,7 +227,7 @@ const PinInfo pin_array[] PROGMEM = {
#endif
#include "pinsDebug_list.h"
#line 172
#line 231
};

26
Marlin/src/pins/rambo/env_validate.h

@ -0,0 +1,26 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino Mega 2560 or Rambo' in 'Tools > Board.'"
#endif

4
Marlin/src/pins/rambo/pins_EINSY_RAMBO.h

@ -25,9 +25,7 @@
* Einsy-Rambo pin assignments
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino Mega 2560 or Rambo' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "Einsy Rambo"

4
Marlin/src/pins/rambo/pins_EINSY_RETRO.h

@ -25,9 +25,7 @@
* Einsy-Retro pin assignments
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino Mega 2560 or Rambo' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "Einsy Retro"

4
Marlin/src/pins/rambo/pins_MINIRAMBO.h

@ -25,9 +25,7 @@
* Mini-RAMBo pin assignments
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'RAMBo' in 'Tools > Board' or the Mega2560 environment in PlatformIO."
#endif
#include "env_validate.h"
#if MB(MINIRAMBO_10A)
#define BOARD_INFO_NAME "Mini RAMBo 1.0a"

4
Marlin/src/pins/rambo/pins_RAMBO.h

@ -41,9 +41,7 @@
* Rambo pin assignments
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#ifndef BOARD_INFO_NAME
#define BOARD_INFO_NAME "Rambo"

4
Marlin/src/pins/rambo/pins_SCOOVO_X9H.h

@ -25,9 +25,7 @@
* Rambo pin assignments MODIFIED FOR Scoovo X9H
************************************************/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#include "env_target.h"
#define BOARD_INFO_NAME "Scoovo X9H"

35
Marlin/src/pins/ramps/env_validate.h

@ -0,0 +1,35 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
#if ENABLED(ALLOW_SAM3X8E)
#if NOT_TARGET(__SAM3X8E__, __AVR_ATmega2560__)
#error "Oops! Select 'Arduino Due' or 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#elif ENABLED(REQUIRE_MEGA2560) && NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#elif DISABLED(REQUIRE_MEGA2560) && NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560 or 1280' in 'Tools > Board.'"
#endif
#undef ALLOW_SAM3X8E
#undef REQUIRE_MEGA2560

7
Marlin/src/pins/ramps/pins_AZTEEG_X3.h

@ -25,9 +25,10 @@
* AZTEEG_X3 Arduino Mega with RAMPS v1.4 pin assignments
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#elif HOTENDS > 2 || E_STEPPERS > 2
#define REQUIRE_MEGA2560
#include "env_validate.h"
#if HOTENDS > 2 || E_STEPPERS > 2
#error "Azteeg X3 supports up to 2 hotends / E-steppers. Comment out this line to continue."
#endif

7
Marlin/src/pins/ramps/pins_AZTEEG_X3_PRO.h

@ -25,9 +25,10 @@
* AZTEEG_X3_PRO (Arduino Mega) pin assignments
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#elif HOTENDS > 5 || E_STEPPERS > 5
#define REQUIRE_MEGA2560
#include "env_validate.h"
#if HOTENDS > 5 || E_STEPPERS > 5
#error "Azteeg X3 Pro supports up to 5 hotends / E-steppers. Comment out this line to continue."
#endif

5
Marlin/src/pins/ramps/pins_BQ_ZUM_MEGA_3D.h

@ -25,9 +25,8 @@
* bq ZUM Mega 3D board definition
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#define REQUIRE_MEGA2560
#include "env_validate.h"
#define BOARD_INFO_NAME "ZUM Mega 3D"

5
Marlin/src/pins/ramps/pins_DUPLICATOR_I3_PLUS.h

@ -25,9 +25,8 @@
* Wanhao Duplicator i3 Plus pin assignments
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#define REQUIRE_MEGA2560
#include "env_validate.h"
#define BOARD_INFO_NAME "Duplicator i3 Plus"

7
Marlin/src/pins/ramps/pins_FORMBOT_RAPTOR.h

@ -25,9 +25,10 @@
* Formbot Raptor pin assignments
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#elif HOTENDS > 3 || E_STEPPERS > 3
#define REQUIRE_MEGA2560
#include "env_validate.h"
#if HOTENDS > 3 || E_STEPPERS > 3
#error "Formbot supports up to 3 hotends / E-steppers. Comment out this line to continue."
#endif

7
Marlin/src/pins/ramps/pins_FORMBOT_TREX2PLUS.h

@ -25,9 +25,10 @@
* Formbot pin assignments
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#elif HOTENDS > 2 || E_STEPPERS > 2
#define REQUIRE_MEGA2560
#include "env_validate.h"
#if HOTENDS > 2 || E_STEPPERS > 2
#error "Formbot supports up to 2 hotends / E-steppers. Comment out this line to continue."
#endif

7
Marlin/src/pins/ramps/pins_FORMBOT_TREX3.h

@ -25,9 +25,10 @@
* Formbot pin assignments
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#elif HOTENDS > 2 || E_STEPPERS > 2
#define REQUIRE_MEGA2560
#include "env_validate.h"
#if HOTENDS > 2 || E_STEPPERS > 2
#error "Formbot supports up to 2 hotends / E-steppers. Comment out this line to continue."
#endif

4
Marlin/src/pins/ramps/pins_K8800.h

@ -25,9 +25,7 @@
* Velleman K8800 (Vertex)
*/
#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "K8800"
#define DEFAULT_MACHINE_NAME "Vertex Delta"

10
Marlin/src/pins/ramps/pins_LONGER3D_LKx_PRO.h

@ -25,9 +25,10 @@
* Longer3D LK1/LK4/LK5 Pro board pin assignments
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#elif HOTENDS > 1 || E_STEPPERS > 1
#define REQUIRE_MEGA2560
#include "env_validate.h"
#if HOTENDS > 1 || E_STEPPERS > 1
#error "Longer3D LGT KIT V1.0 board only supports one hotend / E-stepper. Comment out this line to continue."
#endif
@ -42,9 +43,6 @@
#warning "Serial 3 is originally reserved to Y limit switches. Hardware changes are required to use it."
#endif
// Custom flags and defines for the build
//#define BOARD_CUSTOM_BUILD_FLAGS -D__FOO__
#define BOARD_INFO_NAME "LGT KIT V1.0"
//

13
Marlin/src/pins/ramps/pins_RAMPS.h

@ -45,18 +45,7 @@
* 7 | 11
*/
#ifdef TARGET_LPC1768
#error "Oops! Set MOTHERBOARD to an LPC1768-based board when building for LPC1768."
#elif defined(__STM32F1__)
#error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
#endif
#if NOT_TARGET(IS_RAMPS_SMART, IS_RAMPS_DUO, IS_RAMPS4DUE, TARGET_LPC1768, __AVR_ATmega1280__, __AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' (or other appropriate target) in 'Tools > Board.'"
#endif
// Custom flags and defines for the build
//#define BOARD_CUSTOM_BUILD_FLAGS -D__FOO__
#include "env_validate.h"
#ifndef BOARD_INFO_NAME
#define BOARD_INFO_NAME "RAMPS 1.4"

4
Marlin/src/pins/ramps/pins_RAMPS_OLD.h

@ -25,9 +25,7 @@
* Arduino Mega with RAMPS v1.0, v1.1, v1.2 pin assignments
*/
#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "RAMPS <1.2"

4
Marlin/src/pins/ramps/pins_RAMPS_PLUS.h

@ -37,9 +37,7 @@
* RAMPS_PLUS_SF (Spindle, Controller Fan)
*/
#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "RAMPS 1.4 Plus"

7
Marlin/src/pins/ramps/pins_RAMPS_S_12.h

@ -34,12 +34,7 @@
* Other pins_MYBOARD.h files may override these defaults
*/
#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
// Custom flags and defines for the build
//#define BOARD_CUSTOM_BUILD_FLAGS -D__FOO__
#include "env_validate.h"
#ifndef BOARD_INFO_NAME
#define BOARD_INFO_NAME "RAMPS S 1.2"

7
Marlin/src/pins/ramps/pins_RUMBA.h

@ -25,9 +25,10 @@
* RUMBA pin assignments
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#elif HOTENDS > 3 || E_STEPPERS > 3
#define REQUIRE_MEGA2560
#include "env_validate.h"
#if HOTENDS > 3 || E_STEPPERS > 3
#error "RUMBA supports up to 3 hotends / E-steppers. Comment out this line to continue."
#endif

7
Marlin/src/pins/ramps/pins_TENLOG_D3_HERO.h

@ -25,9 +25,10 @@
* Tenlog pin assignments
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#elif HOTENDS > 2 || E_STEPPERS > 2
#define REQUIRE_MEGA2560
#include "env_validate.h"
#if HOTENDS > 2 || E_STEPPERS > 2
#error "Tenlog supports up to 2 hotends / E-steppers. Comment out this line to continue."
#endif

7
Marlin/src/pins/ramps/pins_TRONXY_V3_1_0.h

@ -25,9 +25,10 @@
* Arduino Mega for Tronxy X5S-2E, etc.
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#elif HOTENDS > 2 || E_STEPPERS > 2
#define REQUIRE_MEGA2560
#include "env_validate.h"
#if HOTENDS > 2 || E_STEPPERS > 2
#error "TRONXY-V3-1.0 supports only 2 hotends/E-steppers. Comment out this line to continue."
#endif

4
Marlin/src/pins/ramps/pins_TT_OSCAR.h

@ -20,9 +20,7 @@
*
*/
#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#if HOTENDS > 5 || E_STEPPERS > 5
#error "TTOSCAR supports up to 5 hotends / E-steppers. Comment out this line to continue."

5
Marlin/src/pins/ramps/pins_ULTIMAIN_2.h

@ -33,9 +33,8 @@
* case light
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#define REQUIRE_MEGA2560
#include "env_validate.h"
#define BOARD_INFO_NAME "Ultimaker 2.x"
#define DEFAULT_MACHINE_NAME "Ultimaker"

4
Marlin/src/pins/ramps/pins_ULTIMAKER.h

@ -33,9 +33,7 @@
* case light
*/
#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "Ultimaker"
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME

4
Marlin/src/pins/ramps/pins_ULTIMAKER_OLD.h

@ -60,9 +60,7 @@
//#define BOARD_REV_1_0
//#define BOARD_REV_1_5
#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#ifdef BOARD_REV_1_1_TO_1_3
#define BOARD_INFO_NAME "Ultimaker 1.1-1.3"

7
Marlin/src/pins/ramps/pins_Z_BOLT_X_SERIES.h

@ -25,9 +25,10 @@
* Z-Bolt X Series board based on Arduino Mega2560
*/
#if NOT_TARGET(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#elif HOTENDS > 4 || E_STEPPERS > 4
#define REQUIRE_MEGA2560
#include "env_validate.h"
#if HOTENDS > 4 || E_STEPPERS > 4
#error "Z-Bolt X Series board supports up to 4 hotends / E-steppers."
#endif

33
Marlin/src/pins/sam/env_validate.h

@ -0,0 +1,33 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
#if BOTH(ALLOW_MEGA1280, ALLOW_MEGA2560) && NOT_TARGET(__SAM3X8E__, __AVR_ATmega1280__, __AVR_ATmega2560__)
#error "Oops! Select 'Arduino Due or Mega' in 'Tools > Board.'"
#elif ENABLED(ALLOW_MEGA2560) && NOT_TARGET(__SAM3X8E__, __AVR_ATmega2560__)
#error "Oops! Select 'Arduino Due or Mega' in 'Tools > Board.'"
#elif ENABLED(ALLOW_MEGA1280) && NOT_TARGET(__SAM3X8E__, __AVR_ATmega1280__)
#error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
#endif
#undef ALLOW_MEGA1280
#undef ALLOW_MEGA2560

6
Marlin/src/pins/sam/pins_ADSK.h

@ -27,9 +27,9 @@
#define BOARD_INFO_NAME "ADSK"
#if NOT_TARGET(__SAM3X8E__, __AVR_ATmega1280__, __AVR_ATmega2560__)
#error "Oops! Select 'Arduino Due or Mega' in 'Tools > Board.'"
#endif
#define ALLOW_MEGA1280
#define ALLOW_MEGA2560
#include "env_validate.h"
/* CNC shield modifications:
FROM THE BOTTOM CUT THE 5V PIN THAT GOES TO ARDUINO!!!

4
Marlin/src/pins/sam/pins_ALLIGATOR_R2.h

@ -26,9 +26,7 @@
* https://reprap.org/wiki/Alligator_Board
*/
#if NOT_TARGET(__SAM3X8E__)
#error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "Alligator Board R2"

4
Marlin/src/pins/sam/pins_CNCONTROLS_15D.h

@ -24,9 +24,7 @@
* CNControls V15 for HMS434 with DUE pin assignments
*/
#if NOT_TARGET(__SAM3X8E__)
#error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "CN Controls V15D"

4
Marlin/src/pins/sam/pins_DUE3DOM.h

@ -25,9 +25,7 @@
* DUE3DOM pin assignments
*/
#if NOT_TARGET(__SAM3X8E__)
#error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "DUE3DOM"

4
Marlin/src/pins/sam/pins_DUE3DOM_MINI.h

@ -25,9 +25,7 @@
* DUE3DOM MINI pin assignments
*/
#if NOT_TARGET(__SAM3X8E__)
#error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "DUE3DOM MINI"

4
Marlin/src/pins/sam/pins_PRINTRBOARD_G2.h

@ -25,9 +25,7 @@
* PRINTRBOARD_G2
*/
#if NOT_TARGET(__SAM3X8E__)
#error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#ifndef BOARD_INFO_NAME
#define BOARD_INFO_NAME "Printrboard G2"

4
Marlin/src/pins/sam/pins_RADDS.h

@ -25,9 +25,7 @@
* RADDS
*/
#if NOT_TARGET(__SAM3X8E__)
#error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "RADDS"

7
Marlin/src/pins/sam/pins_RAMPS4DUE.h

@ -39,14 +39,9 @@
* A15 | NC
*/
#if NOT_TARGET(__SAM3X8E__, __AVR_ATmega2560__)
#error "Oops! Select 'Arduino Due' or 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#define ALLOW_SAM3X8E
#define BOARD_INFO_NAME "RAMPS4DUE"
#define IS_RAMPS4DUE
//
// Temperature Sensors
//

7
Marlin/src/pins/sam/pins_RAMPS_DUO.h

@ -43,14 +43,9 @@
* A15 | A11
*/
#if NOT_TARGET(__SAM3X8E__, __AVR_ATmega2560__)
#error "Oops! Select 'Arduino Due' or 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#define BOARD_INFO_NAME "RAMPS Duo"
#define IS_RAMPS_DUO
#define ALLOW_SAM3X8E
#include "../ramps/pins_RAMPS.h"
//

4
Marlin/src/pins/sam/pins_RAMPS_FD_V1.h

@ -28,9 +28,7 @@
* Use 4k7 thermistor tables
*/
#if NOT_TARGET(__SAM3X8E__)
#error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#ifndef BOARD_INFO_NAME
#define BOARD_INFO_NAME "RAMPS-FD v1"

6
Marlin/src/pins/sam/pins_RAMPS_SMART.h

@ -60,12 +60,8 @@
* (Search the web for "Arduino DUE Board Pinout" to see the correct header.)
*/
#if NOT_TARGET(__SAM3X8E__, __AVR_ATmega2560__)
#error "Oops! Select 'Arduino Due' or 'Mega 2560' in 'Tools > Board.'"
#endif
#define BOARD_INFO_NAME "RAMPS-SMART"
#define IS_RAMPS_SMART
#define ALLOW_SAM3X8E
#include "../ramps/pins_RAMPS.h"
// I2C EEPROM with 4K of space

4
Marlin/src/pins/sam/pins_RURAMPS4D_11.h

@ -32,9 +32,7 @@
* |
*/
#if NOT_TARGET(__SAM3X8E__)
#error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "RuRAMPS4Due v1.1"

4
Marlin/src/pins/sam/pins_RURAMPS4D_13.h

@ -32,9 +32,7 @@
* |
*/
#if NOT_TARGET(__SAM3X8E__)
#error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "RuRAMPS4Due v1.3"

4
Marlin/src/pins/sam/pins_ULTRATRONICS_PRO.h

@ -26,9 +26,7 @@
* https://reprapworld.com/documentation/datasheet_ultratronics10_05.pdf
*/
#if NOT_TARGET(ARDUINO_ARCH_SAM)
#error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "Ultratronics v1.0"

42
Marlin/src/pins/sanguino/env_validate.h

@ -0,0 +1,42 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
#if ENABLED(ALLOW_MEGA644)
#if NOT_TARGET(__AVR_ATmega644__, __AVR_ATmega644P__, __AVR_ATmega1284P__)
#error "Oops! Select 'Sanguino' in 'Tools > Boards' and 'ATmega644', 'ATmega644P', or 'ATmega1284P' in 'Tools > Processor.'"
#endif
#elif ENABLED(ALLOW_MEGA644P)
#if NOT_TARGET(__AVR_ATmega644P__, __AVR_ATmega1284P__)
#error "Oops! Select 'Sanguino' in 'Tools > Boards' and 'ATmega644P' or 'ATmega1284P' in 'Tools > Processor.'"
#endif
#elif ENABLED(REQUIRE_MEGA644P)
#if NOT_TARGET(__AVR_ATmega644P__)
#error "Oops! Select 'Sanguino' in 'Tools > Board' and 'ATmega644P' in 'Tools > Processor.'"
#endif
#elif NOT_TARGET(__AVR_ATmega1284P__)
#error "Oops! Select 'Sanguino' in 'Tools > Board' and 'ATmega1284P' in 'Tools > Processor.' (For PlatformIO, use 'melzi' or 'melzi_optiboot.')"
#endif
#undef ALLOW_MEGA644
#undef ALLOW_MEGA644P
#undef REQUIRE_MEGA644P

5
Marlin/src/pins/sanguino/pins_GEN3_MONOLITHIC.h

@ -48,9 +48,8 @@
* Once installed select the Sanguino board and then select the CPU.
*/
#if NOT_TARGET(__AVR_ATmega644P__)
#error "Oops! Select 'Sanguino' in 'Tools > Board.'"
#endif
#define REQUIRE_MEGA644P
#include "env_validate.h"
#define BOARD_INFO_NAME "Gen3 Monolithic"
#define DEBUG_PIN 0

5
Marlin/src/pins/sanguino/pins_GEN3_PLUS.h

@ -48,9 +48,8 @@
* Once installed select the SANGUINO board and then select the CPU.
*/
#if NOT_TARGET(__AVR_ATmega644P__, __AVR_ATmega1284P__)
#error "Oops! Select 'Sanguino' in 'Tools > Boards' and 'ATmega644P' or 'ATmega1284P' in 'Tools > Processor.'"
#endif
#define ALLOW_MEGA644P
#include "env_validate.h"
#define BOARD_INFO_NAME "Gen3+"

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

Loading…
Cancel
Save