diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2019-01-23 10:52:28 +0100 |
---|---|---|
committer | Tomas Vanek <vanekt@fbl.cz> | 2020-01-14 11:40:25 +0000 |
commit | a61ec3c1d73dc0c9915662f7b9383b6f786a5fea (patch) | |
tree | 7063e960dae4db6977b77620a50aa1c6cc1ae389 /src/transport | |
parent | c6b6fdeb2c4c644addf7b2e1d8c5f0b800d359b7 (diff) | |
download | riscv-openocd-a61ec3c1d73dc0c9915662f7b9383b6f786a5fea.zip riscv-openocd-a61ec3c1d73dc0c9915662f7b9383b6f786a5fea.tar.gz riscv-openocd-a61ec3c1d73dc0c9915662f7b9383b6f786a5fea.tar.bz2 |
adi_v5_dapdirect: add support for adapter drivers that provide DAP API
Some high level adapters, like STLINK-V3 and new firmware for
ST-Link/V2, provide API to directly access the DAP registers
hiding the details of the physical transport JTAG or SWD.
OpenOCD has already the intermediate API in struct dap_ops that
are suitable for such adapters, but are not exposed to the
adapter drivers.
Add in struct adapter_driver two independent struct dap_ops for
the cases of physical JTAG and SWD transport.
Add new transport names "dapdirect_jtag" and "dapdirect_swd", to
be used by the drivers that provide one or both DAP API.
Add the necessarily glue in target/adi_v5_dapdirect.c
Change-Id: I2bb8e3a80fba750f2c218d877cfa5888428e3c28
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/4903
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/transport.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/transport/transport.h b/src/transport/transport.h index 140ef50..4effca5 100644 --- a/src/transport/transport.h +++ b/src/transport/transport.h @@ -96,6 +96,8 @@ bool transports_are_declared(void); bool transport_is_jtag(void); bool transport_is_swd(void); +bool transport_is_dapdirect_jtag(void); +bool transport_is_dapdirect_swd(void); #if BUILD_HLADAPTER bool transport_is_hla(void); |