summaryrefslogtreecommitdiffstats
path: root/stepper_driver/estop/firmware/Makefile
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2020-01-04 20:07:07 +0100
committerMichael Buesch <m@bues.ch>2020-01-04 20:07:07 +0100
commitea92b5d3a7b232bd3025bbfb6b424394beac6504 (patch)
tree19b55002f21a6a76cb33a9c3c6536d447dfdffa6 /stepper_driver/estop/firmware/Makefile
parentb613c1f51665bc5a9ec2ce953f1c141cff20ca22 (diff)
downloadcnc-ea92b5d3a7b232bd3025bbfb6b424394beac6504.tar.xz
cnc-ea92b5d3a7b232bd3025bbfb6b424394beac6504.zip
estop: Use m8def.inc from avra
Signed-off-by: Michael Buesch <m@bues.ch>
Diffstat (limited to 'stepper_driver/estop/firmware/Makefile')
-rw-r--r--stepper_driver/estop/firmware/Makefile27
1 files changed, 14 insertions, 13 deletions
diff --git a/stepper_driver/estop/firmware/Makefile b/stepper_driver/estop/firmware/Makefile
index c81e703..758bd1c 100644
--- a/stepper_driver/estop/firmware/Makefile
+++ b/stepper_driver/estop/firmware/Makefile
@@ -1,22 +1,23 @@
-ASM ?= avra
-AVRDUDE ?= avrdude
-AVRDUDE_ARCH ?= m8
-AVRDUDE_SPEED ?= 1
-PROGRAMMER ?= avrisp2
-PROGPORT ?= usb
+ASM := avra
+ASMFLAGS := -I /usr/share/avra
+AVRDUDE := avrdude
+AVRDUDE_ARCH := m8
+AVRDUDE_SPEED := 1
+PROGRAMMER := avrisp2
+PROGPORT := usb
# Fuses: Int. RC Osc 8 MHz; 64ms SUT; BOD 4V; WDT always-on
-LFUSE = 0x24
-HFUSE = 0x99
+LFUSE := 0x24
+HFUSE := 0x99
-NAME = estop
-HEX = $(NAME).S.hex
+NAME := estop
+HEX := $(NAME).S.hex
all: $(HEX)
-$(HEX): $(NAME).S m8def.inc
- $(ASM) $(NAME).S
+$(HEX): $(NAME).S
+ $(ASM) $(ASMFLAGS) --listfile $(NAME).S.lst --listmac $(NAME).S
-srec_cat $(HEX) -Intel -Output $(NAME).S.bin -Binary
@echo
@echo "Successfully built the firmware"
@@ -41,4 +42,4 @@ writefuse:
-U hfuse:w:$(HFUSE):m
clean:
- -rm -f *~ *.cof *.hex *.obj *.bin *.bak *.cache.* *.o
+ -rm -f *~ *.cof *.hex *.obj *.bin *.lst *.bak *.o
bues.ch cgit interface