diff options
author | Randall Spangler <rspangler@chromium.org> | 2011-12-09 13:55:27 -0800 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2011-12-12 14:12:09 -0800 |
commit | 70c3e30b633b530acb913a99d7cb602c9e8baf99 (patch) | |
tree | c431e759327c7740d9e2f2d7307a186305887652 /include/lpc.h | |
parent | 6995d4771f7c07b08948c867f4ec0de309ed925e (diff) | |
download | chrome-ec-70c3e30b633b530acb913a99d7cb602c9e8baf99.tar.gz |
Clean up UART code
LPC module no longer directly talks to UART registers, and vice-versa.
Signed-off-by: Randall Spangler <rspangler@chromium.org>
BUG=none
TEST='ectool sertest' on target system
Change-Id: Id070c0d849bdfe91c752e0af651d357b695d2648
(cherry picked from commit ab8c3c2b8e3b08a4bf5573cda3a12dd3a384e67d)
Diffstat (limited to 'include/lpc.h')
-rw-r--r-- | include/lpc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/lpc.h b/include/lpc.h index 9fa68381a3..8cf87668f6 100644 --- a/include/lpc.h +++ b/include/lpc.h @@ -25,4 +25,10 @@ uint8_t *lpc_get_host_range(int slot); * commands, 1 for usermode-originated commands. */ void lpc_send_host_response(int slot, int status); +/* Returns non-zero if the COMx interface has received a character. */ +int lpc_comx_has_char(void); + +/* Returns the next character pending on the COMx interface. */ +int lpc_comx_get_char(void); + #endif /* __CROS_EC_LPC_H */ |