Add support for overriding DEVICE and PROGRAMMER
By setting environment variables. example: PROGRAMMER=-c arduino -P /dev/tty.usbmodemfa131 make flash
This commit is contained in:
parent
4d3c720bcc
commit
f5b1761406
4
Makefile
4
Makefile
@ -27,9 +27,9 @@
|
||||
# is connected.
|
||||
# FUSES ........ Parameters for avrdude to flash the fuses appropriately.
|
||||
|
||||
DEVICE = atmega328p
|
||||
DEVICE ?= atmega328p
|
||||
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 \
|
||||
eeprom.o settings.o planner.o nuts_bolts.o limits.o print.o
|
||||
# FUSES = -U hfuse:w:0xd9:m -U lfuse:w:0x24:m
|
||||
|
Loading…
Reference in New Issue
Block a user