Subversion Repositories HomeAutomation

Rev

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

Rev Author Line No. Line
667 arune 1
#ifndef CONFIG_H_
2
#define CONFIG_H_
3
 
4
// Kolla makefile för att sätta MCU!!
5
 
6
#define F_CPU                   20000000UL
7
 
8
#define UART_OUTPUT /* If you got the node connected to a computer enable this */
9
//#define LED_OUTPUT /* If you havent got any connection to a computer but still got some IOs free */
10
 
673 eqlazer 11
#define SENDING_ID  0x1fffffffUL
667 arune 12
#define ECHO_RECEIVE_ID     0x1700000UL
13
#define ECHO_SENDING_ID     0x17000FFUL
14
 
15
 
16
//#define MCU atmega88
17
#define CAN_CONTROLLER          MCP2515
18
#define MCP_CS_PORT             PORTB
19
#define MCP_CS_DDR              DDRB
20
#define MCP_CS_BIT              PB2
21
#define MCP_CAN_BITRATE_KBPS    250
22
#define MCP_CLOCK_FREQ_MHZ      20
23
#define MCP_CLOCK_PRESC         1
24
 
673 eqlazer 25
#define SERIAL_BAUDRATE         9600
667 arune 26
#define SERIAL_RX_BUFFER_SIZE   32
27
#define SERIAL_TX_BUFFER_SIZE   64
28
 
29
#endif /*CONFIG_H_*/