diff options
author | Paul Fertser <fercerpav@gmail.com> | 2016-11-04 13:58:05 +0300 |
---|---|---|
committer | Tomas Vanek <vanekt@fbl.cz> | 2019-02-25 23:53:48 +0000 |
commit | 2c76f1ac0e27c643539b604e23435f58fa0af016 (patch) | |
tree | ee4534875f5202dedbc7b515534ea26182b9e6b5 /src/jtag/drivers/cmsis_dap_usb.c | |
parent | f473f84840d0c324df684c49744e32f086595bab (diff) | |
download | riscv-openocd-2c76f1ac0e27c643539b604e23435f58fa0af016.zip riscv-openocd-2c76f1ac0e27c643539b604e23435f58fa0af016.tar.gz riscv-openocd-2c76f1ac0e27c643539b604e23435f58fa0af016.tar.bz2 |
jtag: drivers: cmsis-dap: correct vendor request code
While at it, change the macro name to make it obvious it's a string,
not some numeric ID. This also matches ARM code that's using
Change-Id: Id35ba5b95cef0ac77657c40985b24c1ae2720748
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/3855
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Diffstat (limited to 'src/jtag/drivers/cmsis_dap_usb.c')
-rw-r--r-- | src/jtag/drivers/cmsis_dap_usb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jtag/drivers/cmsis_dap_usb.c b/src/jtag/drivers/cmsis_dap_usb.c index bd8d0be..14a23d4 100644 --- a/src/jtag/drivers/cmsis_dap_usb.c +++ b/src/jtag/drivers/cmsis_dap_usb.c @@ -77,8 +77,8 @@ static bool swd_mode; #define CMD_DAP_RESET_TARGET 0x0A /* CMD_INFO */ -#define INFO_ID_VID 0x00 /* string */ -#define INFO_ID_PID 0x02 /* string */ +#define INFO_ID_VENDOR 0x01 /* string */ +#define INFO_ID_PRODUCT 0x02 /* string */ #define INFO_ID_SERNUM 0x03 /* string */ #define INFO_ID_FW_VER 0x04 /* string */ #define INFO_ID_TD_VEND 0x05 /* string */ |