keyboard: Use serial bootloader in Makefile
This commit is contained in:
parent
45e606797b
commit
9bed136cd5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user