car004f/Makefile

changeset 152
e787f47c084b
parent 151
0e71b51c83a5
equal deleted inserted replaced
151:0e71b51c83a5 152:e787f47c084b
2 2
3 MCU=atmega8 3 MCU=atmega8
4 #FUSES=-U lfuse:w:0xAE:m -U hfuse:w:0xd9:m 4 #FUSES=-U lfuse:w:0xAE:m -U hfuse:w:0xd9:m
5 FUSES=-U lfuse:w:0x83:m -U hfuse:w:0xd8:m 5 FUSES=-U lfuse:w:0x83:m -U hfuse:w:0xd8:m
6 # original fuses: 83 / d8 6 # original fuses: 83 / d8
7
7 BOOTFUSES=-U lfuse:w:0xff:m -U hfuse:w:0xce:m 8 BOOTFUSES=-U lfuse:w:0xff:m -U hfuse:w:0xce:m
8 9
9 #F_CPU=4185600 10 #F_CPU=4185600
10 #F_CPU = 14318000 11 #F_CPU = 14318000
11 12
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

mercurial