37 #include <avr/interrupt.h>
44 slip_putchar(
char c, FILE *stream)
47 static char debug_frame = 0;
69 static FILE slip_stdout =
70 FDEV_SETUP_STREAM(slip_putchar,
NULL, _FDEV_SETUP_WRITE);
81 UCSR1C = BV(UCSZ1) | BV(UCSZ0);
82 UCSR1B = BV(RXEN) | BV(TXEN) | BV(RXCIE);
87 stdout = &slip_stdout;
93 while (!(UCSR1A & BV(UDRE1)))
101 slip_input_byte(UDR1);
void slip_arch_writeb(unsigned char c)
Copyright (c) 2014, Analog Devices, Inc.
#define NULL
The null pointer.
void slip_arch_init(unsigned long ubr)
Initalize the RS232 port and the SLIP driver.