diff options
author | Spencer Oliver <spen@spen-soft.co.uk> | 2012-04-19 14:03:32 +0100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2012-04-30 13:04:07 +0000 |
commit | 0ce2e9a2597ab7f714e83bed9fed0e26e949e6ee (patch) | |
tree | 6a183e7b85f1709d7fbf39b2d2ed073298ee6f25 /src | |
parent | 6f3a9bdf6772ad2a7c4344edaa8ad2ffc652606b (diff) | |
download | riscv-openocd-0ce2e9a2597ab7f714e83bed9fed0e26e949e6ee.zip riscv-openocd-0ce2e9a2597ab7f714e83bed9fed0e26e949e6ee.tar.gz riscv-openocd-0ce2e9a2597ab7f714e83bed9fed0e26e949e6ee.tar.bz2 |
stlink: default to latest api available
Change-Id: Ic04128f4020055587bb87250f41e5c804d9c2b01
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/577
Tested-by: jenkins
Reviewed-by: Mathias Küster <kesmtp@freenet.de>
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/jtag/drivers/stlink_usb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jtag/drivers/stlink_usb.c b/src/jtag/drivers/stlink_usb.c index 68179c3..6fe958e 100644 --- a/src/jtag/drivers/stlink_usb.c +++ b/src/jtag/drivers/stlink_usb.c @@ -1186,8 +1186,8 @@ static int stlink_usb_open(struct stlink_interface_param_s *param, void **fd) return err; } - /* set the used jtag api */ - h->jtag_api = STLINK_JTAG_API_V1; + /* set the used jtag api, this will default to the newest supported version */ + h->jtag_api = h->version.jtag_api_max; /* initialize the debug hardware */ err = stlink_usb_init_mode(h); |