From a6617782523c17e00aa79641552aad090fa830dc Mon Sep 17 00:00:00 2001 From: cprezzi Date: Wed, 12 Jul 2017 18:34:50 +0200 Subject: [PATCH] Made board switchable in config.h --- grbl/config.h | 9 ++---- grbl/cpu_map.h | 88 ++++++++++++-------------------------------------- 2 files changed, 23 insertions(+), 74 deletions(-) diff --git a/grbl/config.h b/grbl/config.h index 0f018b6..ba82d01 100644 --- a/grbl/config.h +++ b/grbl/config.h @@ -32,20 +32,17 @@ // Define board type for pin map and default settings. -//#define CPU_MAP_SMOOTHIEBOARD // Smoothieboard (NXP LPC1769 MCU) -#define CPU_MAP_C3D_REMIX // Cohesion3D Remix (NXP LPC1769 MCU) +#define CPU_MAP_SMOOTHIEBOARD // Smoothieboard (NXP LPC1769 MCU) +//#define CPU_MAP_C3D_REMIX // Cohesion3D Remix (NXP LPC1769 MCU) //#define CPU_MAP_C3D_MINI // Cohesion3D Mini (NXP LPC1769 MCU) //#define CPU_MAP_MKS_SBASE // MKS SBASE Board (NXP LPC1768 MCU) -//#define CPU_MAP_AZTEEG_X5 // Azteeg X5 boards with NXP LPC1769 mcu +//#define CPU_MAP_AZTEEG_X5 // Azteeg X5 Board (NXP LPC1769 MCU) // Define machine type for machine specific defaults //#define DEFAULTS_GENERIC #define DEFAULTS_K40 //#define DEFAULTS_FABKIT -// For machines with A axis (like rotation axis) -#define ENABLE_A_AXIS - // Serial baud rate // #define BAUD_RATE 230400 #define BAUD_RATE 115200 diff --git a/grbl/cpu_map.h b/grbl/cpu_map.h index 4d4ae20..d53f42c 100644 --- a/grbl/cpu_map.h +++ b/grbl/cpu_map.h @@ -162,11 +162,7 @@ #define X_STEP_BIT 0 #define Y_STEP_BIT 1 #define Z_STEP_BIT 2 - #ifdef ENABLE_A_AXIS - #define A_STEP_BIT 3 - #endif - //#define B_STEP_BIT 8 - //#define C_STEP_BIT 9 + #define A_STEP_BIT 3 #define STEP_MASK ((1<