openocd/src/jtag
Antonio Borneo 0d56f379b5 target: add API to temporarily mask target polling
The same flag 'jtag_poll' is currently used as local data for the
command 'poll' and to temporarily mask the target polling.
This can cause unexpected behavior if the command 'poll' is
executed while polling is temporarily masked.

Add a new flag 'jtag_poll_en' to hold the temporarily mask
condition and keep 'jtag_poll' for the 'poll' command only.

While there, change the initial assignment of 'jtag_poll' using
the proper boolean value.

Change-Id: I18dcf7c65b07aefadf046caaa2fcd2d74fa6fbae
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7009
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Tested-by: jenkins
2022-08-15 13:22:06 +00:00
..
aice openocd: src/jtag: replace the GPL-2.0-or-later license tag 2022-07-23 13:55:06 +00:00
drivers drivers/vdebug: add support for DAP level interface 2022-07-30 08:48:21 +00:00
hla openocd: src/jtag: replace the GPL-2.0-or-later license tag 2022-07-23 13:55:06 +00:00
Makefile.am openocd: build: add SPDX tag 2022-07-23 13:06:38 +00:00
adapter.c adapter: run at default speed when clock speed not specified 2022-08-15 13:19:45 +00:00
adapter.h jtag/adapter: add command 'adapter serial' 2021-11-28 10:49:51 +00:00
commands.c openocd: src/jtag: replace the GPL-2.0-or-later license tag 2022-07-23 13:55:06 +00:00
commands.h openocd: src/jtag: replace the GPL-2.0-or-later license tag 2022-07-23 13:55:06 +00:00
core.c target: add API to temporarily mask target polling 2022-08-15 13:22:06 +00:00
interface.c openocd: src/jtag: replace the GPL-2.0-or-later license tag 2022-07-23 13:55:06 +00:00
interface.h openocd: src/jtag: replace the GPL-2.0-or-later license tag 2022-07-23 13:55:06 +00:00
interfaces.c openocd: src/jtag: replace the GPL-2.0-or-later license tag 2022-07-23 13:55:06 +00:00
interfaces.h openocd: src/jtag: replace the GPL-2.0-or-later license tag 2022-07-23 13:55:06 +00:00
jtag.h target: add API to temporarily mask target polling 2022-08-15 13:22:06 +00:00
minidriver.h openocd: src/jtag: replace the GPL-2.0-or-later license tag 2022-07-23 13:55:06 +00:00
startup.tcl openocd: build: add SPDX tag 2022-07-23 13:06:38 +00:00
swd.h openocd: src/jtag: replace the GPL-2.0-or-later license tag 2022-07-23 13:55:06 +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 openocd: src/jtag: replace the GPL-2.0-or-later license tag 2022-07-23 13:55:06 +00:00
tcl.h openocd: src/jtag: replace the GPL-2.0-or-later license tag 2022-07-23 13:55:06 +00:00