From 5b265a5258059dc8aa1199cc102d162cc7a0f721 Mon Sep 17 00:00:00 2001 From: jakegoodwin Date: Mon, 16 Jan 2023 20:30:36 -0800 Subject: [PATCH] Added prototypes to header and function defs for runtime functions to change parity and stop bits. --- avr_usart.c | 67 +++++++++++++++++++++++++++++++++++++++++++++++++---- avr_usart.h | 9 +++++-- 2 files changed, 70 insertions(+), 6 deletions(-) diff --git a/avr_usart.c b/avr_usart.c index 9314d74..23574f0 100644 --- a/avr_usart.c +++ b/avr_usart.c @@ -15,6 +15,7 @@ //Globals //############################# + int main() { led_blink(); @@ -53,7 +54,8 @@ int main() { /* * Input: None * Output: None - * Description: init usart0 hardware in async mode + * Description: init usart0 hardware in async mode, + * This sets up the connection with default params 8-n-1 */ void init_usart0(void) { //setup stuff for usart communications. @@ -70,10 +72,7 @@ void init_usart0(void) { #else UCSR0A &= ~(1<