From a62ca9eaac7bc3f20d941a16d0daeeab3ad9cbf9 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Sun, 9 Mar 2025 17:21:52 +0800 Subject: Remove write_char() from public interface. --- uart.c | 2 +- uart.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/uart.c b/uart.c index d3012af..a6d6674 100644 --- a/uart.c +++ b/uart.c @@ -16,7 +16,7 @@ void uart_init(void) UCSR0C = (1 << UCSZ01) | (1 << UCSZ00); } -void uart_write_char(char c) +static inline void uart_write_char(char c) { while (!(UCSR0A & (1 << UDRE0))) ; diff --git a/uart.h b/uart.h index 854cd14..a88a3c6 100644 --- a/uart.h +++ b/uart.h @@ -2,7 +2,6 @@ #define UART_H void uart_init(void); -void uart_write_char(char c); void uart_write(const char *s); void uart_write_line(const char *s); -- cgit v1.2.3