34 #include <avr/interrupt.h>
41 uart0_putchar(
char c, FILE *stream)
43 while (!(UCSR0A & BV(UDRE0)))
50 static FILE uart0_stdout =
51 FDEV_SETUP_STREAM(uart0_putchar,
NULL, _FDEV_SETUP_WRITE);
62 UCSR1C = BV(UCSZ1) | BV(UCSZ0);
63 UCSR1B = BV(RXEN) | BV(TXEN) | BV(RXCIE);
67 UBRR0L = BAUD2UBR(38400);
68 UBRR0H = BAUD2UBR(38400) >> 8;
70 UCSR0C = BV(UCSZ1) | BV(UCSZ0);
75 stdout = &uart0_stdout;
79 slip_arch_writeb(
unsigned char c)
81 while (!(UCSR1A & BV(UDRE1)))
89 slip_input_byte(UDR1);