Add CMSIS-DAP v2 support
commit8f927d51643ceb6b3696772c5fabd5ba9f48fcd3
authorMickaël Thomas <mickael9@gmail.com>
Tue, 29 Jan 2019 20:14:58 +0000 (29 21:14 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Sun, 15 Nov 2020 21:36:56 +0000 (15 21:36 +0000)
tree991002fff5c5fe575188eb8c18f0e071914c4e27
parentb1f488ec1ea4c8b5410026610c621f85b5ff17f3
Add CMSIS-DAP v2 support

This change implements CMSIS-DAP v2 which works with raw USB bulk transfers.

The old driver is now split into a generic CMSIS part and a HID backend,
with a new raw USB backend for CMSIS-DAP v2.

New commands:
- cmsis_dap_backend (usb_bulk | hid | auto)
- cmsis_dap_usb interface <interface number>

Change-Id: I4218477b12ccbfe19c9b332321cd21394bf44e30
Signed-off-by: Mickaël Thomas <mickael9@gmail.com>
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/4831
Tested-by: jenkins
configure.ac
src/jtag/drivers/Makefile.am
src/jtag/drivers/cmsis_dap.c [moved from src/jtag/drivers/cmsis_dap_usb.c with 88% similarity]
src/jtag/drivers/cmsis_dap.h [new file with mode: 0644]
src/jtag/drivers/cmsis_dap_usb_bulk.c [new file with mode: 0644]
src/jtag/drivers/cmsis_dap_usb_hid.c [new file with mode: 0644]
src/jtag/interfaces.c