summaryrefslogtreecommitdiff
path: root/src/transport/transport.c
diff options
context:
space:
mode:
authorTomek CEDRO <cederom@tlen.pl>2011-06-25 14:16:06 +0200
committerTomek CEDRO <cederom@tlen.pl>2011-06-25 14:16:06 +0200
commit2c7b391eb3179f6c095890741214afcf8dc6ff29 (patch)
treea79216abe804ffa9234370e5dd8ab05b6e028911 /src/transport/transport.c
parent202a2abedf4ab87e9ae61b6ede5db615f0c1a131 (diff)
downloadopenocd+libswd-2c7b391eb3179f6c095890741214afcf8dc6ff29.tar.gz
openocd+libswd-2c7b391eb3179f6c095890741214afcf8dc6ff29.tar.bz2
openocd+libswd-2c7b391eb3179f6c095890741214afcf8dc6ff29.tar.xz
openocd+libswd-2c7b391eb3179f6c095890741214afcf8dc6ff29.zip
TRANSPORT: Supported transport names lists are now declared by src/transport.h and defined by src/transport.c. Multiple definitions of 'jtag_only' were removed and code was updated to use 'oocd_transport_jtag_only' (also updated headers if necessary) as defined by src/transport.
Diffstat (limited to 'src/transport/transport.c')
-rw-r--r--src/transport/transport.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/transport/transport.c b/src/transport/transport.c
index 3a0cdd36..32a95e4a 100644
--- a/src/transport/transport.c
+++ b/src/transport/transport.c
@@ -69,6 +69,10 @@ static const char **allowed_transports;
/** * The transport being used for the current OpenOCD session. */
static struct transport *session_transport;
+/** Transport names definitions. */
+const char *oocd_transport_jtag_only[] = { "jtag", NULL };
+const char *oocd_transport_swd_only[] = { "swd" , NULL };
+
static int transport_select(struct command_context *ctx, const char *name)
{
int retval;