From a5d1e8f6c82cbb5f8a67fcd0f4fc158892f369b1 Mon Sep 17 00:00:00 2001 From: "Michael D. M. Dryden" Date: Mon, 13 Jul 2015 15:45:52 -0400 Subject: [PATCH] genericized makefiles --- DSTAT/Makefile | 4 ++-- DSTAT/config.mk | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/DSTAT/Makefile b/DSTAT/Makefile index 87f0ebb..617acc5 100644 --- a/DSTAT/Makefile +++ b/DSTAT/Makefile @@ -487,9 +487,9 @@ rebuilddoc: cleandoc doc program: all flash # Flash µC - flash and disables JTAG -AVRDUDE_FLAGS = -p x256a3u -c $(AVRDUDE_PROG) -P $(AVRDUDE_PORT) -U flash:w:dstat-firmware.hex:i -U fuse4:w:0xff:m +AVRDUDE_FLAGS = -p $(AVRDUDE_DEV) -c $(AVRDUDE_PROG) -P $(AVRDUDE_PORT) -U flash:w:$(TARGET):e -U fuse4:w:0xff:m -flash: $(TARGET).hex +flash: $(TARGET) avrdude $(AVRDUDE_FLAGS) diff --git a/DSTAT/config.mk b/DSTAT/config.mk index a0f9b72..95d0626 100644 --- a/DSTAT/config.mk +++ b/DSTAT/config.mk @@ -44,6 +44,7 @@ MCU = atxmega256a3u F_CPU = 20000000 # Programming settings +AVRDUDE_DEV = x256a3u AVRDUDE_PROG = avrispmkII AVRDUDE_PORT = usb -- GitLab