From: <kc...@ma...> - 2009-04-22 09:34:54
|
Author: kc8apf Date: 2009-04-22 09:34:47 +0200 (Wed, 22 Apr 2009) New Revision: 1504 Modified: trunk/src/jtag/jlink.c Log: Shrink JLink buffer sizes to specified 2KB courtesy of Jeff Williams <je...@ga...> and Zach Welch <zw...@su...> Modified: trunk/src/jtag/jlink.c =================================================================== --- trunk/src/jtag/jlink.c 2009-04-22 07:32:09 UTC (rev 1503) +++ trunk/src/jtag/jlink.c 2009-04-22 07:34:47 UTC (rev 1504) @@ -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 */ |