From ddfcbcf6a424a4e8d4d090b13f1d17c856673f52 Mon Sep 17 00:00:00 2001 From: Harald Christian Joachim Wolff Date: Tue, 17 Oct 2017 08:44:05 +0200 Subject: [PATCH] Added AVR_BITCLK --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 45206cb..e5ed841 100644 --- a/Makefile +++ b/Makefile @@ -78,6 +78,9 @@ endif ifeq (,$(AVR_PROG)) AVR_PROG=avrisp2 endif +ifeq (,$(AVR_BITCLK)) + AVR_BITCLK=16 +endif .SILENT: @@ -180,7 +183,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 8 $(AVRDUDE_OPERATIONS) -U flash:w:$(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 include $(wildcard $(MODULEDEPS))