summaryrefslogtreecommitdiff
path: root/src/transport/swd_core.c
diff options
context:
space:
mode:
authorTomek CEDRO <cederom@tlen.pl>2011-09-09 22:18:56 +0000
committerTomek CEDRO <cederom@tlen.pl>2011-09-09 22:18:56 +0000
commitb542c103767836b846d278b51ff682f73fc4c618 (patch)
tree6dad2ef841449d98232056e14bedefabb3a11f84 /src/transport/swd_core.c
parent59994223e388f9e087eb8930f6b3055360451824 (diff)
downloadopenocd+libswd-b542c103767836b846d278b51ff682f73fc4c618.tar.gz
openocd+libswd-b542c103767836b846d278b51ff682f73fc4c618.tar.bz2
openocd+libswd-b542c103767836b846d278b51ff682f73fc4c618.tar.xz
openocd+libswd-b542c103767836b846d278b51ff682f73fc4c618.zip
transport/swd: Introduced swd_tcl.c, a TCL interface for SWD. Commands are registered at transport select. Available commands are 'newdap' currently pointing to jtag_newtap, 'loglevel' that can show/set/inherit loglevel for easier log analysis during development.
Diffstat (limited to 'src/transport/swd_core.c')
-rw-r--r--src/transport/swd_core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/transport/swd_core.c b/src/transport/swd_core.c
index c608bf21..da287e7a 100644
--- a/src/transport/swd_core.c
+++ b/src/transport/swd_core.c
@@ -180,6 +180,12 @@ int oocd_swd_transport_select(struct command_context *ctx){
LOG_ERROR("Unable to set log level: %s", swd_error_string(retval));
return ERROR_FAIL;
}
+
+ retval=swd_register_commands(ctx);
+ if (retval!=ERROR_OK) {
+ LOG_ERROR("Unable to register SWD commands!");
+ return retval;
+ }
LOG_DEBUG("SWD Transport selection complete...");
return ERROR_OK;
}