Tweak tests, consolidate pins target validation (#21254)
This commit is contained in:
28
Marlin/src/pins/teensy2/env_validate.h
Normal file
28
Marlin/src/pins/teensy2/env_validate.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* 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_AT90USB1286__) && (DISABLED(ALLOW_AT90USB1286P) || NOT_TARGET(__AVR_AT90USB1286P__))
|
||||
#error "Oops! Select 'Teensy++ 2.0' or 'Printrboard' in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
#undef ALLOW_AT90USB1286P
|
@@ -68,9 +68,7 @@
|
||||
* https://bitbucket.org/makible/5dprint-d8-controller-board
|
||||
*/
|
||||
|
||||
#if NOT_TARGET(__AVR_AT90USB1286__)
|
||||
#error "Oops! Select 'Teensy++ 2.0' or 'Printrboard' in 'Tools > Board.'"
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define DEFAULT_MACHINE_NAME "Makibox"
|
||||
#define BOARD_INFO_NAME "5DPrint D8"
|
||||
|
@@ -69,7 +69,7 @@
|
||||
*/
|
||||
|
||||
#if NOT_TARGET(__AVR_AT90USB646__)
|
||||
#error "Oops! Select 'AT90USB646_TEENSYPP' in 'Tools > Board.'"
|
||||
#error "Oops! Select 'Brainwave' in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "Brainwave"
|
||||
|
@@ -75,9 +75,7 @@
|
||||
* 4. The programmer is no longer needed. Remove it.
|
||||
*/
|
||||
|
||||
#if NOT_TARGET(__AVR_AT90USB1286__)
|
||||
#error "Oops! Select 'Teensy++ 2.0' or 'Printrboard' in 'Tools > Board.'"
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Brainwave Pro"
|
||||
|
||||
|
@@ -62,9 +62,7 @@
|
||||
* 4. The programmer is no longer needed. Remove it.
|
||||
*/
|
||||
|
||||
#if NOT_TARGET(__AVR_AT90USB1286__)
|
||||
#error "Oops! Select 'Teensy++ 2.0' or 'Printrboard' in 'Tools > Board.'"
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Printrboard"
|
||||
|
||||
|
@@ -63,9 +63,7 @@
|
||||
* 4. The programmer is no longer needed. Remove it.
|
||||
*/
|
||||
|
||||
#if NOT_TARGET(__AVR_AT90USB1286__)
|
||||
#error "Oops! Select 'Teensy++ 2.0' or 'Printrboard' in 'Tools > Board.'"
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#if !defined(__MARLIN_DEPS__) && !defined(USBCON)
|
||||
#error "USBCON should be defined by the platform for this board."
|
||||
|
@@ -62,9 +62,7 @@
|
||||
* 4. The programmer is no longer needed. Remove it.
|
||||
*/
|
||||
|
||||
#if NOT_TARGET(__AVR_AT90USB1286__)
|
||||
#error "Oops! Select 'Teensy++ 2.0' or 'Printrboard' in 'Tools > Board.'"
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "SAV MkI"
|
||||
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
|
||||
|
@@ -107,9 +107,7 @@
|
||||
* E DIR 35 a7 a3 31 Y DIR
|
||||
*/
|
||||
|
||||
#if NOT_TARGET(__AVR_AT90USB1286__)
|
||||
#error "Oops! Select 'Teensy++ 2.0' or 'Printrboard' in 'Tools > Board.'"
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Teensy++2.0"
|
||||
|
||||
|
@@ -72,6 +72,9 @@
|
||||
* The pin assignments in this file match the silkscreen.
|
||||
*/
|
||||
|
||||
#define ALLOW_AT90USB1286P
|
||||
#include "env_validate.h"
|
||||
|
||||
#if NOT_TARGET(__AVR_AT90USB1286__, __AVR_AT90USB1286P__)
|
||||
#error "Oops! Select 'Teensy++ 2.0' or 'Printrboard' in 'Tools > Board.'"
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user