7 * #define F_CPU 16000000 // Oszillator-Frequenz in Hz
8 * #define UART_INTERRUPT 1
9 * #define UART_BAUD_RATE 19200
10 * #define UART_RXBUFSIZE 16
11 * #define UART_TXBUFSIZE 16
12 * #define UART_LINE_BUFFER_SIZE 40
13 * #define UART_LEDS // LED1 and LED2 toggle on tx and rx interrupt
20 #include <avr/pgmspace.h>
24 void uart_putc(char c);
25 void uart_putstr(char * str);
26 void uart_putstr_P(PGM_P str);
27 void uart_hexdump(const void* buf, int len);
30 char uart_getc_nb(char *c); /* returns 1 on success */
33 get one Cariage return terminated line
34 echo charakters back on Uart
35 returns buffer with zero terminated line on success, 0 pointer otherwise
37 char * uart_getline_nb(void);