From 754fc2bc92e3bf90fd8fbd88f1afd8e8a6bf0c90 Mon Sep 17 00:00:00 2001 From: Marco Date: Mon, 30 May 2022 06:11:50 +0200 Subject: [PATCH] 1. Configure UART messages to have 2 stop bits. 2. Move mirroring of received characters to ISR. --- src/uart.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/uart.c b/src/uart.c index 970ffbf..73e0045 100644 --- a/src/uart.c +++ b/src/uart.c @@ -4,6 +4,7 @@ #include "include/uart.h" #include "include/commands.h" +/* Make uart_printf be called whenever printf() is invoked */ static FILE stream = FDEV_SETUP_STREAM(uart_printf, NULL, _FDEV_SETUP_WRITE); void uart_init(unsigned int baud) @@ -22,7 +23,7 @@ void uart_init(unsigned int baud) /* Set frame format */ UCSR1C |= (3<