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