92 $(AVRDUDE) -P $(PORT) -c stk500v2 -b $(ISP_BAUD) -i 1 -p $(MCU) -V -U flash:r:$(PRG)_backup.hex:i |
93 $(AVRDUDE) -P $(PORT) -c stk500v2 -b $(ISP_BAUD) -i 1 -p $(MCU) -V -U flash:r:$(PRG)_backup.hex:i |
93 |
94 |
94 fuse: |
95 fuse: |
95 $(AVRDUDE) $(PROGRAMMER) -p $(MCU) -V $(FUSES) |
96 $(AVRDUDE) $(PROGRAMMER) -p $(MCU) -V $(FUSES) |
96 |
97 |
|
98 calibration: |
|
99 $(AVRDUDE) $(PROGRAMMER) -p $(MCU) -U calibration:r:calibration.data:h |
|
100 $(AVRDUDE) $(PROGRAMMER) -p $(MCU) -U eeprom:w:`cut -d ',' -f 3 ./calibration.data`,0xff:m |
|
101 |
97 clean: |
102 clean: |
98 rm -rf *.o *.elf *.elf.src *.s *.i |
103 rm -rf *.o *.elf *.elf.src *.s *.i |
99 rm -rf driver/*.o |
104 rm -rf driver/*.o |
100 |
105 |
101 upgrade: code |
106 upgrade: code |