Tweak tests, consolidate pins target validation (#21254)

This commit is contained in:
Scott Lahteine
2021-03-05 04:30:52 -06:00
committed by GitHub
parent f56929d0df
commit 3ea56ba4c7
220 changed files with 631 additions and 509 deletions

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
*/
#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"
//

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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