Subversion Repositories group.electronics

Rev

Rev 122 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 122 Rev 123
Line 1... Line 1...
1
 
1
 
2
DEVICE=atmega168
2
DEVICE=atmega328p
3
F_CPU=16000000
3
F_CPU=16000000
4
HFUSE=0xdf
4
HFUSE=0xdf
5
LFUSE=0xff
5
LFUSE=0xff
6
 
6
 
7
HDUSE=0xdf	# Default fuses for device
7
HDUSE=0xdf	# Default fuses for device
Line 13... Line 13...
13
INCLUDES=-I. -I./lib/
13
INCLUDES=-I. -I./lib/
14
VALUES=-DF_CPU=$(F_CPU)
14
VALUES=-DF_CPU=$(F_CPU)
15
AVRDUDE = avrdude -c $(PROGTYPE) -P $(PROGPORT) -p $(DEVICE)
15
AVRDUDE = avrdude -c $(PROGTYPE) -P $(PROGPORT) -p $(DEVICE)
16
COMPILE = avr-gcc -Wall -Os -DDEBUG_LEVEL=0  -mmcu=$(DEVICE) $(INCLUDES) $(VALUES) 
16
COMPILE = avr-gcc -Wall -Os -DDEBUG_LEVEL=0  -mmcu=$(DEVICE) $(INCLUDES) $(VALUES) 
17
 
17
 
18
OBJECTS = lib/uart.o main.o
18
OBJECTS = lib/uart.o lib/avrutil.o lib/twi.o lib/wire.o lib/lcd.o lib/e2p.o lib/mio.o main.o
19
 
19
 
20
# Compiling:
20
# Compiling:
21
all:	main.hex
21
all:	main.hex
22
 
22
 
23
.c.o:
23
.c.o: