From: OpenOCD-Gerrit <ope...@us...> - 2020-05-24 20:29:56
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 93c4c0fcbec1ebcb2ce19b37c39b63f10a91b9e8 (commit) from 94dfa68647062ce71322f293a468bf5cdccf82be (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 93c4c0fcbec1ebcb2ce19b37c39b63f10a91b9e8 Author: Antonio Borneo <bor...@gm...> Date: Sun Jan 26 16:30:14 2020 +0100 adapter: expose HLA interface in struct adapter_driver The transition of STM8/SWIM out of HLA will require a new struct swim_ops in struct adapter_driver. To simplify the development, make the HLA interface temporarily accessible through the struct adapter_driver. This commit will be reverted after the swim rework. Change-Id: I1e4f370cf64641164d7bcaa22f75ac58c9240052 Signed-off-by: Antonio Borneo <bor...@gm...> Reviewed-on: http://openocd.zylin.com/5527 Tested-by: jenkins diff --git a/src/jtag/hla/hla_interface.c b/src/jtag/hla/hla_interface.c index 6d5cdc5e7..064c268e4 100644 --- a/src/jtag/hla/hla_interface.c +++ b/src/jtag/hla/hla_interface.c @@ -361,4 +361,7 @@ struct adapter_driver hl_adapter_driver = { .poll_trace = &hl_interface_poll_trace, /* no ops for HLA, targets hla_target and stm8 intercept them all */ + + /* FIXME: helper to simplify transition of HLA drivers. To be removed */ + .hla_if = &hl_if, }; diff --git a/src/jtag/interface.h b/src/jtag/interface.h index 39d2d9d88..91291dbd1 100644 --- a/src/jtag/interface.h +++ b/src/jtag/interface.h @@ -37,6 +37,9 @@ */ +/* FIXME: prototype to simplify transition of HLA drivers. To be removed */ +struct hl_interface_s; + /** implementation of wrapper function tap_set_state() */ void tap_set_state_impl(tap_state_t new_state); @@ -359,6 +362,9 @@ struct adapter_driver { /* DAP APIs over SWD transport */ const struct dap_ops *dap_swd_ops; + + /* FIXME: helper to simplify transition of HLA drivers. To be removed */ + struct hl_interface_s *hla_if; }; extern const char * const jtag_only[]; ----------------------------------------------------------------------- Summary of changes: src/jtag/hla/hla_interface.c | 3 +++ src/jtag/interface.h | 6 ++++++ 2 files changed, 9 insertions(+) hooks/post-receive -- Main OpenOCD repository |