Browse Source

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>
tags/v0.5.0-rc1
Jean-Christophe PLAGNIOL-VILLARD 13 years ago
committed by Øyvind Harboe
parent
commit
2ed3f55547
1 changed files with 8 additions and 2 deletions
  1. +8
    -2
      src/jtag/drivers/jlink.c

+ 8
- 2
src/jtag/drivers/jlink.c View File

@@ -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


Loading…
Cancel
Save