diff options
author | kc8apf <kc8apf@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-04-22 07:34:47 +0000 |
---|---|---|
committer | kc8apf <kc8apf@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-04-22 07:34:47 +0000 |
commit | 2b90372b79a2ded27491bc35899cbd9c4bceca9a (patch) | |
tree | b76679396b8887df00ed6db4becce4b427343aac /src | |
parent | 6be91c28cab0c66c54d57303e193f8a0717e4491 (diff) | |
download | openocd_libswd-2b90372b79a2ded27491bc35899cbd9c4bceca9a.tar.gz openocd_libswd-2b90372b79a2ded27491bc35899cbd9c4bceca9a.tar.bz2 openocd_libswd-2b90372b79a2ded27491bc35899cbd9c4bceca9a.tar.xz openocd_libswd-2b90372b79a2ded27491bc35899cbd9c4bceca9a.zip |
Shrink JLink buffer sizes to specified 2KB courtesy of Jeff Williams <jeffw@gadgetworks.com> and Zach Welch <zw@superlucidity.net>
git-svn-id: svn://svn.berlios.de/openocd/trunk@1504 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r-- | src/jtag/jlink.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/jtag/jlink.c b/src/jtag/jlink.c index 022afe5f..9886c3b3 100644 --- a/src/jtag/jlink.c +++ b/src/jtag/jlink.c @@ -42,8 +42,9 @@ #define JLINK_USB_TIMEOUT 1000 -#define JLINK_IN_BUFFER_SIZE 8192 -#define JLINK_OUT_BUFFER_SIZE 8192 +// See Section 1.3.2 of the Segger JLink USB protocol manual +#define JLINK_IN_BUFFER_SIZE 2048 +#define JLINK_OUT_BUFFER_SIZE 2048 #define JLINK_EMU_RESULT_BUFFER_SIZE 64 /* Global USB buffers */ |