From 50a7c0f04fe0fda1aaec08bb86eea75cf4664d63 Mon Sep 17 00:00:00 2001 From: tslil clingman Date: Sat, 16 Jan 2021 19:37:18 -0500 Subject: It works, but it's too slow --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile') 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) -- cgit v1.2.3