From 00fd09189daf30be6bb2bc21233d0f7c2b0339f3 Mon Sep 17 00:00:00 2001 From: Sonny Jeon Date: Thu, 8 Nov 2012 19:23:47 -0700 Subject: [PATCH] Housekeeping. - Added some more notes to config.h. - Added the ability to override some of the #defines around Grbl in config.h, like planner buffer size, line buffer size, serial send/receive buffers. Mainly to centralize the configurations to be able to port to different microcontrollers later. --- config.h | 31 ++++++++++++++++++++++++++++++- limits.c | 1 + limits.h | 2 -- planner.h | 4 +++- protocol.h | 4 +++- serial.h | 9 +++++++-- stepper.c | 3 +++ stepper.h | 4 ---- 8 files changed, 47 insertions(+), 11 deletions(-) diff --git a/config.h b/config.h index c0f9ad6..72aad6f 100755 --- a/config.h +++ b/config.h @@ -27,6 +27,7 @@ #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 @@ -44,6 +45,7 @@ #define STEPPERS_DISABLE_BIT 0 // Uno Digital Pin 8 #define STEPPERS_DISABLE_MASK (1< -// Some useful constants -#define TICKS_PER_MICROSECOND (F_CPU/1000000) -#define CYCLES_PER_ACCELERATION_TICK ((TICKS_PER_MICROSECOND*1000000)/ACCELERATION_TICKS_PER_SECOND) - // Initialize and setup the stepper motor subsystem void st_init();