Subversion Repositories HomeAutomation

Rev

Rev 2150 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 2150 Rev 2291
Line 1... Line 1...
1
#include "stdcan.h"
1
#include "stdcan.h"
-
 
2
 
-
 
3
#ifdef MCP_CAN_BITRATE_KBPS
-
 
4
#ifndef CAN_BAUDRATE
-
 
5
#define CAN_BAUDRATE MCP_CAN_BITRATE_KBPS
-
 
6
#endif
-
 
7
#endif
-
 
8
 
2
#if defined(_AVRLIB_BIOS_)
9
#if defined(_AVRLIB_BIOS_)
3
#include <bios.h>
10
#include <bios.h>
4
#define Can_Send BIOS_CanSend
11
#define Can_Send BIOS_CanSend
5
#else
12
#else
-
 
13
#if (CAN_CONTROLLER == MCP2515)
6
#include <drivers/can/mcp2515/mcp2515.h>
14
#include <drivers/can/mcp2515/mcp2515.h>
-
 
15
#elif (CAN_CONTROLLER == CAN_AVR_INTERNAL)
-
 
16
#include <drivers/can/avr_internal/avr_internal.h>
-
 
17
#endif
7
#endif
18
#endif
8
 
19
 
9
#include <avr/interrupt.h>
20
#include <avr/interrupt.h>
10
#include <util/atomic.h>
21
#include <util/atomic.h>
11
#if (STDCAN_TX_QUEUE_SIZE > 1)
22
#if (STDCAN_TX_QUEUE_SIZE > 1)