stlink: add stlink_api cmd

This enables the manual selection of the stlink api version.

Change-Id: I0ec8c5b0a101b6456f426d2fec65971da56db4e7
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/617
Tested-by: jenkins
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
Reviewed-by: Xiaofan <xiaofanc@gmail.com>
This commit is contained in:
Spencer Oliver
2012-05-04 14:31:25 +01:00
parent 18df479f0a
commit 61672009c4
4 changed files with 57 additions and 3 deletions

View File

@@ -2671,6 +2671,26 @@ which are not currently documented here.
@deffn {Interface Driver} {stlink}
ST Micro ST-LINK adapter.
@deffn {Config Command} {stlink_device_desc} description
Currently Not Supported.
@end deffn
@deffn {Config Command} {stlink_serial} serial
Currently Not Supported.
@end deffn
@deffn {Config Command} {stlink_layout} (@option{sg}|@option{usb})
Specifies the stlink layout to use.
@end deffn
@deffn {Config Command} {stlink_vid_pid} vid pid
The vendor ID and product ID of the STLINK device.
@end deffn
@deffn {Config Command} {stlink_api} api_level
Manually sets the stlink api used, valid options are 1 or 2.
@end deffn
@end deffn
@deffn {Interface Driver} {ZY1000}