From 54ae403094935f6b74773ca9af4f42688bdbe4d3 Mon Sep 17 00:00:00 2001 From: cprezzi Date: Wed, 12 Jul 2017 17:56:46 +0200 Subject: [PATCH] Made A-Axis switchable in config.h --- grbl/config.h | 3 ++ grbl/cpu_map.h | 104 ++++++++++++++++++++++++++++--------------------- 2 files changed, 63 insertions(+), 44 deletions(-) diff --git a/grbl/config.h b/grbl/config.h index 2774542..0f018b6 100644 --- a/grbl/config.h +++ b/grbl/config.h @@ -43,6 +43,9 @@ #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 691c62b..4d4ae20 100644 --- a/grbl/cpu_map.h +++ b/grbl/cpu_map.h @@ -162,7 +162,9 @@ #define X_STEP_BIT 0 #define Y_STEP_BIT 1 #define Z_STEP_BIT 2 - #define A_STEP_BIT 3 + #ifdef ENABLE_A_AXIS + #define A_STEP_BIT 3 + #endif //#define B_STEP_BIT 8 //#define C_STEP_BIT 9 #define STEP_MASK ((1<