aboutsummaryrefslogtreecommitdiff
path: root/src/jtag/adapter.h
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2021-10-07 12:13:28 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2021-11-13 10:47:23 +0000
commitb8ec1d4e7ddcb4cc3993a2d31225fd17527f267d (patch)
tree59e1e049355a82c52e6e773bc66b11204a8e52da /src/jtag/adapter.h
parent4cb3c9fae2a6a6cb5cf2c664179edace22abf5f6 (diff)
downloadriscv-openocd-b8ec1d4e7ddcb4cc3993a2d31225fd17527f267d.zip
riscv-openocd-b8ec1d4e7ddcb4cc3993a2d31225fd17527f267d.tar.gz
riscv-openocd-b8ec1d4e7ddcb4cc3993a2d31225fd17527f267d.tar.bz2
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>
Diffstat (limited to 'src/jtag/adapter.h')
-rw-r--r--src/jtag/adapter.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jtag/adapter.h b/src/jtag/adapter.h
index 854ee9c..fe9a631 100644
--- a/src/jtag/adapter.h
+++ b/src/jtag/adapter.h
@@ -10,6 +10,9 @@
#include <stddef.h>
#include <stdint.h>
+/** @returns true if adapter has been initialized */
+bool is_adapter_initialized(void);
+
/** @returns USB location string set with command 'adapter usb location' */
const char *adapter_usb_get_location(void);