diff --git a/Makefile b/Makefile index 77684b902..ce3ffc588 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,7 @@ # is connected. # FUSES ........ Parameters for avrdude to flash the fuses appropriately. +#To compile for Arduino Mega 2560 R3 change atmega328p for atmega2560 DEVICE ?= atmega328p CLOCK = 16000000 PROGRAMMER ?= -c avrisp2 -P usb diff --git a/config.h b/config.h index 6fa9e88f6..1e6122e75 100644 --- a/config.h +++ b/config.h @@ -43,6 +43,7 @@ // Default cpu mappings. Grbl officially supports the Arduino Uno only. Other processor types // may exist from user-supplied templates or directly user-defined in cpu_map.h +// To compile for Arduino Mega 2560 change CPU_MAP_ATMEGA2560_HORUS #define CPU_MAP_ATMEGA328P_HORUS // Arduino Uno CPU for Horus Project // Define runtime command special characters. These characters are 'picked-off' directly from the diff --git a/cpu_map.h b/cpu_map.h index 2206a3193..4f76e37e7 100644 --- a/cpu_map.h +++ b/cpu_map.h @@ -189,35 +189,32 @@ //---------------------------------------------------------------------------------------- -#ifdef CPU_MAP_ATMEGA2560 // (Arduino Mega 2560) Working @EliteEng +#ifdef CPU_MAP_ATMEGA2560_HORUS // (Arduino Mega 2560) Working @EliteEng(McVillano version for BQ Ciclop) // Serial port pins #define SERIAL_RX USART0_RX_vect #define SERIAL_UDRE USART0_UDRE_vect - - // Increase Buffers to make use of extra SRAM - //#define RX_BUFFER_SIZE 256 - //#define TX_BUFFER_SIZE 128 - //#define BLOCK_BUFFER_SIZE 36 - //#define LINE_BUFFER_SIZE 100 - - // Define step pulse output pins. NOTE: All step bit pins must be on the same port. + + // Define laser pulse output pins. NOTE: All laser pins must be on the same port. + #define LASER_DDR DDRC + #define LASER_PORT PORTC + #define LASER1_BIT 6 // MEGA2560 Digital pin 31 + #define LASER2_BIT 7 // MEGA2560 Digital pin 30 + #define LASER3_BIT 0 //Just to avoid error compilating + #define LASER4_BIT 2 //Just to avoid error compilating + #define LASER_MASK ((1<