Rev 2132 | Rev 2135 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2132 | Rev 2133 | ||
---|---|---|---|
Line 119... | Line 119... | ||
119 | /****************************************************************/ |
119 | /****************************************************************/ |
120 | /* Initialization of the USART0 */ |
120 | /* Initialization of the USART0 */ |
121 | /****************************************************************/ |
121 | /****************************************************************/ |
122 | void usart0_init(void) { |
122 | void usart0_init(void) { |
123 | uint8_t sreg = SREG; |
123 | uint8_t sreg = SREG; |
124 | uint16_t ubrr = (uint16_t) ((uint32_t) SYSCLK / (8 * USART0_BAUD) - 1); |
124 | uint16_t ubrr = (uint16_t) ((uint32_t) F_CPU / (8 * USART0_BAUD) - 1); |
Line 125... | Line 125... | ||
125 | 125 | ||
126 | // disable all interrupts before configuration |
126 | // disable all interrupts before configuration |
Line 127... | Line 127... | ||
127 | cli(); |
127 | cli(); |