#include #include #include #include #include // #include "uart.h" #include #define FOSC 8000000 // Clock Speed #define BAUD 115200UL // Berechnungen zur Baudrate: #define UBRR_VAL ((FOSC+BAUD*8)/(BAUD*16)-1) // clever runden /****************************************************/ void USART_Init (unsigned int ubrr) { UBRR0H = (unsigned char)(ubrr>>8); UBRR0L = (unsigned char) ubrr; UBRR1H = (unsigned char)(ubrr>>8); UBRR1L = (unsigned char) ubrr; UCSR0B = (1<