Subversion Repositories HomeAutomation

Rev

Rev 1039 | Rev 1667 | Go to most recent revision | 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
559 andfri 27
CANUPLOAD         = mono ../../../../PcSoftware/canDude/canDude.exe
475 arune 28
CANULFLAGS        = -h localhost -p 1200
1039 runge 29
#CANUPLOAD          = ../../../../PcSoftware/Atom/atomDude.pl
30
#CANULFLAGS         = -h localhost -p 1202
1638 arune 31
SETCONF           = perl ../../../../PcSoftware/scripts/setConfig/setConfig.pl
890 arune 32
 
33
##### BUILD BINARIES #####
34
#Define the binaries to use on your system, if not in path then add path (example: AWK=/usr/bin/awk)
35
 
36
# on BSD/MAC this should be MD5SUM = md5
37
MD5SUM = md5sum
38
 
39
# on cygwin (windows) and perhaps other platforms this should be AWK = gawk
40
AWK = awk
41
 
42
SHELL = sh
43
CC = avr-gcc
44
OBJCOPY = avr-objcopy
45
OBJDUMP = avr-objdump
46
SIZE = avr-size
47
NM = avr-nm
48
COPY = cp
49
RM = rm -f
50
MKDIR = mkdir
51
AR = avr-ar
52
UUIDGEN = uuidgen
53
CUT = cut
54
GREP = grep
55
CAT = cat
56
ECHO = echo
903 arune 57
PERL = perl