diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-04-24 16:29:28 -0700 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-04-24 17:46:54 -0700 |
commit | 135f14bf498ab19b6e75efc3a0d18ef7c8a8752d (patch) | |
tree | 1dd03ec292b5f9f44a24e045e64e0c10ff58b6a6 /include/uart.h | |
parent | 0d19c59aba807f915f1ea46d273bfebe1ded1db9 (diff) | |
download | chrome-ec-135f14bf498ab19b6e75efc3a0d18ef7c8a8752d.tar.gz |
Refactor async console output
This adds a 'ch' command which prints/sets which channels are active
This handles all the async output; the remaining debug commands will
be refactored to use ccprintf() / ccputs() in a followup CL.
Signed-off-by: Randall Spangler <rspangler@chromium.org>
BUG=chrome-os-partner:7464
TEST=manual
ch --> all channels active
ch 0x100 -> just port80 active
powerbtn -> system boots; only port 80 codes shown on console
Change-Id: I9efc43acec919b62b78c2c82c61946d32380adfe
Diffstat (limited to 'include/uart.h')
-rw-r--r-- | include/uart.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uart.h b/include/uart.h index 67a2968d6c..17922879bc 100644 --- a/include/uart.h +++ b/include/uart.h @@ -8,6 +8,7 @@ #ifndef __CROS_EC_UART_H #define __CROS_EC_UART_H +#include <stdarg.h> /* For va_list */ #include "common.h" @@ -55,6 +56,10 @@ int uart_puts(const char *outstr); * Floating point output (%f / %g) is not supported. */ int uart_printf(const char *format, ...); +/* Print formatted output to the UART, like vprintf(). Supports the same + * formatting codes as uart_printf(). */ +int uart_vprintf(const char *format, va_list args); + /* Flushes output. Blocks until UART has transmitted all output. */ void uart_flush_output(void); |