From 499248c5ef53796028ade415bcefe5cf71c4f98a Mon Sep 17 00:00:00 2001 From: Michael Neumann Date: Sun, 21 Jan 2018 19:04:45 +0100 Subject: [PATCH] Allow override of RAMPS CS Pins --- Marlin/pins_RAMPS.h | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/Marlin/pins_RAMPS.h b/Marlin/pins_RAMPS.h index baefc267cd..54067ae02c 100644 --- a/Marlin/pins_RAMPS.h +++ b/Marlin/pins_RAMPS.h @@ -91,27 +91,37 @@ #define X_STEP_PIN 54 #define X_DIR_PIN 55 #define X_ENABLE_PIN 38 -#define X_CS_PIN 53 +#ifndef X_CS_PIN + #define X_CS_PIN 53 +#endif #define Y_STEP_PIN 60 #define Y_DIR_PIN 61 #define Y_ENABLE_PIN 56 -#define Y_CS_PIN 49 +#ifndef Y_CS_PIN + #define Y_CS_PIN 49 +#endif #define Z_STEP_PIN 46 #define Z_DIR_PIN 48 #define Z_ENABLE_PIN 62 -#define Z_CS_PIN 40 +#ifndef Z_CS_PIN + #define Z_CS_PIN 40 +#endif #define E0_STEP_PIN 26 #define E0_DIR_PIN 28 #define E0_ENABLE_PIN 24 -#define E0_CS_PIN 42 +#ifndef E0_CS_PIN + #define E0_CS_PIN 42 +#endif #define E1_STEP_PIN 36 #define E1_DIR_PIN 34 #define E1_ENABLE_PIN 30 -#define E1_CS_PIN 44 +#ifndef E1_CS_PIN + #define E1_CS_PIN 44 +#endif /** * Default pins for TMC software SPI @@ -128,7 +138,6 @@ #endif #endif - #if ENABLED(HAVE_TMC2208) /** * TMC2208 stepper drivers