#include #include #include #include #include #include #include #include #define F_CPU 16000000 #include #define RET_OKAY 0 #define RET_NOK -1 void init (void) { PORTB = 0b11111111; PORTA = 0b00000000; PORTD = 0b00000000; DDRA = 0b11111111; DDRB = 0b11111111; DDRD = 0b11111111; UCSRB = 0b00011000; //aktivieren der Interrupts UCSRC |= 0b10000000; UCSRC = 0b10000110; UBRRL = 0b01100111; // Baudrate 9600 } int send_chr(char sendChr) { while (!(UCSRA & (1<