/* * Rs232.h * * Created: 04.11.2013 21:31:09 * Author: netz */ #ifndef RS232_H_ #define RS232_H_ #include #include template class Uart { public: Uart() { sei(); init(); send("Uart done!\r\n"); } void send(const char *text) { while (*text) { uart_putchar(*text); text++; } } void send(uint8_t wert) { uart_putchar(wert); } private: void init() { UBRRL = (F_CPU / (baudrate * 16L) - 1); //Teiler wird gesetzt UCSRB = /*(1<