stlink_usb.c: add support for STLink V2-1 19/2019/6
authorBartosz Bielawski <bartosz.bielawski@gmail.com>
Tue, 4 Mar 2014 21:19:16 +0000 (22:19 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Mon, 17 Mar 2014 12:41:57 +0000 (12:41 +0000)
commit4c9d6038b265321be24b40f97350a17ccb634f5f
tree19531162ebc19ffab50093c8dd1f6e9875ce8c95
parentf91390f538f22678a790f77320ec78cce76b0ebb
stlink_usb.c: add support for STLink V2-1

The new version of STLink (V2-1) has a different USB endpoint layout.
As the PID of the device also changed it's possible to change EPs used
by OpenOCD in runtime. The patch adds three new fields to stlink_usb_handle_s
and assigns right EP numbers in stlink_usb_open().
Parts of the code inspired by and used with consent of Jens Hoffmann.

Change-Id: I93b69fb889f15317e9bf864905f435905db39745
Signed-off-by: Bartosz Bielawski <bartosz.bielawski@gmail.com>
Reviewed-on: http://openocd.zylin.com/2019
Tested-by: jenkins
Reviewed-by: Nemui Trinomius <nemuisan_kawausogasuki@live.jp>
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/jtag/drivers/stlink_usb.c
tcl/interface/stlink-v2-1.cfg [new file with mode: 0644]