Subversion Repositories HomeAutomation

Rev

Rev 769 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 769 Rev 779
1
## Node specific configuration file for bios
1
## Node specific configuration file for bios
2
 
2
 
3
HW_NAME=CoreCard
3
HW_NAME=CoreCard
4
HW_VERSION=1
4
HW_VERSION=1
5
 
5
 
6
# Uncomment to make node autostart after X time-msgs has been sent to node
6
# Uncomment to make node autostart after X time-msgs has been sent to node
7
# Do not choose 0 as X, also 1 is a bad choice
7
# Do not choose 0 as X, also 1 is a bad choice
8
# This should not be used on nodes with application under developement
8
# This should not be used on nodes with application under developement
9
#AUTOSTART=5
9
#AUTOSTART=5
10
 
10
 
11
# Node hardware id, this number should be unique on your network
11
# Node hardware id, this number should be unique on your network
12
# leave as <GENERATE_HW> at first compile, then set it to whatever gets generated (see config.h)
12
# leave as <GENERATE_HW> at first compile, the build will then autmoatically set it to whatever gets generated (see config.h)
-
 
13
# Never set this manually if you are not sure what you are doing
13
NODE_HW_ID=<GENERATE_HW>
14
NODE_HW_ID=<GENERATE_HW>
14
 
15
 
15
# example:
16
# example:
16
#NODE_HW_ID=0x12345678 
17
#NODE_HW_ID=0x12345678 
17
 
18
 
18
# This number should be unique on your network (for nodes with HW_ID it's not clear if this id is needed)
19
# This number should be unique on your network (for nodes with HW_ID it's not clear if this id is needed)
19
NODE_ID=0x02UL
20
NODE_ID=0x02UL
20
# F_CPU is the clock frequency of your microcontroller, check fuses below for external/internal clock source
21
# F_CPU is the clock frequency of your microcontroller, check fuses below for external/internal clock source
21
F_CPU=8000000UL
22
F_CPU=8000000UL
22
 
23
 
23
#---MEGA8---
24
#---MEGA8---
24
#MCU=atmega8
25
#MCU=atmega8
25
#HIGHFUSE=0xd4
26
#HIGHFUSE=0xd4
26
#LOWFUSE=0x24
27
#LOWFUSE=0x24
27
#BOOT_START=0x1e00
28
#BOOT_START=0x1e00
28
 
29
 
29
#---MEGA88---
30
#---MEGA88---
30
#MCU=atmega88
31
#MCU=atmega88
31
#HIGHFUSE=0xdc
32
#HIGHFUSE=0xdc
32
#LOWFUSE=0xe2
33
#LOWFUSE=0xe2
33
#EXTFUSE=0x04
34
#EXTFUSE=0x04
34
#BOOT_START=0x1e00
35
#BOOT_START=0x1e00
35
 
36
 
36
#---MEGA168---
37
#---MEGA168---
37
MCU=atmega168
38
MCU=atmega168
38
HIGHFUSE=0xdc
39
HIGHFUSE=0xdc
39
LOWFUSE=0xe2
40
LOWFUSE=0xe2
40
EXTFUSE=0x02
41
EXTFUSE=0x02
41
BOOT_START=0x3c00
42
BOOT_START=0x3c00
42
 
43
 
43
# CAN configuration (old nodes: PORTB, DDRB, PB2)
44
# CAN configuration (old nodes: PORTB, DDRB, PB2)
44
CAN_CONTROLLER=MCP2515
45
CAN_CONTROLLER=MCP2515
45
MCP_CS_PORT=PORTC
46
MCP_CS_PORT=PORTC
46
MCP_CS_DDR=DDRC
47
MCP_CS_DDR=DDRC
47
MCP_CS_BIT=PC3
48
MCP_CS_BIT=PC3
48
MCP_CAN_BITRATE_KBPS=250
49
MCP_CAN_BITRATE_KBPS=250
49
MCP_CLOCK_FREQ_MHZ=20
50
MCP_CLOCK_FREQ_MHZ=20
50
MCP_CLOCK_PRESC=1
51
MCP_CLOCK_PRESC=1
51
 
52
 
52
 
53
 
53
 
54
 
54
# Everything below is just help
55
# Everything below is just help
55
 
56
 
56
# For 				MCP_CLOCK_FREQ_MHZ=20	MCP_CLOCK_FREQ_MHZ=16
57
# For 				MCP_CLOCK_FREQ_MHZ=20	MCP_CLOCK_FREQ_MHZ=16
57
# MCP_CLOCK_PRESC		external clock			external clock
58
# MCP_CLOCK_PRESC		external clock			external clock
58
# 		1 					20MHz					16MHz 
59
# 		1 					20MHz					16MHz 
59
# 		2					10MHz					8MHz
60
# 		2					10MHz					8MHz
60
# 		4					5MHz					4MHz
61
# 		4					5MHz					4MHz
61
# 		8					2.5MHz					2MHz
62
# 		8					2.5MHz					2MHz
62
# Make sure to change F_CPU accordingly if using external clock on AVR (LOWFUSE)
63
# Make sure to change F_CPU accordingly if using external clock on AVR (LOWFUSE)
63
 
64
 
64
 
65
 
65
#Some common settings of fuses
66
#Some common settings of fuses
66
#LOWFUSE for mega88 and mega168	
67
#LOWFUSE for mega88 and mega168	
67
#0xe7		#CKDIV8=1, external crystal
68
#0xe7		#CKDIV8=1, external crystal
68
#0xe0		#CKDIV8=1, external clock   (used if mcu is clocked from can-controller, F_CPU should be 16MHz or 20MHz)
69
#0xe0		#CKDIV8=1, external clock   (used if mcu is clocked from can-controller, F_CPU should be 16MHz or 20MHz)
69
#0xe2		#CKDIV8=1, internal RC      (internal AVR-clock, F_CPU should be 8MHz)
70
#0xe2		#CKDIV8=1, internal RC      (internal AVR-clock, F_CPU should be 8MHz)
70
#LOWFUSE for mega8
71
#LOWFUSE for mega8
71
#0x24		#BODLEVEL = 4.0V, BODEN=enabled, internal 8MHz
72
#0x24		#BODLEVEL = 4.0V, BODEN=enabled, internal 8MHz
72
#0x20		#BODLEVEL = 4.0V, BODEN=enabled, external clock
73
#0x20		#BODLEVEL = 4.0V, BODEN=enabled, external clock