Merge pull request #120 from tmpvar/configurable-makefile

Add support for overriding DEVICE and PROGRAMMER
This commit is contained in:
Sonny Jeon 2012-09-21 08:32:37 -07:00
commit 7eb85de821

View File

@ -27,9 +27,9 @@
# is connected. # is connected.
# FUSES ........ Parameters for avrdude to flash the fuses appropriately. # FUSES ........ Parameters for avrdude to flash the fuses appropriately.
DEVICE = atmega328p DEVICE ?= atmega328p
CLOCK = 16000000 CLOCK = 16000000
PROGRAMMER = -c avrisp2 -P usb PROGRAMMER ?= -c avrisp2 -P usb
OBJECTS = main.o motion_control.o gcode.o spindle_control.o serial.o protocol.o stepper.o \ OBJECTS = main.o motion_control.o gcode.o spindle_control.o serial.o protocol.o stepper.o \
eeprom.o settings.o planner.o nuts_bolts.o limits.o print.o eeprom.o settings.o planner.o nuts_bolts.o limits.o print.o
# FUSES = -U hfuse:w:0xd9:m -U lfuse:w:0x24:m # FUSES = -U hfuse:w:0xd9:m -U lfuse:w:0x24:m