Tweak tests, consolidate pins target validation (#21254)
This commit is contained in:
		
							
								
								
									
										30
									
								
								Marlin/src/pins/lpc1768/env_validate.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								Marlin/src/pins/lpc1768/env_validate.h
									
									
									
									
									
										Normal 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(REQUIRE_LPC1769) && NOT_TARGET(MCU_LPC1769)
 | 
			
		||||
  #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
 | 
			
		||||
#elif DISABLED(REQUIRE_LPC1769) && NOT_TARGET(MCU_LPC1768)
 | 
			
		||||
  #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#undef REQUIRE_LPC1769
 | 
			
		||||
@@ -25,9 +25,7 @@
 | 
			
		||||
 * AZSMZ MINI pin assignments
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#if NOT_TARGET(MCU_LPC1768)
 | 
			
		||||
  #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
 | 
			
		||||
#endif
 | 
			
		||||
#include "env_validate.h"
 | 
			
		||||
 | 
			
		||||
#define BOARD_INFO_NAME "AZSMZ MINI"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -29,9 +29,7 @@
 | 
			
		||||
 *  BOARD_BIQU_BQ111_A4 (Hotend, Fan, Bed)
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#if NOT_TARGET(MCU_LPC1768)
 | 
			
		||||
  #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
 | 
			
		||||
#endif
 | 
			
		||||
#include "env_validate.h"
 | 
			
		||||
 | 
			
		||||
#ifndef BOARD_INFO_NAME
 | 
			
		||||
  #define BOARD_INFO_NAME "BIQU Thunder B300 V1.0"
 | 
			
		||||
 
 | 
			
		||||
@@ -29,9 +29,7 @@
 | 
			
		||||
 *  BOARD_BIQU_BQ111_A4 (Hotend, Fan, Bed)
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#if NOT_TARGET(MCU_LPC1768)
 | 
			
		||||
  #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
 | 
			
		||||
#endif
 | 
			
		||||
#include "env_validate.h"
 | 
			
		||||
 | 
			
		||||
#define BOARD_INFO_NAME "BIQU BQ111-A4"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -21,14 +21,12 @@
 | 
			
		||||
 */
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#include "env_validate.h"
 | 
			
		||||
 | 
			
		||||
#ifndef BOARD_INFO_NAME
 | 
			
		||||
  #define BOARD_INFO_NAME "BTT SKR V1.4"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef BOARD_CUSTOM_BUILD_FLAGS
 | 
			
		||||
  #define BOARD_CUSTOM_BUILD_FLAGS -DLPC_PINCFG_UART3_P4_28
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
//
 | 
			
		||||
// SD Connection
 | 
			
		||||
//
 | 
			
		||||
 
 | 
			
		||||
@@ -21,13 +21,7 @@
 | 
			
		||||
 */
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if ENABLED(SKR_HAS_LPC1769)
 | 
			
		||||
  #if NOT_TARGET(MCU_LPC1769)
 | 
			
		||||
    #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
 | 
			
		||||
  #endif
 | 
			
		||||
#elif NOT_TARGET(MCU_LPC1768)
 | 
			
		||||
  #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
 | 
			
		||||
#endif
 | 
			
		||||
#include "env_validate.h"
 | 
			
		||||
 | 
			
		||||
// If you have the Big tree tech driver expansion module, enable HAS_BTT_EXP_MOT
 | 
			
		||||
// https://github.com/bigtreetech/BTT-Expansion-module/tree/master/BTT%20EXP-MOT
 | 
			
		||||
 
 | 
			
		||||
@@ -21,9 +21,7 @@
 | 
			
		||||
 */
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if NOT_TARGET(MCU_LPC1768)
 | 
			
		||||
  #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
 | 
			
		||||
#endif
 | 
			
		||||
#include "env_validate.h"
 | 
			
		||||
 | 
			
		||||
#define BOARD_INFO_NAME "GMARSH X6 REV1"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -25,11 +25,7 @@
 | 
			
		||||
 * MKS SBASE pin assignments
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#if defined(MKS_HAS_LPC1769) && NOT_TARGET(MCU_LPC1769)
 | 
			
		||||
  #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
 | 
			
		||||
#elif !defined(MKS_HAS_LPC1769) && NOT_TARGET(MCU_LPC1768)
 | 
			
		||||
  #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
 | 
			
		||||
#endif
 | 
			
		||||
#include "env_validate.h"
 | 
			
		||||
 | 
			
		||||
#ifndef BOARD_INFO_NAME
 | 
			
		||||
  #define BOARD_INFO_NAME   "MKS SBASE"
 | 
			
		||||
 
 | 
			
		||||
@@ -25,9 +25,7 @@
 | 
			
		||||
 * MKS SGEN-L pin assignments
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#if NOT_TARGET(MCU_LPC1768)
 | 
			
		||||
  #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
 | 
			
		||||
#endif
 | 
			
		||||
#include "env_validate.h"
 | 
			
		||||
 | 
			
		||||
#define BOARD_INFO_NAME   "MKS SGen-L"
 | 
			
		||||
#define BOARD_WEBSITE_URL "github.com/makerbase-mks/MKS-SGEN_L"
 | 
			
		||||
 
 | 
			
		||||
@@ -35,9 +35,7 @@
 | 
			
		||||
 | 
			
		||||
// Numbers in parentheses () are the corresponding mega2560 pin numbers
 | 
			
		||||
 | 
			
		||||
#if NOT_TARGET(MCU_LPC1768)
 | 
			
		||||
  #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
 | 
			
		||||
#endif
 | 
			
		||||
#include "env_validate.h"
 | 
			
		||||
 | 
			
		||||
#define BOARD_INFO_NAME "Re-ARM RAMPS 1.4"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -25,9 +25,7 @@
 | 
			
		||||
 * Selena Compact pin assignments
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#if NOT_TARGET(MCU_LPC1768)
 | 
			
		||||
  #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
 | 
			
		||||
#endif
 | 
			
		||||
#include "env_validate.h"
 | 
			
		||||
 | 
			
		||||
#define BOARD_INFO_NAME   "Selena Compact"
 | 
			
		||||
#define BOARD_WEBSITE_URL "github.com/Ales2-k/Selena"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user