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 02:39:23 +0000 |
commit | 1728af5b83a09a85945589ef639783ffe035023f (patch) | |
tree | 0c96db1e9ba7249618e3d02cdaf42e378f8f7074 | |
parent | ad0069268f37113eb0e4dccb93a94cfe7f5a6779 (diff) | |
download | chrome-ec-1728af5b83a09a85945589ef639783ffe035023f.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.
Change-Id: Ifd4ae95082d1f05cb1d53efb9f599a783f074000
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>
-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]; |