diff options
author | Marius Schilder <mschilder@google.com> | 2018-02-23 20:14:46 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-02-24 01:22:46 -0800 |
commit | e5e1b7ea5dbc6a22e14c63ef9a6c4f00cfd1993f (patch) | |
tree | 1f34c12979f951b6d1da3897041546964127e843 /include/usb_console.h | |
parent | 3c4800e59452a7124c34f563d548e09849d59b8d (diff) | |
download | chrome-ec-e5e1b7ea5dbc6a22e14c63ef9a6c4f00cfd1993f.tar.gz |
g: add CONFIG_USB_CONSOLE_CRC
This option will cause usb console output to block and
also compute a crc32.
Signed-off-by: mschilder@google.com
TEST=make buildall -j
BRANCH=none
BUG=none
Change-Id: Icf66d5ddbea52008a9c97094e7c83194caa7db79
Reviewed-on: https://chromium-review.googlesource.com/936281
Commit-Ready: Marius Schilder <mschilder@chromium.org>
Tested-by: Marius Schilder <mschilder@chromium.org>
Reviewed-by: Marius Schilder <mschilder@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'include/usb_console.h')
-rw-r--r-- | include/usb_console.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/usb_console.h b/include/usb_console.h index 08cbbf5491..de538f8ec8 100644 --- a/include/usb_console.h +++ b/include/usb_console.h @@ -44,6 +44,16 @@ int usb_putc(int c); int usb_getc(void); /** + * Reset the usb console output crc32 accumulator. + */ +void usb_console_crc_init(void); + +/** + * Get the current usb console output crc32 accumulator. + */ +uint32_t usb_console_crc(void); + +/** * Enable and Disable the USB console. * * By default the console is enabled, this should not be a problem since it |