summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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)