diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2020-03-18 17:46:53 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-03-31 23:24:38 +0000 |
commit | a795c626a156a92813e7992bc14c764b1ae1f994 (patch) | |
tree | 45d3a3fdb92e57eb200c0f3b1ee13838c05d5347 /chip/g | |
parent | 804d65e5fd86057e78c0d0b5f6139172d20b8207 (diff) | |
download | chrome-ec-a795c626a156a92813e7992bc14c764b1ae1f994.tar.gz |
cmsg.c, console packet mode driver
This patch adds a console driver for packet mode.
The driver processes information prepared by util_precomplie.py when
processing printf invocations in the source code. Each invocation is
replaced by a cmsgX function, where X is the number of format
arguments.
cmsgX functions prepare an array of parameters of size X and invoke a
common function, passing it the array and an integer value, consisting
of up to 8 4 bit fields, describing the parameters.
Since both console drivers need to be able to filter logical console
channels, the channel_mask variable is made global.
BUG=b:149964350
TEST=with the rest of patches applied and packet mode enabled,
verified proper operation of both Cr50 consoles (USB and UART).
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Change-Id: I1f6ef5ea50bffbe14d3e3850fff0191c54f37033
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2113931
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'chip/g')
0 files changed, 0 insertions, 0 deletions