Subversion Repositories HomeAutomation

Rev

Rev 2149 | Details | Compare with Previous | Last modification | View Log | SVN | RSS feed

Rev Author Line No. Line
699 arune 1
#ifndef CONFIG_H_
2
#define CONFIG_H_
3
 
860 arune 4
// Don't forget to edit makefile aswell!
699 arune 5
 
860 arune 6
//#define F_CPU 			20000000UL
7
#define F_CPU 				8000000UL
699 arune 8
 
1404 arune 9
//settings for a Corecard
699 arune 10
#define CAN_CONTROLLER 			MCP2515
1404 arune 11
#define MCP_CS_PORT 			PORTC
12
#define MCP_CS_DDR 			DDRC
13
#define MCP_CS_BIT 			PC3
860 arune 14
#define MCP_CAN_BITRATE_KBPS 		250
699 arune 15
#define MCP_CLOCK_FREQ_MHZ 		20
16
#define MCP_CLOCK_PRESC 		1
17
 
1404 arune 18
//settings for a old node, comment lines above
19
//#define MCP_CS_PORT 			PORTB
20
//#define MCP_CS_DDR 			DDRB
21
//#define MCP_CS_BIT 			PB2
860 arune 22
 
2151 kribba 23
#define SERIAL_DOUBLE_SPEED			1
24
#define SERIAL_BAUDRATE 		1000000
860 arune 25
#define SERIAL_RX_BUFFER_SIZE		32
26
#define SERIAL_TX_BUFFER_SIZE		64
699 arune 27
 
28
/* set to 0 for not sending timestamps on bus */
860 arune 29
#define SENDTIMESTAMP			1
699 arune 30
 
860 arune 31
#define USE_STDCAN			1
32
#define NODE_ID 			0
699 arune 33
#define STDCAN_FILTER 			0
34
 
35
 
36
#endif /*CONFIG_H_*/