F_CPU = 8000000UL
BAUD = 57600
-PROGRAMMER_TYPE = arduino
+PROGRAMMER_TYPE = usbasp
CC = avr-gcc
OBJCOPY = avr-objcopy
check-dev:
- $(AVRDUDE) -p m328p -c $(PROGRAMMER_TYPE) -b $(BAUD) -P /dev/ttyUSB0
+ $(AVRDUDE) -p t25 -c $(PROGRAMMER_TYPE) -b $(BAUD)
flash:
- $(AVRDUDE) -p m328p -c $(PROGRAMMER_TYPE) -b $(BAUD) -P /dev/ttyUSB0 -U flash:w:flash.hex:i
+ $(AVRDUDE) -p t25 -c $(PROGRAMMER_TYPE) -b $(BAUD) -U flash:w:hbc.hex:i
read-flash-bin:
- $(AVRDUDE) -p m328p -c $(PROGRAMMER_TYPE) -b $(BAUD) -P /dev/ttyUSB0 -U flash:r:flash.bin:r
+ $(AVRDUDE) -p t25 -c $(PROGRAMMER_TYPE) -b $(BAUD) -P /dev/ttyUSB0 -U flash:r:flash.bin:r