From 9bed136cd5a3d460bae447f497cf9233ab0ee23a Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Sat, 26 Oct 2019 22:31:21 +0200 Subject: [PATCH] keyboard: Use serial bootloader in Makefile --- keyboard/avr/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keyboard/avr/Makefile b/keyboard/avr/Makefile index 789172f..8a68fd0 100644 --- a/keyboard/avr/Makefile +++ b/keyboard/avr/Makefile @@ -1,4 +1,5 @@ MCU=atmega8 +PDEV=/dev/ttyUSB1 CFLAGS=-g -Wall -mcall-prologues -mmcu=$(MCU) -Os -DF_CPU=8000000 LDFLAGS=-Wl,-gc-sections -Wl,-relax CC=avr-gcc @@ -17,8 +18,7 @@ clean: $(CC) $(CFLAGS) $(OBJECT_FILES) $(LDFLAGS) -o $@ program: $(TARGET).hex - avrdude -p $(MCU) -c usbasp -U flash:w:$(TARGET).hex - #avrdude -p $(MCU) -P /dev/ttyUSB1 -c arduino -b 57600 -U flash:w:$(TARGET).hex + avrdude -p $(MCU) -P $(PDEV) -c arduino -b 19200 -U flash:w:$(TARGET).hex fuse: avrdude -p m8 -c usbasp -U lfuse:w:0xe4:m -U hfuse:w:0xd9:m