Rev 240 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 240 | Rev 244 | ||
|---|---|---|---|
| Line 146... | Line 146... | ||
| 146 | 146 | ||
| 147 | #if CAN_CONTROLLER == CAN_CONTROLLER_MCP2515 |
147 | #if CAN_CONTROLLER == CAN_CONTROLLER_MCP2515 |
| 148 | /* |
148 | /* |
| 149 | * Initialize MCP2515 device. |
149 | * Initialize MCP2515 device. |
| 150 | */ |
150 | */ |
| 151 | if (MCP2515_Init( |
151 | if (MCP2515_Init() != MCP2515_OK) { |
| 152 | return CAN_FAIL; |
152 | return CAN_FAIL; |
| 153 | } |
153 | } |
| 154 | if (MCP2515_SetCanCtrlMode(MODE_NORMAL) != MCP2515_OK) { |
154 | if (MCP2515_SetCanCtrlMode(MODE_NORMAL) != MCP2515_OK) { |
| 155 | return CAN_FAIL; |
155 | return CAN_FAIL; |
| 156 | } |
156 | } |