aboutsummaryrefslogtreecommitdiff
path: root/uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'uart.c')
-rw-r--r--uart.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/uart.c b/uart.c
index 3528a22..2eebe16 100644
--- a/uart.c
+++ b/uart.c
@@ -13,7 +13,7 @@ static void uartSend (unsigned char data) {
UDR0 = data;
}
-static int uartPutc (char c, FILE *stream) {
+static int uartPutc (char c, FILE *stream __unused__) {
if (c == '\n') {
uartSend ('\r');
}
@@ -48,10 +48,12 @@ void uartInit () {
stdout = &mystdout;
}
+#if 0
+/* unused */
static unsigned char uartReceive () {
/* Wait for data to be received */
while ( !(UCSR0A & (1<<RXC0)) );
/* Get and return received data from buffer */
return UDR0;
}
-
+#endif