Browse Source

Use bootloader by default

k4be 2 years ago
parent
commit
cea09bd201
1 changed files with 4 additions and 3 deletions
  1. 4 3
      soft/Makefile

+ 4 - 3
soft/Makefile

@@ -9,6 +9,9 @@ VPATH   =
 ### Target device
 DEVICE  = atmega644p
 
+### Bootloader port
+PROGPORT ?= /dev/ttyUSB0
+
 ### Optimization level (0, 1, 2, 3, 4 or s)
 OPTIMIZE = s
 
@@ -41,7 +44,7 @@ OBJCOPY = avr-objcopy
 OBJDUMP = avr-objdump
 SIZE    = avr-size
 NM      = avr-nm
-AVRDUDE	= avrdude -c usbasp -p $(DEVICE)
+AVRDUDE	= avrdude -c arduino -b 230400 -P $(PROGPORT) -p $(DEVICE)
 
 
 # Define all object files
@@ -159,6 +162,4 @@ install: all
 	$(AVRDUDE) -U flash:w:$(PROJECT).hex
 reset:
 	$(AVRDUDE)
-fuses:
-	$(AVRDUDE) -U lfuse:w:0xff:m -U hfuse:w:0x11:m -U efuse:w:0xfe:m -B100