Subversion Repositories HomeAutomation

Rev

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

Rev Author Line No. Line
665 arune 1
#ifndef CONFIG_H_
2
#define CONFIG_H_
3
 
4
// Kolla makefile för att sätta MCU!!
5
 
697 arune 6
#define F_CPU                   20000000UL
665 arune 7
 
8
//#define MCU atmega88
9
#define CAN_CONTROLLER          MCP2515
10
#define MCP_CS_PORT             PORTB
11
#define MCP_CS_DDR              DDRB
12
#define MCP_CS_BIT              PB2
13
#define MCP_CAN_BITRATE_KBPS    250
14
#define MCP_CLOCK_FREQ_MHZ      20
15
#define MCP_CLOCK_PRESC         1
16
 
688 arune 17
#define SERIAL_BAUDRATE         19200
665 arune 18
#define SERIAL_RX_BUFFER_SIZE   32
19
#define SERIAL_TX_BUFFER_SIZE   64
20
 
21
/* set to 0 for not sending timestamps on bus */
693 arune 22
#define SENDTIMESTAMP           0
665 arune 23
 
697 arune 24
#define USE_STDCAN              1
693 arune 25
#define NODE_ID                 0
26
#define STDCAN_FILTER           0
27
 
28
 
665 arune 29
#endif /*CONFIG_H_*/