Subversion Repositories group.electronics

Rev

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

Rev 136 Rev 139
Line 43... Line 43...
43
 
43
 
44
main.hex:	main.bin
44
main.hex:	main.bin
45
	rm -f main.hex main.eep.hex
45
	rm -f main.hex main.eep.hex
46
	avr-objcopy -j .text -j .data -O ihex main.bin main.hex
46
	avr-objcopy -j .text -j .data -O ihex main.bin main.hex
47
	./checksize main.bin 4096 256
47
	./checksize main.bin 4096 256
48
# do the checksize script as our last action to allow successful compilation
-
 
49
# on Windows with WinAVR where the Unix commands will fail.
-
 
50
 
48
 
51
disasm:	main.bin
49
disasm:	main.bin
52
	avr-objdump -d main.bin
50
	avr-objdump -d main.bin
53
 
51
 
54
 
-
 
55
clean:
52
clean:
56
	rm -f main.hex main.lst main.obj main.cof main.list main.map main.eep.hex main.bin *.o lib/*.o main.s
53
	rm -f main.hex main.lst main.obj main.cof main.list main.map main.eep.hex main.bin *.o lib/*.o main.s
57
	
54
	
58
# Functions interfacing to the device
55
# Functions interfacing to the device
59
flash:	all
56
flash:	all
Line 69... Line 66...
69
	sudo $(AVRDUDE) -U calibration:r:/dev/stdout:i | head -1
66
	sudo $(AVRDUDE) -U calibration:r:/dev/stdout:i | head -1
70
	
67
	
71
readfuse:
68
readfuse:
72
	sudo $(AVRDUDE) -U lfuse:r:-:h -U hfuse:r:-:h -U efuse:r:-:h
69
	sudo $(AVRDUDE) -U lfuse:r:-:h -U hfuse:r:-:h -U efuse:r:-:h
73
	
70
	
74
$(CMDLINE): usbtest.c
71
usbtest: usbtest.c
75
	gcc -I ./libusb/include -L ./libusb/lib/gcc -O -Wall usbtest.c -o usbtest -lusb
72
	gcc -o usbtest usbtest.c -lusb -lncurses