diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2011-02-28 20:40:44 +0100 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-03-02 19:03:25 +0100 |
commit | 2ed3f5554768791d29e017825a8866677ed4a533 (patch) | |
tree | 6e00f2b8e6a894e2001c09528e9d2ccd105d531b /src | |
parent | e5677ce9e523550f0de36d77b46461645a764cb3 (diff) | |
download | openocd+libswd-2ed3f5554768791d29e017825a8866677ed4a533.tar.gz openocd+libswd-2ed3f5554768791d29e017825a8866677ed4a533.tar.bz2 openocd+libswd-2ed3f5554768791d29e017825a8866677ed4a533.tar.xz openocd+libswd-2ed3f5554768791d29e017825a8866677ed4a533.zip |
jlink: add new PID and VID
The default pid of the segger is 0x0101
But when you change the USB Address it will also
pid = ( usb_address > 0x4) ? 0x0101 : (0x101 + usb_address)
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/jtag/drivers/jlink.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/jtag/drivers/jlink.c b/src/jtag/drivers/jlink.c index bc5448d5..f1b97115 100644 --- a/src/jtag/drivers/jlink.c +++ b/src/jtag/drivers/jlink.c @@ -37,8 +37,14 @@ http://www.segger.com/cms/admin/uploads/productDocs/RM08001_JLinkUSBProtocol.pdf */ -#define VID 0x1366 -#define PID 0x0101 +/* + * The default pid of the segger is 0x0101 + * But when you change the USB Address it will also + * + * pid = ( usb_address > 0x4) ? 0x0101 : (0x101 + usb_address) + */ +#define VID 0x1366, 0x1366, 0x1366, 0x1366 +#define PID 0x0101, 0x0102, 0x0103, 0x0104 #define JLINK_WRITE_ENDPOINT 0x02 #define JLINK_READ_ENDPOINT 0x81 |