From 72ef50b17df34a80083457f860b1922ebfde2e9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elmo=20M=C3=A4ntynen?= Date: Sun, 21 Jul 2013 15:11:04 +0300 Subject: [PATCH] Refactor config.h to allow defaults for chips/boards with different pin mappings --- config.h | 73 +++++++------------------------------------ config_default_2560.h | 70 +++++++++++++++++++++++++++++++++++++++++ config_default_328p.h | 66 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 147 insertions(+), 62 deletions(-) create mode 100644 config_default_2560.h create mode 100644 config_default_328p.h diff --git a/config.h b/config.h index aa427e7..9c768cf 100644 --- a/config.h +++ b/config.h @@ -30,69 +30,18 @@ // Serial baud rate #define BAUD_RATE 9600 -// Define pin-assignments -// NOTE: All step bit and direction pins must be on the same port. -#define STEPPING_DDR DDRD -#define STEPPING_PORT PORTD -#define X_STEP_BIT 2 // Uno Digital Pin 2 -#define Y_STEP_BIT 3 // Uno Digital Pin 3 -#define Z_STEP_BIT 4 // Uno Digital Pin 4 -#define X_DIRECTION_BIT 5 // Uno Digital Pin 5 -#define Y_DIRECTION_BIT 6 // Uno Digital Pin 6 -#define Z_DIRECTION_BIT 7 // Uno Digital Pin 7 -#define STEP_MASK ((1<