From 631f8896619bef7da5669570c94ed4a274aa0410 Mon Sep 17 00:00:00 2001 From: jakegoodwin Date: Sat, 18 Feb 2023 22:49:39 -0800 Subject: [PATCH] removed code smells; unused functions and prototypes --- src/avr_usart.c | 52 ------------------------------------------------- src/avr_usart.h | 1 - 2 files changed, 53 deletions(-) diff --git a/src/avr_usart.c b/src/avr_usart.c index 1f24ea9..2399267 100644 --- a/src/avr_usart.c +++ b/src/avr_usart.c @@ -158,24 +158,6 @@ void serial0_write(unsigned char* buffer, uint8_t write_length) { } -/* - * Input: none - * Output: none - * Description: - */ -void serial0_enable_line_feeds(void) { - ; -} - -/* - * Input: none - * Output: none - * Description: - */ -void serial0_enable_carriage_returns(void) { - ; -} - /* * Input: A parity setting as a 8bit uint * Output: none @@ -233,40 +215,6 @@ void serial0_read(unsigned char* buffer, uint8_t buf_length) { } -/* - * Inupt: A serialbuffer and length - * Output: None - * Description: Reads the serial data into a buffer of x length, - * it does error checking from the register first. - */ -void serial0_read_with_err_checking(unsigned char* buffer, uint8_t buf_length) { - //first wait for the data to be received. - while( !(UCSR0A & (1<