diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2014-11-14 12:47:41 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-11-21 22:55:33 +0000 |
commit | 7ac04ceac853508af1ac93b8829a7601c2a65f16 (patch) | |
tree | 17925dff7d94f952364ad7fd2fcf9977a6958268 | |
parent | bacd096372e22d87d7b98d9afc9ae9db91d4e0b9 (diff) | |
download | chrome-ec-7ac04ceac853508af1ac93b8829a7601c2a65f16.tar.gz |
usb: extend console buffer to 64 bytes
Set the console receive buffer size to 64 bytes into to be able to send
a full command line at once (e.g. cut'n paste).
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=none
BUG=none
TEST=cut'n paste a large command on the EC USB console.
Reviewed-on: https://chromium-review.googlesource.com/229980
Reviewed-by: Anton Staaf <robotboy@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
(cherry picked from commit 1728af5b83a09a85945589ef639783ffe035023f)
Change-Id: Ifcfe5a36c2816ba35836242406c012d5a112fb10
Reviewed-on: https://chromium-review.googlesource.com/231280
Tested-by: Vic Yang <victoryang@chromium.org>
Commit-Queue: Vic Yang <victoryang@chromium.org>
Reviewed-by: Vic Yang <victoryang@chromium.org>
-rw-r--r-- | chip/stm32/usb_console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/stm32/usb_console.c b/chip/stm32/usb_console.c index cf7f6d7825..6d81a5fa3c 100644 --- a/chip/stm32/usb_console.c +++ b/chip/stm32/usb_console.c @@ -18,7 +18,7 @@ #define CPRINTF(format, args...) cprintf(CC_USB, format, ## args) #define USB_CONSOLE_TIMEOUT_US (30 * MSEC) -#define USB_CONSOLE_RX_BUF_SIZE 16 +#define USB_CONSOLE_RX_BUF_SIZE 64 #define RX_BUF_NEXT(i) (((i) + 1) & (USB_CONSOLE_RX_BUF_SIZE - 1)) static volatile char rx_buf[USB_CONSOLE_RX_BUF_SIZE]; |