openocd/src/jtag
Tomas Vanek 872682345a drivers/swd: add support for SWD multidrop
According to ARM IHI0031C+ chapter 2.3.11 "TARGETSEL, Target Selection register"
multidrop capable DPv2 must not drive SWDIO line during the response phase
of a write to TARGETSEL register.

Introduce helper functions swd_cmd_returns_ack() and swd_ack_to_error_code()
to centralize these tests from all drivers to one place.

Introduce distinct error codes for SWD protocol.

Partly inspired by Graham Sanderson's http://review.openocd.org/4935

Change-Id: Ie5f9edb22e066a933a534bf2b29e7e1d3087dad1
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: https://review.openocd.org/c/openocd/+/6699
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Tested-by: jenkins
2021-11-20 14:44:54 +00:00
..
aice jtag/aice: remove unused exported struct aice_interface_param_s 2021-10-25 16:13:17 +00:00
drivers drivers/jtag_vpi: Added "jtag_vpi:" prefixes to log messages 2021-11-20 14:43:22 +00:00
hla jtag/hla_layout: add #include <target/arm_tpiu_swo.h> 2021-11-20 14:43:51 +00:00
adapter.c jtag/adapter: fix memory leak on usb location 2021-11-13 10:51:19 +00:00
adapter.h jtag: remove file driver.h 2021-11-13 10:50:58 +00:00
commands.c openocd: remove NULL comparisons with checkpatch [2/2] 2021-07-24 10:38:11 +01:00
commands.h jtag: make cmd_queue_scan_field_clone public 2018-10-16 11:58:17 +01:00
core.c jtag: move adapter init/quit and speed to adapter.c 2021-11-13 10:47:23 +00:00
interface.c coding style: prototype of functions with no parameters 2020-05-09 14:39:59 +01:00
interface.h armv7m_trace: get rid of the old tpiu code 2021-03-10 21:34:04 +00:00
interfaces.c jtag: remove minidriver code and minidriver-dummy 2021-03-19 21:56:06 +00:00
interfaces.h jtag: remove unused function adapter_driver_modules_load() 2020-05-02 15:41:21 +01:00
jtag.h jtag: move prototype of adapter init/quit and speed to adapter.h 2021-11-13 10:49:59 +00:00
Makefile.am jtag: remove file driver.h 2021-11-13 10:50:58 +00:00
minidriver.h jtag: fix some minor typo 2021-05-22 10:06:38 +01:00
startup.tcl drivers/ft232r: Group adapter commands 2021-08-14 13:37:36 +01:00
swd.h drivers/swd: add support for SWD multidrop 2021-11-20 14:44:54 +00:00
swim.c swim: add new transport 2020-05-24 21:32:05 +01:00
swim.h swim: fix adapter speed handling 2020-05-24 21:31:21 +01:00
tcl.c jtag: align adapter speed code to new structure 2021-11-13 10:50:34 +00:00
tcl.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00