diff options
author | Tomek CEDRO <cederom@tlen.pl> | 2011-10-13 21:59:45 +0200 |
---|---|---|
committer | Tomek CEDRO <cederom@tlen.pl> | 2011-10-13 21:59:45 +0200 |
commit | d7415b624fa278f1d8513b94b1011dc831e581bf (patch) | |
tree | ce5ca7b31f767b1b497c267e8f6e4a904be526e2 /src/transport | |
parent | 31f98f515598d671bf2ae51f0bc40bbb049195d4 (diff) | |
download | openocd_libswd-d7415b624fa278f1d8513b94b1011dc831e581bf.tar.gz openocd_libswd-d7415b624fa278f1d8513b94b1011dc831e581bf.tar.bz2 openocd_libswd-d7415b624fa278f1d8513b94b1011dc831e581bf.tar.xz openocd_libswd-d7415b624fa278f1d8513b94b1011dc831e581bf.zip |
SWD: swd tcl commands are now available from CLI and initialized at program startup with other commands.
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/swd.h | 7 | ||||
-rw-r--r-- | src/transport/swd_core.c | 2 | ||||
-rw-r--r-- | src/transport/transport.h | 1 |
3 files changed, 8 insertions, 2 deletions
diff --git a/src/transport/swd.h b/src/transport/swd.h index 437a8a5e..cf737e32 100644 --- a/src/transport/swd.h +++ b/src/transport/swd.h @@ -35,12 +35,16 @@ */ /** \file swd.h SWD Transport Header File for OpenOCD. */ + +#ifndef OOCD_SWD_H +#define OOCD_SWD_H + + #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <libswd.h> -#include <transport/transport.h> #include <target/arm.h> #include <target/arm_adi_v5.h> #include <helper/log.h> @@ -62,3 +66,4 @@ extern const struct dap_ops oocd_dap_ops_swd; int swd_register_commands(struct command_context *cmd_ctx); +#endif diff --git a/src/transport/swd_core.c b/src/transport/swd_core.c index 383199f2..f5c9faef 100644 --- a/src/transport/swd_core.c +++ b/src/transport/swd_core.c @@ -46,7 +46,7 @@ #include "config.h" #endif -#include <transport/swd.h> +#include <transport/transport.h> ///Unfortunalety OpenOCD use globals to pass information so we need to use it too. extern struct jtag_interface *jtag_interface; diff --git a/src/transport/transport.h b/src/transport/transport.h index 2702b9ef..b5e15ffd 100644 --- a/src/transport/transport.h +++ b/src/transport/transport.h @@ -21,6 +21,7 @@ #define OOCD_TRANSPORT_H #include "helper/command.h" +#include "transport/swd.h" /** * Wrapper for transport lifecycle operations. |