1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#ifndef UART_H #define UART_H #include <util/setbaud.h> #include <avr/interrupt.h> /// #define STRING_SIZE 32 /// typedef struct /// { /// char data[STRING_SIZE]; /// int8_t size; /// } string; /// volatile string uart_string; void uart_init(); void uart_putc(char c); #endif