aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2021-01-16 19:37:18 -0500
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commit50a7c0f04fe0fda1aaec08bb86eea75cf4664d63 (patch)
tree23e7c1a11df4bfa1fbb7f55beb2439366c762f7e /Makefile
parent153453f34107fb5eb861c79e1f7f8b14b8649581 (diff)
It works, but it's too slow
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index bc31852..6814aee 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ SIZE=size
# -------------------------------------------------------------------
# MCU stuff
-MCU=atmega32
+MCU=atmega32u4
F_CPU=20000000UL
ACC=avr-gcc
ACFLAGS=-Os -Wall -fpack-struct -fshort-enums -funsigned-bitfields -funsigned-char -I$(IDIR)
@@ -24,7 +24,7 @@ AOBJCOPY=avr-objcopy
AOBJSIZE=avr-size
AVRDUDE=avrdude
-ADFLAGS=-c usbasp -p t24
+ADFLAGS=-p $(MCU) -c avr109 -b 57600 -P /dev/serial/by-id/usb-Arduino_LLC_Arduino_Micro-if00
TARGET=mcu
AHEX=$(TARGET).hex
@@ -61,7 +61,7 @@ ASUMMARY: $(AOBJ)
@$(AOBJSIZE) $(AOBJ) $(AHEX)
upload: $(TARGET).hex
- $(AVRDUDE) $(ADFLAGS) -U flash:w:$<
+ $(AVRDUDE) $(ADFLAGS) -D -U flash:w:$<:i
clean:
rm -f $(PROG) $(STAT) $(OBJS)