summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2019-06-26 17:12:29 -0700
committerCommit Bot <commit-bot@chromium.org>2019-06-27 20:50:56 +0000
commit88f6aafde91413eebca7d9c856fcca194b92f873 (patch)
tree68799a0548f0523f6cb8104e903cd120e986e6ac /include
parentc4408e189736b45f275adfd3eb388fde3f457f62 (diff)
downloadchrome-ec-88f6aafde91413eebca7d9c856fcca194b92f873.tar.gz
uart_buffering: add tx_buffer_full() API
To aid in system level UART console performance testing a test function needs to know when the UART console buffer is full. This patch provides an API for that. BRANCH=none BUG=b:38448364 TEST=verified proper operation of the chargen CLI command which uses this API. Change-Id: I5fbc6cf4031a5077c91cd4bb85ab6f4dfb18821e Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1679710 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/uart.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uart.h b/include/uart.h
index 4b0e4738e9..d5493544c2 100644
--- a/include/uart.h
+++ b/include/uart.h
@@ -209,6 +209,11 @@ void uart_process_output(void);
int uart_buffer_empty(void);
/**
+ * Return boolean expressing whether UART buffer is full or not.
+ */
+int uart_buffer_full(void);
+
+/**
* Disable the EC console UART and convert the UART RX pin to a generic GPIO
* with an edge detect interrupt.
*/