From f5e7436a0284047dcf372ecd5ee963780874d0da Mon Sep 17 00:00:00 2001 From: Sonny Jeon Date: Sun, 29 Mar 2015 20:33:51 -0600 Subject: [PATCH 1/3] Fix for limit pin reporting compile-option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - The limit pin reporting wasn’t working correctly due to calling the wrong similarly-named function. Verified to be working now. --- grbl/report.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grbl/report.c b/grbl/report.c index 001c02d..ed27e51 100644 --- a/grbl/report.c +++ b/grbl/report.c @@ -496,8 +496,8 @@ void report_realtime_status() printPgmString(PSTR(",Lim:")); uint8_t idx; for (idx=0; idx Date: Fri, 22 May 2015 10:24:48 -0400 Subject: [PATCH 2/3] Splitting Cpu map into separate files. Makes comparison, addition of new ones easier --- grbl/cpu_map.h | 228 +------------------------------------- grbl/cpu_map_atmega2560.h | 114 +++++++++++++++++++ grbl/cpu_map_atmega328p.h | 122 ++++++++++++++++++++ 3 files changed, 241 insertions(+), 223 deletions(-) create mode 100644 grbl/cpu_map_atmega2560.h create mode 100644 grbl/cpu_map_atmega328p.h diff --git a/grbl/cpu_map.h b/grbl/cpu_map.h index 872e0bf..8623fdc 100644 --- a/grbl/cpu_map.h +++ b/grbl/cpu_map.h @@ -33,121 +33,7 @@ #ifdef CPU_MAP_ATMEGA328P // (Arduino Uno) Officially supported by Grbl. - // Define serial port pins and interrupt vectors. - #define SERIAL_RX USART_RX_vect - #define SERIAL_UDRE USART_UDRE_vect - - // Define step pulse output pins. NOTE: All step bit pins must be on the same port. - #define STEP_DDR DDRD - #define STEP_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 STEP_MASK ((1< Date: Fri, 22 May 2015 10:48:25 -0400 Subject: [PATCH 3/3] Fixing up comment blocks in headers --- grbl/cpu_map.h | 5 +++-- grbl/cpu_map_atmega2560.h | 22 ++++++++++++++++++++++ grbl/cpu_map_atmega328p.h | 24 ++++++++++++++++++++++++ 3 files changed, 49 insertions(+), 2 deletions(-) diff --git a/grbl/cpu_map.h b/grbl/cpu_map.h index 8623fdc..1781795 100644 --- a/grbl/cpu_map.h +++ b/grbl/cpu_map.h @@ -18,8 +18,9 @@ along with Grbl. If not, see . */ -/* The cpu_map.h file serves as a central pin mapping settings file for different processor - types, i.e. AVR 328p or AVR Mega 2560. Grbl officially supports the Arduino Uno, but the +/* The cpu_map.h file serves as a central pin mapping selection file for different processor + types, i.e. AVR 328p or AVR Mega 2560. Each processor has its own pin mapping file. + (i.e. cpu_map_atmega328p.h) Grbl officially supports the Arduino Uno, but the other supplied pin mappings are supplied by users, so your results may vary. */ // NOTE: This is still a work in progress. We are still centralizing the configurations to diff --git a/grbl/cpu_map_atmega2560.h b/grbl/cpu_map_atmega2560.h index 1c1ef39..b8a0aa2 100644 --- a/grbl/cpu_map_atmega2560.h +++ b/grbl/cpu_map_atmega2560.h @@ -1,3 +1,25 @@ +/* + cpu_map_atmega2560.h - CPU and pin mapping configuration file + Part of Grbl + + Copyright (c) 2012-2015 Sungeun K. Jeon + + Grbl is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Grbl is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Grbl. If not, see . +*/ + +/* This cpu_map file serves as a central pin mapping settings file for AVR Mega 2560 */ + #ifdef GRBL_PLATFORM #error "cpu_map already defined: GRBL_PLATFORM=" GRBL_PLATFORM #endif diff --git a/grbl/cpu_map_atmega328p.h b/grbl/cpu_map_atmega328p.h index 5d38011..8bb071d 100644 --- a/grbl/cpu_map_atmega328p.h +++ b/grbl/cpu_map_atmega328p.h @@ -1,3 +1,27 @@ +/* + cpu_map_atmega328p.h - CPU and pin mapping configuration file + Part of Grbl + + Copyright (c) 2012-2015 Sungeun K. Jeon + + Grbl is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Grbl is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Grbl. If not, see . +*/ + +/* This cpu_map file serves as a central pin mapping settings file for AVR 328p + used on the Arduino Uno */ + + #ifdef GRBL_PLATFORM #error "cpu_map already defined: GRBL_PLATFORM=" GRBL_PLATFORM #endif