Rev 569 | Rev 903 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 569 | Rev 890 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | # System specific configuration file |
1 | # System specific configuration file |
| 2 | # Rename this file to system.inc and then modify the params |
2 | # Rename this file to system.inc and then modify the params below |
| 3 | # make sure the second ULFLAGS is uncommented first time you program a node with bios |
- | |
| 4 | - | ||
| 5 | 3 | ||
| 6 | # Define the command used to upload BIOS to the node |
4 | # Define the command used to upload BIOS to the node |
| 7 | # It will be executed as $(UPLOAD) $(ULFLAGS). |
5 | # It will be executed as $(UPLOAD) $(ULFLAGS). |
| 8 | # $(MCU) is the AVR to use and the file to upload is $(BIOSDIR)/$(BIOSTARGET).hex |
6 | # $(MCU) is the AVR device to use and the file to upload is $(BIOSDIR)/$(BIOSTARGET).hex |
| - | 7 | #You may need to change 'avrisp2' below if you have another type of programmer device |
|
| 9 | 8 | ||
| 10 | UPLOAD = avrdude |
9 | UPLOAD = avrdude |
| 11 | ULFLAGS = -p $(MCU) -P usb -c avrisp2 -U flash:w:$(BIOSDIR)/$(BIOSTARGET).hex |
10 | ULFLAGS = -p $(MCU) -P usb -c avrisp2 -U flash:w:$(BIOSDIR)/$(BIOSTARGET).hex |
| 12 | 11 | ||
| 13 | AVRDUDE_WRITE_FUSEBITS = -u |
12 | AVRDUDE_WRITE_FUSEBITS = -u |
| Line 18... | Line 17... | ||
| 18 | AVRDUDE_WRITE_FUSEBITS += -U hfuse:w:$(HIGHFUSE):m |
17 | AVRDUDE_WRITE_FUSEBITS += -U hfuse:w:$(HIGHFUSE):m |
| 19 | endif |
18 | endif |
| 20 | ifdef LOWFUSE |
19 | ifdef LOWFUSE |
| 21 | AVRDUDE_WRITE_FUSEBITS += -U lfuse:w:$(LOWFUSE):m |
20 | AVRDUDE_WRITE_FUSEBITS += -U lfuse:w:$(LOWFUSE):m |
| 22 | endif |
21 | endif |
| 23 | 22 | ||
| 24 | #this line should not be commented when you program a node with bios |
- | |
| 25 | #when this line is uncommented the avr will be programmed with fuses automatically (fuses is defined in bios.inc) |
23 | #when this line is uncommented the avr will be programmed with fuses automatically (fuses is defined in bios.inc) |
| 26 | ULFLAGS += $(AVRDUDE_WRITE_FUSEBITS) |
24 | ULFLAGS += $(AVRDUDE_WRITE_FUSEBITS) |
| 27 | 25 | ||
| 28 | #Commands used to upload a new version of bios over can, see makefile for more details |
26 | #Commands used to upload a new version of bios over can, see makefile for more details |
| 29 | CANUPLOAD = mono ../../../../PcSoftware/canDude/canDude.exe |
27 | CANUPLOAD = mono ../../../../PcSoftware/canDude/canDude.exe |
| 30 | CANULFLAGS = -h localhost -p 1200 |
28 | CANULFLAGS = -h localhost -p 1200 |
| - | 29 | ||
| - | 30 | ##### BUILD BINARIES ##### |
|
| - | 31 | #Define the binaries to use on your system, if not in path then add path (example: AWK=/usr/bin/awk) |
|
| - | 32 | ||
| - | 33 | # on BSD/MAC this should be MD5SUM = md5 |
|
| - | 34 | MD5SUM = md5sum |
|
| - | 35 | ||
| - | 36 | # on cygwin (windows) and perhaps other platforms this should be AWK = gawk |
|
| - | 37 | AWK = awk |
|
| - | 38 | ||
| - | 39 | SHELL = sh |
|
| - | 40 | CC = avr-gcc |
|
| - | 41 | OBJCOPY = avr-objcopy |
|
| - | 42 | OBJDUMP = avr-objdump |
|
| - | 43 | SIZE = avr-size |
|
| - | 44 | NM = avr-nm |
|
| - | 45 | COPY = cp |
|
| - | 46 | RM = rm -f |
|
| - | 47 | MKDIR = mkdir |
|
| - | 48 | AR = avr-ar |
|
| - | 49 | UUIDGEN = uuidgen |
|
| - | 50 | CUT = cut |
|
| - | 51 | GREP = grep |
|
| - | 52 | CAT = cat |
|
| - | 53 | ECHO = echo |
|
| - | 54 | ||