]> git.gag.com Git - fw/openocd/commit
hla: use the new system_reset API
authorAntonio Borneo <borneo.antonio@gmail.com>
Fri, 6 Sep 2019 09:00:19 +0000 (11:00 +0200)
committerTomas Vanek <vanekt@fbl.cz>
Tue, 14 Jan 2020 11:37:34 +0000 (11:37 +0000)
commit0f24549ce95e682f1e04b3358b13ea8b7f80c074
tree5d644fcc8ab3b2ed68c1b0c68a5bad64a42377d6
parent9daec098a9011171335f0a60536593dcceb9ce5b
hla: use the new system_reset API

HLA uses its own internal driver's API to control the adapter's
system reset, but at the same time it calls jtag_add_reset() to
avoid breaking the internal logic of OpenOCD. This implicitly
forces HLA to rely on jtag queue mechanism, even if HLA has no
link with JTAG state machine. It requires HLA to implement an
empty execute_queue() to comply with the JTAG queue.

Modify the HLA framework and the HLA targets to use the new
adapter API for system_reset and decouple HLA from JTAG queue.
Rename the HLA static functions adapter_assert_reset() and
adapter_deassert_reset() to avoid overlap with the global
functions with same name.
While there, fix a minor typo in a comment s/incase/in case/.

Do not remove from HLA the JTAG specific API execute_queue(),
even if not required anymore, because OpenOCD code still has
calls to jtag_execute_queue() in case of non JTAG transport.

Change-Id: I0e65e3e557bd665bd3d3aeaa84ea609b55a05e48
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/4896
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
src/jtag/core.c
src/jtag/hla/hla_interface.c
src/jtag/hla/hla_interface.h
src/jtag/interface.h
src/target/hla_target.c
src/target/stm8.c