From c745cd330fcf30f4ffe3542c5167e96caa3f33dd Mon Sep 17 00:00:00 2001 From: Ain <41307858+nero@users.noreply.github.com> Date: Mon, 29 Jan 2018 19:29:02 +0000 Subject: [PATCH] Add uart synchronous transmit --- drivers/uart_tx.c | 13 +++++++++++++ drivers/uart_tx.h | 1 + 2 files changed, 14 insertions(+) create mode 100644 drivers/uart_tx.c create mode 100644 drivers/uart_tx.h diff --git a/drivers/uart_tx.c b/drivers/uart_tx.c new file mode 100644 index 0000000..6f9df31 --- /dev/null +++ b/drivers/uart_tx.c @@ -0,0 +1,13 @@ +#include "uart_tx.h" +#include "uart.h" +#include +#include + +void __attribute__ ((naked)) __attribute__ ((section (".init6"))) uart_tx_init() { + UCSR0B |= (1<