#include #include #include "include/uart.h" #include "include/commands.h" static FILE stream = FDEV_SETUP_STREAM(uart_printf, NULL, _FDEV_SETUP_WRITE); void uart_init(unsigned int baud) { stdout = &stream; /* Set baud rate */ UBRR1H = (unsigned char)(baud>>8); UBRR1L = (unsigned char)baud; /* Enable receiver and transmitter */ UCSR1B = (1<