|
|
@ -350,11 +350,11 @@ LDFLAGS = -lm
|
|
|
|
AVRDUDE_PORT = $(UPLOAD_PORT)
|
|
|
|
AVRDUDE_PORT = $(UPLOAD_PORT)
|
|
|
|
AVRDUDE_WRITE_FLASH = -Uflash:w:$(BUILD_DIR)/$(TARGET).hex:i
|
|
|
|
AVRDUDE_WRITE_FLASH = -Uflash:w:$(BUILD_DIR)/$(TARGET).hex:i
|
|
|
|
ifeq ($(shell uname -s), Linux)
|
|
|
|
ifeq ($(shell uname -s), Linux)
|
|
|
|
AVRDUDE_CONF = $(ARDUINO_INSTALL_DIR)/hardware/tools/avrdude.conf
|
|
|
|
AVRDUDE_CONF = /etc/avrdude/avrdude.conf
|
|
|
|
else
|
|
|
|
else
|
|
|
|
AVRDUDE_CONF = $(ARDUINO_INSTALL_DIR)/hardware/tools/avr/etc/avrdude.conf
|
|
|
|
AVRDUDE_CONF = $(ARDUINO_INSTALL_DIR)/hardware/tools/avr/etc/avrdude.conf
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
AVRDUDE_FLAGS = -q -q -D -C$(AVRDUDE_CONF) \
|
|
|
|
AVRDUDE_FLAGS = -D -C$(AVRDUDE_CONF) \
|
|
|
|
-p$(MCU) -P$(AVRDUDE_PORT) -c$(AVRDUDE_PROGRAMMER) \
|
|
|
|
-p$(MCU) -P$(AVRDUDE_PORT) -c$(AVRDUDE_PROGRAMMER) \
|
|
|
|
-b$(UPLOAD_RATE)
|
|
|
|
-b$(UPLOAD_RATE)
|
|
|
|
|
|
|
|
|
|
|
|