Tweak tests, consolidate pins target validation (#21254)
This commit is contained in:
		
							
								
								
									
										26
									
								
								Marlin/src/pins/esp32/env_validate.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								Marlin/src/pins/esp32/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(ARDUINO_ARCH_ESP32)
 | 
			
		||||
  #error "Oops! Select an ESP32 board in 'Tools > Board.'"
 | 
			
		||||
#endif
 | 
			
		||||
@@ -27,9 +27,9 @@
 | 
			
		||||
 * for more info check https://atbox.tech/ and join to Facebook page E4d@box.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#if NOT_TARGET(ARDUINO_ARCH_ESP32)
 | 
			
		||||
  #error "Oops! Select an ESP32 board in 'Tools > Board.'"
 | 
			
		||||
#elif EXTRUDERS > 1 || E_STEPPERS > 1
 | 
			
		||||
#include "env_validate.h"
 | 
			
		||||
 | 
			
		||||
#if EXTRUDERS > 1 || E_STEPPERS > 1
 | 
			
		||||
  #error "E4d@box only supports one E Stepper. Comment out this line to continue."
 | 
			
		||||
#elif HOTENDS > 1
 | 
			
		||||
  #error "E4d@box only supports one hotend / E-stepper. Comment out this line to continue."
 | 
			
		||||
 
 | 
			
		||||
@@ -25,9 +25,7 @@
 | 
			
		||||
 * Espressif ESP32 (Tensilica Xtensa LX6) pin assignments
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#if NOT_TARGET(ARDUINO_ARCH_ESP32)
 | 
			
		||||
  "Oops! Select an ESP32 board in 'Tools > Board.'"
 | 
			
		||||
#endif
 | 
			
		||||
#include "env_validate.h"
 | 
			
		||||
 | 
			
		||||
#define BOARD_INFO_NAME "Espressif ESP32"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -27,9 +27,9 @@
 | 
			
		||||
 * Supports 4 stepper drivers, heated bed, single hotend.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#ifndef ARDUINO_ARCH_ESP32
 | 
			
		||||
  #error "Oops! Select an ESP32 board in 'Tools > Board.'"
 | 
			
		||||
#elif EXTRUDERS > 1 || E_STEPPERS > 1
 | 
			
		||||
#include "env_validate.h"
 | 
			
		||||
 | 
			
		||||
#if EXTRUDERS > 1 || E_STEPPERS > 1
 | 
			
		||||
  #error "FYSETC E4 only supports one E Stepper. Comment out this line to continue."
 | 
			
		||||
#elif HOTENDS > 1
 | 
			
		||||
  #error "FYSETC E4 only supports one hotend / E-stepper. Comment out this line to continue."
 | 
			
		||||
 
 | 
			
		||||
@@ -27,9 +27,9 @@
 | 
			
		||||
 * Supports 4 stepper drivers, heated bed, single hotend.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#if NOT_TARGET(ARDUINO_ARCH_ESP32)
 | 
			
		||||
  #error "Oops! Select an ESP32 board in 'Tools > Board.'"
 | 
			
		||||
#elif EXTRUDERS > 1 || E_STEPPERS > 1
 | 
			
		||||
#include "env_validate.h"
 | 
			
		||||
 | 
			
		||||
#if EXTRUDERS > 1 || E_STEPPERS > 1
 | 
			
		||||
  #error "MRR ESPA only supports one E Stepper. Comment out this line to continue."
 | 
			
		||||
#elif HOTENDS > 1
 | 
			
		||||
  #error "MRR ESPA only supports one hotend / E-stepper. Comment out this line to continue."
 | 
			
		||||
 
 | 
			
		||||
@@ -28,9 +28,9 @@
 | 
			
		||||
 * single hotend, and LCD controller.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#if NOT_TARGET(ARDUINO_ARCH_ESP32)
 | 
			
		||||
  #error "Oops! Select an ESP32 board in 'Tools > Board.'"
 | 
			
		||||
#elif EXTRUDERS > 2 || E_STEPPERS > 2
 | 
			
		||||
#include "env_validate.h"
 | 
			
		||||
 | 
			
		||||
#if EXTRUDERS > 2 || E_STEPPERS > 2
 | 
			
		||||
  #error "MRR ESPE only supports two E Steppers. Comment out this line to continue."
 | 
			
		||||
#elif HOTENDS > 1
 | 
			
		||||
  #error "MRR ESPE only supports one hotend / E-stepper. Comment out this line to continue."
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user