From 9a5753f23fb7d55a7a72c8cf9846cc72349c65de Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Thu, 13 Feb 2014 16:45:48 +0100 Subject: Split up main.c --- uart.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 uart.c (limited to 'uart.c') diff --git a/uart.c b/uart.c new file mode 100644 index 0000000..4b7ca39 --- /dev/null +++ b/uart.c @@ -0,0 +1,46 @@ +#include +#include + +#include "uart.h" + +/* blocking uart send + */ +static void uartSend (unsigned char data) { + /* Wait for empty transmit buffer */ + while (!( UCSR0A & (1<