From d3ea6f445e270750e564116ee4b79cbc9d623717 Mon Sep 17 00:00:00 2001 From: jakegoodwin Date: Sat, 14 Jan 2023 11:44:48 -0800 Subject: [PATCH] Defined serial0_write() function --- avr_usart.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/avr_usart.c b/avr_usart.c index f805957..8635be3 100644 --- a/avr_usart.c +++ b/avr_usart.c @@ -132,7 +132,11 @@ unsigned char rx_usart0(void) { * Output: None * Description: */ - +void serial0_write(char* buffer, uint8_t write_length) { + for(uint8_t i = 0; i < write_length; i++) { + tx_usart0(buffer[i]); + } +} /* * Inupt: A serialbuffer and length