Rev 127 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 127 | Rev 142 | ||
|---|---|---|---|
| Line 8... | Line 8... | ||
| 8 | /*----------------------------------------------------------------------------- |
8 | /*----------------------------------------------------------------------------- |
| 9 | * Defines |
9 | * Defines |
| 10 | *---------------------------------------------------------------------------*/ |
10 | *---------------------------------------------------------------------------*/ |
| 11 | 11 | ||
| 12 | /** |
12 | /** |
| 13 | * CAN controller |
13 | * CAN controller. Determines which CAN controller hardware is used. The |
| - | 14 | * supported controllers are listed in can.h. |
|
| 14 | */ |
15 | */ |
| 15 | #define CAN_CONTROLLER_MCP2515 |
16 | #define CAN_CONTROLLER CAN_CONTROLLER_MCP2515 |
| 16 | //#define CAN_CONTROLLER_LPC2000 |
- | |
| 17 | //#define |
17 | //#define CAN_CONTROLLER CAN_CONTROLLER_NULL |
| 18 | 18 | ||
| 19 | 19 | ||
| 20 | /** |
20 | /** |
| 21 | * CAN bitrate. Possible bitrates are listed in can.h. |
21 | * CAN bitrate. Possible bitrates are listed in can.h. |
| 22 | */ |
22 | */ |
| 23 | #define CAN_BITRATE CAN_BITRATE_1M |
23 | #define CAN_BITRATE CAN_BITRATE_1M |
| - | 24 | ||
| - | 25 | ||
| - | 26 | /** |
|
| - | 27 | * Size of the CAN message reception queue (in terms of number of CAN messages). |
|
| - | 28 | * Set to 0 to completely disable the TX queue mechanism (messages will be sent |
|
| - | 29 | * directly to the controller). |
|
| - | 30 | */ |
|
| - | 31 | #define CAN_QUEUE_SIZE_RX 8 |
|
| - | 32 | ||
| - | 33 | ||
| - | 34 | /** |
|
| - | 35 | * Size of the CAN message transmission queue (in terms of number of CAN messages). |
|
| - | 36 | * Set to 0 to completely disable the RX queue mechanism (messages are received |
|
| - | 37 | * directly from the controller rather from a reception queue). |
|
| - | 38 | */ |
|
| - | 39 | #define CAN_QUEUE_SIZE_TX 4 |
|
| - | 40 | ||
| - | 41 | ||
| - | 42 | /** |
|
| - | 43 | * Number of transmit buffers available in the CAN controller hardware. This |
|
| - | 44 | * information is needed in order to optimize the loop that empties the TX |
|
| - | 45 | * queue in each service call. |
|
| - | 46 | */ |
|
| - | 47 | #define CAN_CONTROLLER_NR_TX_BUFFERS 3 |
|
| - | 48 | ||
| - | 49 | ||
| - | 50 | /** |
|
| - | 51 | * Number of receive buffers available in the CAN controller hardware. This |
|
| - | 52 | * information is needed in order to optimize the loop that fetches new |
|
| - | 53 | * messages from the controller and puts them into the RX queue. |
|
| - | 54 | */ |
|
| - | 55 | #define CAN_CONTROLLER_NR_RX_BUFFERS 2 |
|
| 24 | 56 | ||
| 25 | 57 | ||
| 26 | #endif /*CAN_CFG_H_*/ |
58 | #endif /*CAN_CFG_H_*/ |