Rev 29 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 29 | Rev 31 | ||
---|---|---|---|
Line 162... | Line 162... | ||
162 | #endif |
162 | #endif |
163 | // TX-Interrupt Freigabe |
163 | // TX-Interrupt Freigabe |
164 | // UCSRB |= (1<<TXCIE); |
164 | // UCSRB |= (1<<TXCIE); |
Line 165... | Line 165... | ||
165 | 165 | ||
166 | //Teiler wird gesetzt |
166 | //Teiler wird gesetzt |
- | 167 | //UBRR= (SYSCLK / (BAUD_RATE * 8L) -1 ); |
|
- | 168 | #if X3D_SIO == 1 |
|
- | 169 | UBRR = 12; //38400 Baud @ 4 MHz |
|
- | 170 | #else |
|
- | 171 | UBRR = 8; //57600 Baud @ 4 MHz |
|
- | 172 | #endif |
|
167 | UBRR= (SYSCLK / (BAUD_RATE * 8L) -1 ); |
173 | |
168 | //öffnet einen Kanal für printf (STDOUT) |
174 | //öffnet einen Kanal für printf (STDOUT) |
169 | fdevopen (uart_putchar, NULL); |
175 | fdevopen (uart_putchar, NULL); |
170 | Debug_Timer = SetDelay(200); |
176 | Debug_Timer = SetDelay(200); |
171 | UDR = '*'; |
177 | UDR = '*'; |