adapter: add command "adapter [de]assert srst|trst [[de]assert srst|trst]" 77/5277/5
authorAntonio Borneo <borneo.antonio@gmail.com>
Thu, 10 Jan 2019 09:58:15 +0000 (10:58 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Thu, 2 Jan 2020 21:24:30 +0000 (21:24 +0000)
commitfafe6dfc9cd882f5cee4f4fa2b3971991d9e97b9
treebac6f9f6380e264c7ffc3af8ca54e51f166937cb
parentdeff24afa13fe5188c207258d6d1935bc3dd0870
adapter: add command "adapter [de]assert srst|trst [[de]assert srst|trst]"

Inspired from http://openocd.zylin.com/#/c/3720/1

Add commands to control the adapter's signals srst and trst.
Add macros for the flag's values assert/deassert to make clear what
they mean and to propose a uniform set of values across the code.

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