Rev 1667 | Details | Compare with Previous | Last modification | View Log | SVN | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 361 | andfri | 1 | # System specific configuration file |
| 890 | arune | 2 | # Rename this file to system.inc and then modify the params below |
| 361 | andfri | 3 | |
| 4 | # Define the command used to upload BIOS to the node |
||
| 5 | # It will be executed as $(UPLOAD) $(ULFLAGS). |
||
| 890 | arune | 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 |
||
| 361 | andfri | 8 | |
| 9 | UPLOAD = avrdude |
||
| 558 | arune | 10 | ULFLAGS = -p $(MCU) -P usb -c avrisp2 -U flash:w:$(BIOSDIR)/$(BIOSTARGET).hex |
| 361 | andfri | 11 | |
| 12 | AVRDUDE_WRITE_FUSEBITS = -u |
||
| 13 | ifdef EXTFUSE |
||
| 14 | AVRDUDE_WRITE_FUSEBITS += -U efuse:w:$(EXTFUSE):m |
||
| 15 | endif |
||
| 16 | ifdef HIGHFUSE |
||
| 17 | AVRDUDE_WRITE_FUSEBITS += -U hfuse:w:$(HIGHFUSE):m |
||
| 18 | endif |
||
| 19 | ifdef LOWFUSE |
||
| 20 | AVRDUDE_WRITE_FUSEBITS += -U lfuse:w:$(LOWFUSE):m |
||
| 21 | endif |
||
| 22 | |||
| 569 | arune | 23 | #when this line is uncommented the avr will be programmed with fuses automatically (fuses is defined in bios.inc) |
| 416 | arune | 24 | ULFLAGS += $(AVRDUDE_WRITE_FUSEBITS) |
| 437 | eqlazer | 25 | |
| 475 | arune | 26 | #Commands used to upload a new version of bios over can, see makefile for more details |
| 1700 | arune | 27 | CANUPLOAD = mono ../../../../PcSoftware/canDude/canDude.exe |
| 28 | CANULFLAGS = -h localhost -p 1200 |
||
| 29 | SETCONF = perl ../../../../PcSoftware/scripts/setConfig/setConfig.pl |
||
| 890 | arune | 30 | |
| 1700 | arune | 31 | #CANUPLOAD = ../../../../PcSoftware/scripts/atomDude.pl |
| 32 | #CANULFLAGS = -h localhost -p 1202 |
||
| 33 | #SETCONF = perl ../../../../PcSoftware/scripts/setConfig/setAtomConfig.pl |
||
| 1667 | runge | 34 | |
| 890 | arune | 35 | ##### BUILD BINARIES ##### |
| 36 | #Define the binaries to use on your system, if not in path then add path (example: AWK=/usr/bin/awk) |
||
| 37 | |||
| 38 | # on BSD/MAC this should be MD5SUM = md5 |
||
| 39 | MD5SUM = md5sum |
||
| 40 | |||
| 41 | # on cygwin (windows) and perhaps other platforms this should be AWK = gawk |
||
| 42 | AWK = awk |
||
| 43 | |||
| 44 | SHELL = sh |
||
| 45 | CC = avr-gcc |
||
| 46 | OBJCOPY = avr-objcopy |
||
| 47 | OBJDUMP = avr-objdump |
||
| 48 | SIZE = avr-size |
||
| 49 | NM = avr-nm |
||
| 50 | COPY = cp |
||
| 51 | RM = rm -f |
||
| 52 | MKDIR = mkdir |
||
| 53 | AR = avr-ar |
||
| 54 | UUIDGEN = uuidgen |
||
| 55 | CUT = cut |
||
| 56 | GREP = grep |
||
| 57 | CAT = cat |
||
| 58 | ECHO = echo |
||
| 903 | arune | 59 | PERL = perl |