38 #include <avr/interrupt.h>
45 slip_putchar(
char c, FILE *stream)
48 static char debug_frame = 0;
51 slip_arch_writeb(SLIP_END);
52 slip_arch_writeb(
'\r');
56 slip_arch_writeb((
unsigned char)c);
63 slip_arch_writeb(SLIP_END);
70 static FILE slip_stdout =
71 FDEV_SETUP_STREAM(slip_putchar,
NULL, _FDEV_SETUP_WRITE);
82 UCSR1C = BV(UCSZ1) | BV(UCSZ0);
83 UCSR1B = BV(RXEN) | BV(TXEN) | BV(RXCIE);
88 stdout = &slip_stdout;
92 slip_arch_writeb(
unsigned char c)
94 while (!(UCSR1A & BV(UDRE1)))
102 slip_input_byte(UDR1);