/* cpu_map.h - CPU and pin mapping configuration file Part of Grbl Copyright (c) 2012-2016 Sungeun K. Jeon for Gnea Research LLC 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 . */ /* The cpu_map.h files serve as a central pin mapping selection file for different processor types or alternative pin layouts. This version of Grbl supports only the Arduino Mega2560. */ #ifndef cpu_map_h #define cpu_map_h #ifdef CPU_MAP_2560_INITIAL // (Arduino Mega 2560) Working @EliteEng // Serial port interrupt vectors #define SERIAL_RX USART0_RX_vect #define SERIAL_UDRE USART0_UDRE_vect // Define step pulse output pins. NOTE: All step bit pins must be on the same port. #define STEP_DDR DDRA #define STEP_PORT PORTA #define STEP_PIN PINA #define X_STEP_BIT 2 // MEGA2560 Digital Pin 24 #define Y_STEP_BIT 3 // MEGA2560 Digital Pin 25 #define Z_STEP_BIT 4 // MEGA2560 Digital Pin 26 #define STEP_MASK ((1<