comparison Makefile @ 310:0a64532c1de1

Fill out more main.c structure Add onewire files
author Matt Johnston <matt@ucc.asn.au>
date Wed, 09 May 2012 00:22:28 +0800
parents 49e83333e546
children 9d538f674ff0
comparison
equal deleted inserted replaced
309:49e83333e546 310:0a64532c1de1
18 # FUSES ........ Parameters for avrdude to flash the fuses appropriately. 18 # FUSES ........ Parameters for avrdude to flash the fuses appropriately.
19 19
20 DEVICE = atmega328 20 DEVICE = atmega328
21 CLOCK = 1000000 21 CLOCK = 1000000
22 PROGRAMMER = #-c stk500v2 -P avrdoper 22 PROGRAMMER = #-c stk500v2 -P avrdoper
23 OBJECTS = main.o ff.o mmc.o 23 OBJECTS = main.o ff.o mmc.o onewire.o
24 FUSES = -U hfuse:w:0xd9:m -U lfuse:w:0x24:m 24 FUSES = -U hfuse:w:0xd9:m -U lfuse:w:0x24:m
25 25
26 # ATMega8 fuse bits used above (fuse bits for other devices are different!): 26 # ATMega8 fuse bits used above (fuse bits for other devices are different!):
27 # Example for 8 MHz internal oscillator 27 # Example for 8 MHz internal oscillator
28 # Fuse high byte: 28 # Fuse high byte:
47 47
48 48
49 # Tune the lines below only if you know what you are doing: 49 # Tune the lines below only if you know what you are doing:
50 50
51 AVRDUDE = avrdude $(PROGRAMMER) -p $(DEVICE) 51 AVRDUDE = avrdude $(PROGRAMMER) -p $(DEVICE)
52 COMPILE = avr-gcc -Wall -Os -DF_CPU=$(CLOCK) -mmcu=$(DEVICE) -g 52 COMPILE = avr-gcc -Wall -Os -DF_CPU=$(CLOCK) -mmcu=$(DEVICE) -g -std=c99
53 53
54 # symbolic targets: 54 # symbolic targets:
55 all: main.hex 55 all: main.hex
56 56
57 .c.o: 57 .c.o: