0
0
Fork 0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2025-01-22 09:42:34 +00:00

🔨 Some boards with both LPC1768/9 (#27586)

This commit is contained in:
ellensp 2025-01-09 11:40:57 +13:00 committed by Scott Lahteine
parent 30697cb53f
commit 83278bdc17
5 changed files with 20 additions and 9 deletions

View file

@ -22,12 +22,17 @@
#ifndef ENV_VALIDATE_H
#define ENV_VALIDATE_H
#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."
#if NOT_TARGET(MCU_LPC1768, MCU_LPC1769)
#if ENABLED(ALLOW_LPC1768_OR_9)
#error "Oops! Make sure you have the LPC1768 or LPC1769 environment selected in your IDE."
#elif ENABLED(REQUIRE_LPC1769)
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
#else
#error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
#endif
#endif
#undef ALLOW_LPC1768_OR_9
#undef REQUIRE_LPC1769
#endif
#endif // ENV_VALIDATE_H

View file

@ -25,6 +25,7 @@
* Makerbase MKS SBASE pin assignments
*/
#define ALLOW_LPC1768_OR_9
#include "env_validate.h"
#ifndef BOARD_INFO_NAME

View file

@ -22,8 +22,12 @@
#ifndef ENV_VALIDATE_H
#define ENV_VALIDATE_H
#if NOT_TARGET(MCU_LPC1769)
#if ENABLED(ALLOW_LPC1768_OR_9) && NOT_TARGET(MCU_LPC1768, MCU_LPC1769)
#error "Oops! Make sure you have the LPC1768 or LPC1769 environment selected in your IDE."
#elif NOT_TARGET(MCU_LPC1769)
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
#endif
#endif
#undef ALLOW_LPC1768_OR_9
#endif // ENV_VALIDATE_H

View file

@ -26,6 +26,7 @@
* See https://smoothieware.github.io/Webif-pack/documentation/web/html/smoothieboard.html
*/
#define ALLOW_LPC1768_OR_9
#include "env_validate.h"
#define BOARD_INFO_NAME "Smoothieboard"

View file

@ -458,7 +458,7 @@
#elif MB(RAMPS_14_RE_ARM_EFB, RAMPS_14_RE_ARM_EEB, RAMPS_14_RE_ARM_EFF, RAMPS_14_RE_ARM_EEF, RAMPS_14_RE_ARM_SF)
#include "lpc1768/pins_RAMPS_RE_ARM.h" // LPC1768 env:LPC1768
#elif MB(MKS_SBASE)
#include "lpc1768/pins_MKS_SBASE.h" // LPC1768 env:LPC1768
#include "lpc1768/pins_MKS_SBASE.h" // LPC1768/9 env:LPC1768 env:LPC1769
#elif MB(AZSMZ_MINI)
#include "lpc1768/pins_AZSMZ_MINI.h" // LPC1768 env:LPC1768
#elif MB(BIQU_BQ111_A4)
@ -497,7 +497,7 @@
#elif MB(COHESION3D_MINI)
#include "lpc1769/pins_COHESION3D_MINI.h" // LPC1769 env:LPC1769
#elif MB(SMOOTHIEBOARD)
#include "lpc1769/pins_SMOOTHIEBOARD.h" // LPC1769 env:LPC1769
#include "lpc1769/pins_SMOOTHIEBOARD.h" // LPC1768/9 env:LPC1768 env:LPC1769
#elif MB(TH3D_EZBOARD)
#include "lpc1769/pins_TH3D_EZBOARD.h" // LPC1769 env:LPC1769
#elif MB(BTT_SKR_V1_4_TURBO)