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,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(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#endif

View File

@ -21,9 +21,7 @@
*/
#pragma once
#if NOT_TARGET(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#endif
#include "env_validate.h"
/**
* 21017 Victor Perez Marlin for stm32f1 test

View File

@ -28,9 +28,7 @@
#define DEFAULT_MACHINE_NAME "Creality3D"
#define BOARD_INFO_NAME "BTT SKR CR-6"
#if NOT_TARGET(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#endif
#include "env_validate.h"
//
// Release PB4 (Z_STEP_PIN) from JTAG NRST role

View File

@ -21,9 +21,7 @@
*/
#pragma once
#if NOT_TARGET(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#endif
#include "env_validate.h"
/**
* 2017 Victor Perez Marlin for stm32f1 test

View File

@ -21,9 +21,7 @@
*/
#pragma once
#if NOT_TARGET(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#endif
#include "env_validate.h"
/**
* 2017 Victor Perez Marlin for stm32f1 test

View File

@ -21,9 +21,7 @@
*/
#pragma once
#if NOT_TARGET(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#endif
#include "env_validate.h"
/**
* 2017 Victor Perez Marlin for stm32f1 test

View File

@ -24,9 +24,9 @@
* Creality 4.2.x (STM32F103RET6) board pin assignments
*/
#if NOT_TARGET(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#elif HOTENDS > 1 || E_STEPPERS > 1
#include "env_validate.h"
#if HOTENDS > 1 || E_STEPPERS > 1
#error "Creality V4 only supports one hotend / E-stepper. Comment out this line to continue."
#endif

View File

@ -24,9 +24,9 @@
* CREALITY 4.2.10 (STM32F103) board pin assignments
*/
#if NOT_TARGET(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#elif HOTENDS > 1 || E_STEPPERS > 1
#include "env_validate.h"
#if HOTENDS > 1 || E_STEPPERS > 1
#error "CREALITY supports up to 1 hotends / E-steppers. Comment out this line to continue."
#endif

View File

@ -24,9 +24,7 @@
* Creality v4.5.2 and v4.5.3 (STM32F103RET6) board pin assignments
*/
#if NOT_TARGET(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define DEFAULT_MACHINE_NAME "Creality3D"

View File

@ -21,9 +21,7 @@
*/
#pragma once
#if NOT_TARGET(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "FLY_MINI"
#define BOARD_WEBSITE_URL "github.com/FLYmaker"

View File

@ -21,9 +21,7 @@
*/
#pragma once
#if NOT_TARGET(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "FYSETC AIO II"
#define BOARD_WEBSITE_URL "fysetc.com"

View File

@ -21,9 +21,7 @@
*/
#pragma once
#if NOT_TARGET(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define DEFAULT_MACHINE_NAME "3D Printer"

View File

@ -21,9 +21,7 @@
*/
#pragma once
#if NOT_TARGET(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#endif
#include "env_validate.h"
#include "pins_FYSETC_CHEETAH.h"

View File

@ -25,9 +25,7 @@
* Geeetech GTM32 Mini board pin assignments
*/
#if NOT_TARGET(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "GTM32 Pro VB"
#define DEFAULT_MACHINE_NAME "STM32F103VET6"

View File

@ -25,9 +25,7 @@
* Geeetech GTM32 Mini A30 board pin assignments
*/
#if NOT_TARGET(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "GTM32 Pro VB"
#define DEFAULT_MACHINE_NAME "STM32F103VET6"

View File

@ -26,9 +26,7 @@
* http://www.geeetech.com/wiki/index.php/File:Hardware_GTM32_PRO_VB.pdf
*/
#if NOT_TARGET(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "GTM32 Pro VB/VD"
#define DEFAULT_MACHINE_NAME "STM32F103VET6"

View File

@ -25,9 +25,7 @@
* Geeetech GTM32 Rev. B board pin assignments
*/
#if NOT_TARGET(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_INFO_NAME "GTM32 Rev B"
#define DEFAULT_MACHINE_NAME "M201"

View File

@ -28,9 +28,9 @@
* Pin assignments for 32-bit JGAurora A5S & A1
*/
#if NOT_TARGET(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#elif HOTENDS > 1 || E_STEPPERS > 1
#include "env_validate.h"
#if HOTENDS > 1 || E_STEPPERS > 1
#error "JGAurora A5S A1 only supports one hotend / E-stepper. Comment out this line to continue."
#endif

View File

@ -25,9 +25,9 @@
* MKS Robin nano (STM32F130VET6) board pin assignments
*/
#if NOT_TARGET(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#elif HOTENDS > 1 || E_STEPPERS > 1
#include "env_validate.h"
#if HOTENDS > 1 || E_STEPPERS > 1
#error "MKS Robin E3P only supports one hotend / E-stepper. Comment out this line to continue."
#elif HAS_FSMC_TFT
#error "MKS Robin E3P doesn't support FSMC-based TFT displays."

View File

@ -25,9 +25,7 @@
* MKS Robin E3 & E3D (STM32F103RCT6) common board pin assignments
*/
#if NOT_TARGET(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#endif
#include "env_validate.h"
#define BOARD_NO_NATIVE_USB

View File

@ -21,9 +21,9 @@
*/
#pragma once
#if NOT_TARGET(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#elif HOTENDS > 1 || E_STEPPERS > 1
#include "env_validate.h"
#if HOTENDS > 1 || E_STEPPERS > 1
#error "MKS Robin Lite only supports one hotend / E-stepper. Comment out this line to continue."
#endif

View File

@ -25,9 +25,9 @@
* MKS Robin Lite 3 (STM32F103RCT6) board pin assignments
*/
#if NOT_TARGET(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#elif HOTENDS > 2 || E_STEPPERS > 2
#include "env_validate.h"
#if HOTENDS > 2 || E_STEPPERS > 2
#error "MKS Robin Lite3 supports up to 2 hotends / E-steppers. Comment out this line to continue."
#endif

View File

@ -25,9 +25,9 @@
* MKS Robin mini (STM32F130VET6) board pin assignments
*/
#if NOT_TARGET(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#elif HOTENDS > 1 || E_STEPPERS > 1
#include "env_validate.h"
#if HOTENDS > 1 || E_STEPPERS > 1
#error "MKS Robin mini only supports one hotend / E-stepper. Comment out this line to continue."
#endif

View File

@ -25,9 +25,9 @@
* MKS Robin pro (STM32F103ZET6) board pin assignments
*/
#if NOT_TARGET(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#elif HOTENDS > 3 || E_STEPPERS > 3
#include "env_validate.h"
#if HOTENDS > 3 || E_STEPPERS > 3
#error "MKS Robin pro supports up to 3 hotends / E-steppers. Comment out this line to continue."
#endif

View File

@ -21,9 +21,7 @@
*/
#pragma once
#if NOT_TARGET(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#endif
#include "env_validate.h"
/**
* 21017 Victor Perez Marlin for stm32f1 test

View File

@ -21,9 +21,7 @@
*/
#pragma once
#if NOT_TARGET(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#endif
#include "env_validate.h"
/**
* 21017 Victor Perez Marlin for stm32f1 test

View File

@ -28,9 +28,9 @@
* https://github.com/MarlinFirmware/Marlin/files/3401484/x5sa-main_board-2.pdf
*/
#if NOT_TARGET(__STM32F1__)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#elif HOTENDS > 2 || E_STEPPERS > 2
#include "env_validate.h"
#if HOTENDS > 2 || E_STEPPERS > 2
#error "Trigorilla Pro supports up to 2 hotends / E-steppers. Comment out this line to continue."
#endif