Rev 142 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 142 | Rev 149 | ||
|---|---|---|---|
| Line 15... | Line 15... | ||
| 15 | #include <avr/interrupt.h> |
15 | #include <avr/interrupt.h> |
| 16 | #include <avr/wdt.h> |
16 | #include <avr/wdt.h> |
| 17 | #include <stdio.h> |
17 | #include <stdio.h> |
| 18 | /* lib files */ |
18 | /* lib files */ |
| 19 | #include <can.h> |
19 | #include <can.h> |
| - | 20 | #include <serial.h> |
|
| 20 | #include <uart.h> |
21 | #include <uart.h> |
| 21 | #include <timebase.h> |
22 | #include <timebase.h> |
| 22 | 23 | ||
| 23 | 24 | ||
| 24 | /*----------------------------------------------------------------------------- |
25 | /*----------------------------------------------------------------------------- |
| Line 108... | Line 109... | ||
| 108 | /*----------------------------------------------------------------------------- |
109 | /*----------------------------------------------------------------------------- |
| 109 | * Main Program |
110 | * Main Program |
| 110 | *---------------------------------------------------------------------------*/ |
111 | *---------------------------------------------------------------------------*/ |
| 111 | int main(void) { |
112 | int main(void) { |
| 112 | Timebase_Init(); |
113 | Timebase_Init(); |
| 113 |
|
114 | Serial_Init(); |
| 114 | Can_Init(); |
115 | Can_Init(); |
| 115 | 116 | ||
| 116 | DDRC = 1<<PC1 | 1<<PC0; |
117 | DDRC = 1<<PC1 | 1<<PC0; |
| 117 | PORTC = (1<<PC1) | (1<<PC0); |
118 | PORTC = (1<<PC1) | (1<<PC0); |
| 118 | 119 | ||