Subversion Repositories HomeAutomation

Rev

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

Rev 880 Rev 1415
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, the build will then automatically set it to whatever gets generated (see config.h)
12
# leave as <GENERATE_HW> at first compile, the build will then automatically set it to whatever gets generated (see config.h)
13
# Never set this manually if you are not sure what you are doing
13
# Never set this manually if you are not sure what you are doing
14
NODE_HW_ID=<GENERATE_HW>
14
NODE_HW_ID=<GENERATE_HW>
15
 
15
 
16
# example:
16
# example:
17
#NODE_HW_ID=0x12345678 
17
#NODE_HW_ID=0x12345678 
18
 
18
 
19
# 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)
20
NODE_ID=0x02UL
20
NODE_ID=0x02UL
21
# 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
22
F_CPU=8000000UL
22
F_CPU=8000000UL
23
 
23
 
24
#---MEGA8---
24
#---MEGA8---
25
#MCU=atmega8
25
#MCU=atmega8
26
#HIGHFUSE=0xd4
26
#HIGHFUSE=0xd4
27
#LOWFUSE=0x24
27
#LOWFUSE=0x24
28
#BOOT_START=0x1e00
28
#BOOT_START=0x1e00
29
 
29
 
30
#---MEGA88---
30
#---MEGA88---
31
#MCU=atmega88
31
#MCU=atmega88
32
#HIGHFUSE=0xdc
32
#HIGHFUSE=0xdc
33
#LOWFUSE=0xe2
33
#LOWFUSE=0xe2
34
#EXTFUSE=0x04
34
#EXTFUSE=0x04
35
#BOOT_START=0x1e00
35
#BOOT_START=0x1e00
36
 
36
 
37
#---MEGA168---
37
#---MEGA168---
38
MCU=atmega168
38
MCU=atmega168
39
HIGHFUSE=0xdc
39
HIGHFUSE=0xdc
40
LOWFUSE=0xe2
40
LOWFUSE=0xe2
41
EXTFUSE=0x02
41
EXTFUSE=0x02
42
BOOT_START=0x3c00
42
BOOT_START=0x3c00
-
 
43
 
-
 
44
#---MEGA328P---
-
 
45
#MCU=atmega328p
-
 
46
#HIGHFUSE=0xdc
-
 
47
#LOWFUSE=0xe2
-
 
48
#EXTFUSE=0x04
-
 
49
#BOOT_START=0x7c00
43
 
50
 
44
# CAN configuration (old nodes: PORTB, DDRB, PB2)
51
# CAN configuration (old nodes: PORTB, DDRB, PB2)
45
CAN_CONTROLLER=MCP2515
52
CAN_CONTROLLER=MCP2515
46
MCP_CS_PORT=PORTC
53
MCP_CS_PORT=PORTC
47
MCP_CS_DDR=DDRC
54
MCP_CS_DDR=DDRC
48
MCP_CS_BIT=PC3
55
MCP_CS_BIT=PC3
49
MCP_CAN_BITRATE_KBPS=250
56
MCP_CAN_BITRATE_KBPS=250
50
MCP_CLOCK_FREQ_MHZ=20
57
MCP_CLOCK_FREQ_MHZ=20
51
MCP_CLOCK_PRESC=1
58
MCP_CLOCK_PRESC=1
52
 
59
 
53
 
60
 
54
 
61
 
55
# Everything below is just help
62
# Everything below is just help
56
 
63
 
57
# For 				MCP_CLOCK_FREQ_MHZ=20	MCP_CLOCK_FREQ_MHZ=16
64
# For 				MCP_CLOCK_FREQ_MHZ=20	MCP_CLOCK_FREQ_MHZ=16
58
# MCP_CLOCK_PRESC		external clock			external clock
65
# MCP_CLOCK_PRESC		external clock			external clock
59
# 		1 					20MHz					16MHz 
66
# 		1 					20MHz					16MHz 
60
# 		2					10MHz					8MHz
67
# 		2					10MHz					8MHz
61
# 		4					5MHz					4MHz
68
# 		4					5MHz					4MHz
62
# 		8					2.5MHz					2MHz
69
# 		8					2.5MHz					2MHz
63
# Make sure to change F_CPU accordingly if using external clock on AVR (LOWFUSE)
70
# Make sure to change F_CPU accordingly if using external clock on AVR (LOWFUSE)
64
 
71
 
65
 
72
 
66
#Some common settings of fuses
73
#Some common settings of fuses
67
#LOWFUSE for mega88 and mega168	
74
#LOWFUSE for mega88 and mega168	
68
#0xe7		#CKDIV8=1, external crystal
75
#0xe7		#CKDIV8=1, external crystal
69
#0xe0		#CKDIV8=1, external clock   (used if mcu is clocked from can-controller, F_CPU should be 16MHz or 20MHz)
76
#0xe0		#CKDIV8=1, external clock   (used if mcu is clocked from can-controller, F_CPU should be 16MHz or 20MHz)
70
#0xe2		#CKDIV8=1, internal RC      (internal AVR-clock, F_CPU should be 8MHz)
77
#0xe2		#CKDIV8=1, internal RC      (internal AVR-clock, F_CPU should be 8MHz)
71
#LOWFUSE for mega8
78
#LOWFUSE for mega8
72
#0x24		#BODLEVEL = 4.0V, BODEN=enabled, internal 8MHz
79
#0x24		#BODLEVEL = 4.0V, BODEN=enabled, internal 8MHz
73
#0x20		#BODLEVEL = 4.0V, BODEN=enabled, external clock
80
#0x20		#BODLEVEL = 4.0V, BODEN=enabled, external clock