/* * fw/uart.h - Functions needed for debugging over uart * * Code adapted from http://www.roboternetz.de/wissen/index.php/UART_mit_avr-gcc * and http://www.mikrocontroller.net/articles/AVR-GCC-Tutorial * * Published under the Creative Commons Share-Alike licence * https://creativecommons.org/licenses/by-sa/2.0/de/ * * S. Salewski 2007 * * Adapted by * Josef Filzmaier 2017 */ #include #include "uart.h" #define USART_BAUD 38400UL #define F_CPU 8000000UL #define Wait_USART_Ready() while (!(UCSR1A & (1<