Rev 698 | Rev 765 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 698 | Rev 764 | ||
|---|---|---|---|
| Line 205... | Line 205... | ||
| 205 | int main(void) { |
205 | int main(void) { |
| 206 | // For calibrating internal oscillator |
206 | // For calibrating internal oscillator |
| 207 | // OSCCAL = eeprom_read_byte(0); |
207 | // OSCCAL = eeprom_read_byte(0); |
| 208 | Timebase_Init(); |
208 | Timebase_Init(); |
| 209 | Serial_Init(); |
209 | Serial_Init(); |
| - | 210 | ||
| - | 211 | #if MCP_CS_BIT != PB2 |
|
| - | 212 | /* If slave select is not set as output it might change SPI hw to slave |
|
| - | 213 | * See ch 18.3.2 (18.3 SS Pin Functionality) in ATmega48/88/168-datasheet */ |
|
| - | 214 | DDRB |= (1<<PB2); |
|
| - | 215 | #endif |
|
| 210 | #if USE_STDCAN == 0 |
216 | #if USE_STDCAN == 0 |
| 211 | Can_Init(); |
217 | Can_Init(); |
| 212 | #else |
218 | #else |
| 213 | StdCan_Init(0); |
219 | StdCan_Init(0); |
| 214 | #endif |
220 | #endif |