Line 14... |
Line 14... |
14 |
# to a Keyspan USB to serial converter to a Mac running Mac OS X. |
14 |
# to a Keyspan USB to serial converter to a Mac running Mac OS X. |
15 |
# Choose your favorite programmer and interface. |
15 |
# Choose your favorite programmer and interface. |
16 |
|
16 |
|
17 |
DEFINES += -DDEBUG |
17 |
DEFINES += -DDEBUG |
18 |
DEFINES += -DDEBUG_LEVEL=1 |
18 |
DEFINES += -DDEBUG_LEVEL=1 |
- |
|
19 |
DEFINES += -DF_CPU=12000000 |
19 |
COMPILE = avr-gcc -Wall -O2 -Iusbdrv -I. -mmcu=atmega8 $(DEFINES) |
20 |
COMPILE = avr-gcc -Wall -O2 -Iusbdrv -I. -mmcu=atmega8 $(DEFINES) |
20 |
|
21 |
|
21 |
OBJECTS = usbdrv/usbdrv.o usbdrv/usbdrvasm.o usbdrv/oddebug.o main.o |
22 |
OBJECTS = usbdrv/usbdrv.o usbdrv/usbdrvasm.o usbdrv/oddebug.o main.o |
22 |
|
23 |
|
23 |
|
24 |
|
Line 70... |
Line 71... |
70 |
./checksize firmware.bin 8192 960 |
71 |
./checksize firmware.bin 8192 960 |
71 |
# do the checksize script as our last action to allow successful compilation |
72 |
# do the checksize script as our last action to allow successful compilation |
72 |
# on Windows with WinAVR where the Unix commands will fail. |
73 |
# on Windows with WinAVR where the Unix commands will fail. |
73 |
|
74 |
|
74 |
program: firmware.hex |
75 |
program: firmware.hex |
75 |
avrdude -c usbasp -p atmega8 -U lfuse:w:0x9f:m -U hfuse:w:0xc9:m -U flash:w:firmware.hex |
76 |
avrdude -P /dev/ttyUSB0 -c stk500v2 -B 50 -p atmega8 -U lfuse:w:0x9f:m -U hfuse:w:0xc9:m -U flash:w:firmware.hex |
76 |
|
77 |
|
77 |
program-nodep: |
78 |
program-nodep: |
78 |
avrdude -c usbasp -p atmega8 -U lfuse:w:0x9f:m -U hfuse:w:0xc9:m -U flash:w:firmware.hex |
79 |
avrdude -P /dev/ttyUSB0 -c stk500v2 -B 50 -p atmega8 -U lfuse:w:0x9f:m -U hfuse:w:0xc9:m -U flash:w:firmware.hex |
79 |
|
80 |
|
80 |
disasm: firmware.bin |
81 |
disasm: firmware.bin |
81 |
avr-objdump -d firmware.bin |
82 |
avr-objdump -d firmware.bin |
82 |
|
83 |
|
83 |
cpp: |
84 |
cpp: |