summaryrefslogtreecommitdiff
path: root/include/uart.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-09-11 16:18:50 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-09-13 23:23:48 +0000
commit40f4d61266192f2ec439c943be7a945232efd388 (patch)
tree5bfa91bb3ec23da44134ac1af23ad92aae6cf198 /include/uart.h
parent6bfeb498552ea7f6f4dcbb670f291fd8c50e29bd (diff)
downloadchrome-ec-40f4d61266192f2ec439c943be7a945232efd388.tar.gz
Remove unused uart functions
Nothing ever called uart_flush_input() or uart_gets(), so remove them. They're dead code, and make implementing UART DMA input more complex. BUG=chrome-os-partner:20485 BRANCH=none TEST=build all platforms; pass unit tests Change-Id: I94c2c372ac3f326b98e819b2c89b8995311b2868 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/169345 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'include/uart.h')
-rw-r--r--include/uart.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/include/uart.h b/include/uart.h
index fec3fd47ec..bada502c8b 100644
--- a/include/uart.h
+++ b/include/uart.h
@@ -80,38 +80,12 @@ void uart_flush_output(void);
*/
/**
- * Flush input buffer, discarding all input.
- */
-void uart_flush_input(void);
-
-/**
* Read a single character of input, similar to fgetc().
*
* @return the character, or -1 if no input waiting.
*/
int uart_getc(void);
-/**
- * Read characters from the UART, similar to fgets().
- *
- * Reads input until one of the following conditions is met:
- * (1) <size-1> characters have been read.
- * (2) A newline ('\n') has been read.
- * (3) The input buffer is empty (this keeps the call from blocking).
- *
- * Characters are stored in <dest> and are null-terminated.
- * Characters include the newline if present, so that the caller can
- * distinguish between a complete line and a truncated one. If the
- * input buffer is empty, a null-terminated empty string ("") is
- * returned.
- *
- * @param dest Destination for input
- * @param size Size of buffer pointed to by dest
- *
- * @return the number of characters read, not counting the terminating null.
- */
-int uart_gets(char *dest, int size);
-
/*
* Hardware UART driver functions
*/