openocd/src/flash/nor
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
..
Makefile.am openocd: build: add SPDX tag 2022-07-23 13:06:38 +00:00
aduc702x.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
aducm360.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
ambiqmicro.c openocd: src: replace the BSD-3-Clause license tag 2022-07-23 13:14:01 +00:00
at91sam3.c openocd: src: replace the GPL and BSD-Source-Code license tags 2022-07-23 13:14:59 +00:00
at91sam4.c openocd: src: replace the GPL and BSD-Source-Code license tags 2022-07-23 13:14:59 +00:00
at91sam4l.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
at91sam7.c flash/nor: remove useless setting of bus_width and chip_width 2022-08-08 20:52:50 +00:00
at91samd.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
ath79.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
atsame5.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
atsamv.c openocd: src: replace the GPL and BSD-Source-Code license tags 2022-07-23 13:14:59 +00:00
avrf.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
bluenrg-x.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
bluenrg-x.h openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
cc26xx.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
cc26xx.h openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
cc3220sf.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
cc3220sf.h openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
cfi.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
cfi.h openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
core.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
core.h openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
driver.h openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
drivers.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
dsp5680xx_flash.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
efm32.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
em357.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
esirisc_flash.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
faux.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
fespi.c flash/nor/fespi: check target type 2022-08-01 08:59:39 +00:00
fm3.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
fm4.c openocd: src: add GPL license tag on files that miss it 2022-07-23 13:13:39 +00:00
imp.h openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
jtagspi.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
kinetis.c fix Kinetis 100 MHz rev 1.x programming 2022-08-08 20:50:20 +00:00
kinetis_ke.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
lpc288x.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
lpc2000.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
lpc2900.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
lpcspifi.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
max32xxx.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
mdr.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
mrvlqspi.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
msp432.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
msp432.h openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
niietcm4.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
non_cfi.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
non_cfi.h openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
npcx.c target,flash: allow target_free_working_area on NULL area pointer 2021-12-03 21:59:20 +00:00
nrf5.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
numicro.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
ocl.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
ocl.h openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
pic32mx.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
psoc4.c target: add API to temporarily mask target polling 2022-08-15 13:22:06 +00:00
psoc5lp.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
psoc6.c flash/nor: remove useless setting of bus_width and chip_width 2022-08-08 20:52:50 +00:00
renesas_rpchf.c openocd: src: fix incorrect SPDX tags 2022-07-23 13:16:09 +00:00
rp2040.c flash/rp2040: don't initialize to NULL fields in struct 2021-11-23 11:04:42 +00:00
sfdp.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
sfdp.h openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
sh_qspi.c openocd: src: fix incorrect SPDX tags 2022-07-23 13:16:09 +00:00
sim3x.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
spi.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
spi.h openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
stellaris.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
stm32f1x.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
stm32f2x.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
stm32h7x.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
stm32l4x.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
stm32l4x.h openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
stm32lx.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
stmqspi.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
stmqspi.h openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
stmsmi.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
str7x.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
str9x.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
str9xpec.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
swm050.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
tcl.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
tms470.c flash/nor: remove useless setting of bus_width and chip_width 2022-08-08 20:52:50 +00:00
virtual.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
w600.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
xcf.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00
xmc1xxx.c openocd: src: fix incorrect GPL license tag 2022-07-23 13:15:54 +00:00
xmc4xxx.c openocd: src/flash: replace the GPL-2.0-or-later license tag 2022-07-23 13:16:27 +00:00