Subversion Repositories group.electronics

Rev

Rev 79 | Rev 84 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 79 Rev 81
Line 15... Line 15...
15
 
15
 
16
COMPILE = avr-gcc -Wall -Os -Iusbdrv -I. -mmcu=$(DEVICE) -DF_CPU=16500000 -DDEBUG_LEVEL=0
16
COMPILE = avr-gcc -Wall -Os -Iusbdrv -I. -mmcu=$(DEVICE) -DF_CPU=16500000 -DDEBUG_LEVEL=0
17
# NEVER compile the final product with debugging! Any debug output will
17
# NEVER compile the final product with debugging! Any debug output will
18
# distort timing so that the specs can't be met.
18
# distort timing so that the specs can't be met.
19
 
19
 
20
OBJECTS = usbdrv/usbdrv.o usbdrv/usbdrvasm.o usbdrv/oddebug.o main.o
20
#OBJECTS = usbdrv/usbdrv.o usbdrv/usbdrvasm.o usbdrv/oddebug.o main.o
-
 
21
OBJECTS = usbdrv/usbdrv.o usbdrv/usbdrvasm.o  main.o
21
 
22
 
22
# symbolic targets:
23
# symbolic targets:
23
all:	main.hex
24
all:	main.hex
24
 
25
 
25
.c.o:
26
.c.o:
Line 57... Line 58...
57
#        | +------------------ CKOUT (clock output on CKOUT pin -> disabled)
58
#        | +------------------ CKOUT (clock output on CKOUT pin -> disabled)
58
#        +-------------------- CKDIV8 (divide clock by 8 -> don't divide)
59
#        +-------------------- CKDIV8 (divide clock by 8 -> don't divide)
59
fuse:
60
fuse:
60
	$(AVRDUDE) -U hfuse:w:0xdd:m -U lfuse:w:0xe1:m
61
	$(AVRDUDE) -U hfuse:w:0xdd:m -U lfuse:w:0xe1:m
61
 
62
 
-
 
63
fusedef:
-
 
64
	$(AVRDUDE) -U hfuse:w:0xdf:m -Ulfuse:w:0x64:m
-
 
65
 
62
readcal:
66
readcal:
63
	$(AVRDUDE) -U calibration:r:/dev/stdout:i | head -1
67
	$(AVRDUDE) -U calibration:r:/dev/stdout:i | head -1
64
 
68
 
65
 
69
 
66
clean:
70
clean: