Mercurial > templog
comparison Makefile @ 12:3c27bfbd7f3a
Add simple_ds18b20.c etc
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 19 May 2012 21:47:09 +0800 |
parents | 06bedbe8540d |
children | 4838bfcb3504 |
comparison
equal
deleted
inserted
replaced
11:06bedbe8540d | 12:3c27bfbd7f3a |
---|---|
20 DEVICE = atmega328 | 20 DEVICE = atmega328 |
21 PROGDEVICE = atmega328p | 21 PROGDEVICE = atmega328p |
22 CLOCK = 2000000 | 22 CLOCK = 2000000 |
23 PROGRAMMER = #-c stk500v2 -P avrdoper | 23 PROGRAMMER = #-c stk500v2 -P avrdoper |
24 PROGRAMMER = -c stk500 -P ~/dev/stk500 -p $(PROGDEVICE) -B 2 | 24 PROGRAMMER = -c stk500 -P ~/dev/stk500 -p $(PROGDEVICE) -B 2 |
25 SOURCE_1WIRE = onewire.c ds18x20.c uart_addon.c crc8.c uart.c | 25 SOURCE_1WIRE = onewire.c simple_ds18b20.c crc8.c |
26 SOURCE_SD = ff.c mmc.c | 26 SOURCE_SD = ff.c mmc.c |
27 SOURCE = main.c | 27 SOURCE = main.c |
28 SOURCE += $(SOURCE_1WIRE) | 28 SOURCE += $(SOURCE_1WIRE) |
29 #SOURCE += $(SOURCE_SD) | 29 #SOURCE += $(SOURCE_SD) |
30 LIBS = -lm | 30 LIBS = -lm |
81 | 81 |
82 fuse: | 82 fuse: |
83 $(AVRDUDE) $(FUSES) | 83 $(AVRDUDE) $(FUSES) |
84 | 84 |
85 # Xcode uses the Makefile targets "", "clean" and "install" | 85 # Xcode uses the Makefile targets "", "clean" and "install" |
86 install: flash fuse | 86 install: flash |
87 | 87 |
88 # if you use a bootloader, change the command below appropriately: | 88 # if you use a bootloader, change the command below appropriately: |
89 load: all | 89 load: all |
90 bootloadHID main.hex | 90 bootloadHID main.hex |
91 | 91 |