Rev 361 | Rev 924 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 361 | Rev 913 | ||
|---|---|---|---|
| Line 35... | Line 35... | ||
| 35 | /** |
35 | /** |
| 36 | * Initializes the serial communication. Sets the baudrate and redirects |
36 | * Initializes the serial communication. Sets the baudrate and redirects |
| 37 | * STDOUT to the serial communication channel. |
37 | * STDOUT to the serial communication channel. |
| 38 | */ |
38 | */ |
| 39 | void Serial_Init() { |
39 | void Serial_Init() { |
| - | 40 | #if (SERIAL_DOUBLE_SPEED==1) |
|
| - | 41 | uart_init((UART_BAUD_SELECT_DOUBLE_SPEED((SERIAL_BAUDRATE),F_CPU))); |
|
| - | 42 | #else |
|
| 40 | uart_init((UART_BAUD_SELECT((SERIAL_BAUDRATE),F_CPU))); |
43 | uart_init((UART_BAUD_SELECT((SERIAL_BAUDRATE),F_CPU))); |
| - | 44 | #endif |
|
| 41 | 45 | ||
| 42 | stdout = &myStdOut; |
46 | stdout = &myStdOut; |
| 43 | } |
47 | } |
| 44 | 48 | ||
| 45 | 49 | ||