jtag: move adapter init/quit and speed to adapter.c
commitb8ec1d4e7ddcb4cc3993a2d31225fd17527f267d
authorAntonio Borneo <borneo.antonio@gmail.com>
Thu, 7 Oct 2021 10:13:28 +0000 (7 12:13 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 13 Nov 2021 10:47:23 +0000 (13 10:47 +0000)
tree59e1e049355a82c52e6e773bc66b11204a8e52da
parent4cb3c9fae2a6a6cb5cf2c664179edace22abf5f6
jtag: move adapter init/quit and speed to adapter.c

The configuration code for adapter parameters is spread around.

Move in adapter.c the code that handles the configuration of
adapter speed.
For convenience, move also the functions adapter_init() and
adapter_quit(), that anyway have no reason to be in file core.c

To simplify the review, the code moved is not modified. It will be
cleaned and adapted in the following changes.

Change-Id: I2b38975a0cd2e74d3d2de6c56ea17818ff225fd8
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6641
Tested-by: jenkins
Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
src/jtag/adapter.c
src/jtag/adapter.h
src/jtag/core.c