Tweak tests, consolidate pins target validation (#21254)
This commit is contained in:
26
Marlin/src/pins/stm32f1/env_validate.h
Normal file
26
Marlin/src/pins/stm32f1/env_validate.h
Normal 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
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
||||
|
@ -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."
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user