summaryrefslogtreecommitdiff
path: root/include/uart.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-09-13 11:22:19 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-09-14 00:32:13 +0000
commit573e695a69ffd8e1bfc5d8507ebc3dfc3e2647ff (patch)
tree15b18c3a5a7e04a3dd4d3ccf8552e85c7e8ef9e7 /include/uart.h
parentfa76d68ce9b59b82ef69ed297613c67dd6725964 (diff)
downloadchrome-ec-573e695a69ffd8e1bfc5d8507ebc3dfc3e2647ff.tar.gz
Simplify uart_tx_start()
All calls to it did if (uart_tx_stopped()) uart_tx_start(); And that was the only use of uart_tx_stopped(). Merge the functions. BUG=chrome-os-partner:20485 BRANCH=none TEST=EC debug console still prints output and accepts commands. Ctrl+Q pauses output and Ctrl+S resumes it. Change-Id: I113c64f5fdfc6b02b63034a74b1a3c6c6a76c351 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/169329 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'include/uart.h')
-rw-r--r--include/uart.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/uart.h b/include/uart.h
index bada502c8b..9e182002e1 100644
--- a/include/uart.h
+++ b/include/uart.h
@@ -149,8 +149,8 @@ void uart_enable_interrupt(void);
/**
* Re-enable the UART transmit interrupt.
*
- * This also forces triggering an interrupt if the hardware doesn't
- * automatically trigger it when the transmit buffer was filled beforehand.
+ * This also forces triggering a UART interrupt, if the transmit interrupt was
+ * disabled.
*/
void uart_tx_start(void);
@@ -160,11 +160,6 @@ void uart_tx_start(void);
void uart_tx_stop(void);
/**
- * Return non-zero if the UART transmit interrupt is disabled.
- */
-int uart_tx_stopped(void);
-
-/**
* Helper for processing UART input.
*
* Reads the input FIFO until empty. Intended to be called from the driver