Subversion Repositories HomeAutomation

Rev

Details | Last modification | View Log | SVN | RSS feed

Rev Author Line No. Line
554 andfri 1
## Node specific configuration file for bios
361 andfri 2
 
3
HW_NAME=NodeEssential
368 arune 4
HW_VERSION=2
361 andfri 5
 
585 arune 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
8
# This should not be used on nodes with application under developement
9
#AUTOSTART=5
10
 
416 arune 11
# This number should be unique on your network
656 eqlazer 12
NODE_ID=0x02UL
416 arune 13
# F_CPU is the clock frequency of your microcontroller, check fuses below for external/internal clock source
14
F_CPU=8000000UL
361 andfri 15
 
373 arune 16
#---MEGA8---
368 arune 17
#MCU=atmega8
18
#HIGHFUSE=0xd4
19
#LOWFUSE=0x24
20
#BOOT_START=0x1e00
21
 
373 arune 22
#---MEGA88---
554 andfri 23
#MCU=atmega88
24
#HIGHFUSE=0xdc
25
#LOWFUSE=0xe2
26
#EXTFUSE=0x04
27
#BOOT_START=0x1e00
361 andfri 28
 
554 andfri 29
#---MEGA168---
373 arune 30
#MCU=atmega168
31
#HIGHFUSE=0xdc
422 eqlazer 32
#LOWFUSE=0xe2
373 arune 33
#EXTFUSE=0x02
554 andfri 34
#BOOT_START=0x3c00
373 arune 35
 
361 andfri 36
# CAN configuration
37
CAN_CONTROLLER=MCP2515
628 arune 38
MCP_CS_PORT=PORTB
39
MCP_CS_DDR=DDRB
40
MCP_CS_BIT=PB2
41
MCP_CAN_BITRATE_KBPS=250
368 arune 42
MCP_CLOCK_FREQ_MHZ=20
628 arune 43
MCP_CLOCK_PRESC=1
368 arune 44
 
628 arune 45
# For 				MCP_CLOCK_FREQ_MHZ=20	MCP_CLOCK_FREQ_MHZ=16
46
# MCP_CLOCK_PRESC		external clock			external clock
47
# 		1 					20MHz					16MHz 
48
# 		2					10MHz					8MHz
49
# 		4					5MHz					4MHz
50
# 		8					2.5MHz					2MHz
51
# Make sure to change F_CPU accordingly if using external clock on AVR (LOWFUSE)
373 arune 52
 
628 arune 53
 
554 andfri 54
#Some common settings of fuses
55
#LOWFUSE for mega88 and mega168	
368 arune 56
#0xe7		#CKDIV8=1, external crystal
416 arune 57
#0xe0		#CKDIV8=1, external clock   (used if mcu is clocked from can-controller, F_CPU should be 16MHz or 20MHz)
58
#0xe2		#CKDIV8=1, internal RC      (internal AVR-clock, F_CPU should be 8MHz)
368 arune 59
#LOWFUSE for mega8
60
#0x24		#BODLEVEL = 4.0V, BODEN=enabled, internal 8MHz
373 arune 61
#0x20		#BODLEVEL = 4.0V, BODEN=enabled, external clock