blackbox/Makefile

changeset 145
80be5eb283d3
parent 140
f910ad6ed0b6
equal deleted inserted replaced
144:8f07a8d15826 145:80be5eb283d3
1 PRG=main 1 PRG=main
2 2
3 MCU=atmega16 3 MCU=atmega16
4 #FUSES=-U lfuse:w:0x3f:m -U hfuse:w:0xd8:m 4 #FUSES=-U lfuse:w:0x3f:m -U hfuse:w:0xd8:m
5 FUSES=-U lfuse:w:0x2f:m -U hfuse:w:0xc8:m 5 #FUSES=-U lfuse:w:0x2f:m -U hfuse:w:0xc8:m
6 FUSES=-U lfuse:w:0x3c:m -U hfuse:w:0xc9:m
6 BOOTFUSES=-U lfuse:w:0xff:m -U hfuse:w:0xce:m 7 BOOTFUSES=-U lfuse:w:0xff:m -U hfuse:w:0xce:m
7 8
8 #F_CPU=4185600 9 #F_CPU=4185600
9 #F_CPU = 14318000 10 #F_CPU = 14318000
10 11
93 94
94 restore: 95 restore:
95 $(AVRDUDE) $(PROGRAMMER) -b $(ISP_BAUD) -i 1 -p $(MCU) -V -U flash:w:$(PRG).hex:i 96 $(AVRDUDE) $(PROGRAMMER) -b $(ISP_BAUD) -i 1 -p $(MCU) -V -U flash:w:$(PRG).hex:i
96 97
97 fuse: 98 fuse:
98 $(AVRDUDE) -c $(PROGRAMMER) -p $(MCU) -V $(FUSES) 99 $(AVRDUDE) $(PROGRAMMER) -p $(MCU) -V $(FUSES)
99 100
100 clean: 101 clean:
101 rm -rf *.o *.elf *.elf.src *.s *.i 102 rm -rf *.o *.elf *.elf.src *.s *.i
102 rm -rf driver/*.o 103 rm -rf driver/*.o
103 104

mercurial