Tweak tests, consolidate pins target validation (#21254)

This commit is contained in:
Scott Lahteine 2021-03-05 04:30:52 -06:00
parent 5a01cdb81c
commit 7c37a82821
220 changed files with 631 additions and 509 deletions

View File

@ -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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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

View File

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

View File

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

View File

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

View File

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

View File

@ -21,13 +21,7 @@
*/ */
#pragma once #pragma once
#if ENABLED(SKR_HAS_LPC1769) #include "env_validate.h"
#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
// If you have the Big tree tech driver expansion module, enable HAS_BTT_EXP_MOT // 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 // https://github.com/bigtreetech/BTT-Expansion-module/tree/master/BTT%20EXP-MOT

View File

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

View File

@ -25,11 +25,7 @@
* MKS SBASE pin assignments * MKS SBASE pin assignments
*/ */
#if defined(MKS_HAS_LPC1769) && NOT_TARGET(MCU_LPC1769) #include "env_validate.h"
#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
#ifndef BOARD_INFO_NAME #ifndef BOARD_INFO_NAME
#define BOARD_INFO_NAME "MKS SBASE" #define BOARD_INFO_NAME "MKS SBASE"

View File

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

View File

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

View File

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

View File

@ -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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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 * 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_INFO_NAME "MKS SGen"
#define BOARD_WEBSITE_URL "github.com/makerbase-mks/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" #include "../lpc1768/pins_MKS_SBASE.h"
#if HAS_TMC_UART #if HAS_TMC_UART

View File

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

View File

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

View File

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

View File

@ -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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -29,6 +29,8 @@
* Applies to PICA, PICA_REVB * Applies to PICA, PICA_REVB
*/ */
#include "env_validate.h"
#ifndef BOARD_INFO_NAME #ifndef BOARD_INFO_NAME
#define BOARD_INFO_NAME "PICA" #define BOARD_INFO_NAME "PICA"
#endif #endif
@ -42,10 +44,6 @@
AD12 = 66; AD13 = 67; AD14 = 68; AD15 = 69; 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 // Servos
// //

View File

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

View File

@ -378,7 +378,7 @@
#elif MB(BTT_SKR_V1_3) #elif MB(BTT_SKR_V1_3)
#include "lpc1768/pins_BTT_SKR_V1_3.h" // LPC1768 env:LPC1768 #include "lpc1768/pins_BTT_SKR_V1_3.h" // LPC1768 env:LPC1768
#elif MB(BTT_SKR_V1_4) #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 // LPC1769 ARM Cortex M3

View File

@ -41,7 +41,7 @@
#define REPORT_NAME_ANALOG(COUNTER, NAME) _ADD_PIN(#NAME, COUNTER) #define REPORT_NAME_ANALOG(COUNTER, NAME) _ADD_PIN(#NAME, COUNTER)
#include "pinsDebug_list.h" #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 // 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) #if ANY(AVR_ATmega2560_FAMILY, AVR_ATmega1284_FAMILY, ARDUINO_ARCH_SAM, TARGET_LPC1768)
@ -227,7 +227,7 @@ const PinInfo pin_array[] PROGMEM = {
#endif #endif
#include "pinsDebug_list.h" #include "pinsDebug_list.h"
#line 172 #line 231
}; };

View File

@ -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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -45,18 +45,7 @@
* 7 | 11 * 7 | 11
*/ */
#ifdef TARGET_LPC1768 #include "env_validate.h"
#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__
#ifndef BOARD_INFO_NAME #ifndef BOARD_INFO_NAME
#define BOARD_INFO_NAME "RAMPS 1.4" #define BOARD_INFO_NAME "RAMPS 1.4"

View File

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

View File

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

View File

@ -34,12 +34,7 @@
* Other pins_MYBOARD.h files may override these defaults * Other pins_MYBOARD.h files may override these defaults
*/ */
#if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__) #include "env_validate.h"
#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__
#ifndef BOARD_INFO_NAME #ifndef BOARD_INFO_NAME
#define BOARD_INFO_NAME "RAMPS S 1.2" #define BOARD_INFO_NAME "RAMPS S 1.2"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -43,14 +43,9 @@
* A15 | A11 * 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 BOARD_INFO_NAME "RAMPS Duo"
#define IS_RAMPS_DUO #define ALLOW_SAM3X8E
#include "../ramps/pins_RAMPS.h" #include "../ramps/pins_RAMPS.h"
// //

View File

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

View File

@ -60,12 +60,8 @@
* (Search the web for "Arduino DUE Board Pinout" to see the correct header.) * (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 BOARD_INFO_NAME "RAMPS-SMART"
#define IS_RAMPS_SMART #define ALLOW_SAM3X8E
#include "../ramps/pins_RAMPS.h" #include "../ramps/pins_RAMPS.h"
// I2C EEPROM with 4K of space // I2C EEPROM with 4K of space

View File

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

View File

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

View File

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

View File

@ -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

View File

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

View File

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

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