diff options
| author | tslil <tslil@posteo.de> | 2021-01-16 19:37:18 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | 42a7a83a3bd81142038980c8e8cbbb40c41a5651 (patch) | |
| tree | 77c32222cd32e3a5a9c44c014a7833d9bb20d385 /Makefile | |
| parent | 2ad167622077b875a3d4157d27690a575c9248af (diff) | |
It works, but it's too slowmcu
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) |
