diff --git a/test/usart.cpp b/test/usart.cpp deleted file mode 100644 index 65b6719..0000000 --- a/test/usart.cpp +++ /dev/null @@ -1,65 +0,0 @@ -#include -#include -#include "usart.h" - -namespace usart -{ - namespace { - static FILE mystdout; - } - - void init( unsigned long baud) { - fdev_setup_stream(&mystdout, put_printf, NULL, _FDEV_SETUP_WRITE); - stdout = &mystdout; - const unsigned int ubrr = F_CPU/8/baud-1; - - /*Set baud rate */ - - - #if defined __AVR_ATmega328P__ - UBRR0H = (unsigned char)(ubrr>>8); - UBRR0L = (unsigned char)ubrr; - UCSR0A |= (1<>8); - UBRRL = (unsigned char)ubrr; - UCSRA |= (1< - -namespace usart -{ - void init(unsigned long baud); - void put(char data ); - char get(); - int put_printf(char var, FILE *stream); -} // namespace usart - - -