From c677e37b81e75ed4e766785551ca623801779229 Mon Sep 17 00:00:00 2001 From: Harald Wolff Date: Fri, 10 Nov 2017 11:27:24 +0100 Subject: [PATCH] Added AVR_PORT= parameter for avrdude --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e5ed841..5ae9a38 100644 --- a/Makefile +++ b/Makefile @@ -81,6 +81,9 @@ endif ifeq (,$(AVR_BITCLK)) AVR_BITCLK=16 endif +ifeq (,$(AVR_PORT)) + AVR_PORT=usb: +endif .SILENT: @@ -183,7 +186,7 @@ $(BASE)/.build/%.o: $(CURDIR)/src/%.txt $(BASE)/.build/.%.dep: avrdude: $(BASE)/bin/$(FINALNAME).hex - $(AVRDUDE) -c $(AVR_PROG) -p $(AVR_MCU) -P usb: -B $(AVR_BITCLK) $(AVRDUDE_OPERATIONS) -U flash:w:$(BASE)/bin/$(FINALNAME).hex + $(AVRDUDE) -c $(AVR_PROG) -p $(AVR_MCU) -P $(AVR_PORT) -B $(AVR_BITCLK) $(AVRDUDE_OPERATIONS) -U flash:w:$(BASE)/bin/$(FINALNAME).hex include $(wildcard $(MODULEDEPS))