From edf5f145013aa28ffbc7f19f874cd489a92f8449 Mon Sep 17 00:00:00 2001 From: rodri Date: Sat, 5 Jun 2021 11:10:23 +0000 Subject: public release. --- asm/blink/makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 asm/blink/makefile (limited to 'asm/blink/makefile') diff --git a/asm/blink/makefile b/asm/blink/makefile new file mode 100644 index 0000000..4790211 --- /dev/null +++ b/asm/blink/makefile @@ -0,0 +1,17 @@ +CC=avr-gcc +AS=avr-as + +PORT=/dev/ttyACM0 +TARG=blink + +all: build + +build: + $(AS) -mmcu=atmega328p -o $(TARG).elf $(TARG).s + avr-objcopy -j .text -j .data -O ihex $(TARG).elf $(TARG).hex + +burn: + avrdude -v -p atmega328p -c arduino -P $(PORT) -b 115200 -D -U flash:w:$(TARG).hex + +clean: + rm -f $(TARG).elf $(TARG).hex -- cgit v1.2.3