27e9ca8e64
We set the baud rate in increments of 100 baud, to avoid
overflowing the 16-bit wValue integer (921600 is the highest we
are likely to use).
Also, increment the buffer size for USART3 to 1024 bytes. That
helps a bit to avoid losing characters, but we still can't keep
up if the host is printing at maximum speed.
BRANCH=servo
BUG=chromium:876651
TEST=baud usart2/3/4 115200 in servo_micro console
TEST=dut-control cpu_uart_baudrate:921600
seq 1 1000 shows numbers 1 to 226 before buffer overflows
Change-Id: Ifca266189f93def493f207dd29d2cceca4d8d68f
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1189782
Reviewed-by: Nick Sanders <nsanders@chromium.org>
(cherry picked from commit
|
||
---|---|---|
baseboard | ||
board | ||
builtin | ||
chip | ||
common | ||
core | ||
cts | ||
docs | ||
driver | ||
extra | ||
fuzz | ||
include | ||
power | ||
test | ||
util | ||
.checkpatch.conf | ||
.clang-format | ||
.gitignore | ||
COMMIT-QUEUE.ini | ||
LICENSE | ||
Makefile | ||
Makefile.rules | ||
Makefile.toolchain | ||
OWNERS | ||
PRESUBMIT.cfg | ||
README | ||
README.fmap | ||
setup.py |
README
For an overview of the Embedded Controller firmware, refer to http://www.chromium.org/chromium-os/2014-firmware-summit For instructions on building from source, refer to http://www.chromium.org/chromium-os/ec-development/getting-started-building-ec-images-quickly