Subversion Repositories group.electronics

Rev

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

Rev 130 Rev 132
Line 1... Line 1...
1
 
1
 
2
DEVICE=attiny24
2
DEVICE=attiny85
3
F_CPU=8000000
3
F_CPU=16500000
4
HFUSE=0xdf
4
HFUSE=0xdd
5
LFUSE=0xe2
5
LFUSE=0xe1
6
 
6
 
7
HDUSE=0xdf	# Default fuses for device
7
HDUSE=0xdf	# Default fuses for device
8
LDUSE=0x62
8
LDUSE=0x62
9
 
9
 
10
PROGTYPE=avrispmkii
10
PROGTYPE=avrispmkii
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
# Use this one to trip out unused functions
18
# Use this one to rip out unused functions
19
COMPILE = avr-gcc -mtiny-stack  -Wall -Wl,-gc-section -fdata-sections -ffunction-sections -Os -DDEBUG_LEVEL=0  -mmcu=$(DEVICE) $(INCLUDES) $(VALUES)
19
COMPILE = avr-gcc -mtiny-stack  -Wall -Wl,-gc-section -fdata-sections -ffunction-sections -Os -DDEBUG_LEVEL=0  -mmcu=$(DEVICE) $(INCLUDES) $(VALUES)
20
 
20
 
21
OBJECTS = main.o
21
OBJECTS = main.o
22
OBJECTS += lib/avrutil.o 
22
OBJECTS += lib/avrutil.o 
23
OBJECTS += lib/hc595.o
-
 
24
OBJECTS += lib/usiTwiSlave.o
-
 
25
OBJECTS += lib/twires.o
-
 
26
 
23
 
-
 
24
#OBJECTS += lib/hc595.o
-
 
25
#OBJECTS += lib/usiTwiSlave.o
-
 
26
#OBJECTS += lib/twires.o
27
#OBJECTS += lib/uart.o 
27
#OBJECTS += lib/uart.o 
28
#OBJECTS += lib/twi.o 
28
#OBJECTS += lib/twi.o 
29
#OBJECTS += lib/wire.o 
29
#OBJECTS += lib/wire.o 
30
#OBJECTS += lib/lcd.o 
30
#OBJECTS += lib/lcd.o 
31
#OBJECTS += lib/e2p.o 
31
#OBJECTS += lib/e2p.o