diff options
| author | tslil clingman <tslil@posteo.de> | 2021-01-16 19:37:18 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | 50a7c0f04fe0fda1aaec08bb86eea75cf4664d63 (patch) | |
| tree | 23e7c1a11df4bfa1fbb7f55beb2439366c762f7e /Makefile | |
| parent | 153453f34107fb5eb861c79e1f7f8b14b8649581 (diff) | |
It works, but it's too slow
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |
