projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stlink: handle wrong initialization file if no layout was specified
[fw/openocd]
/
src
/
jtag
/
tcl.c
diff --git
a/src/jtag/tcl.c
b/src/jtag/tcl.c
index 468edf5e511c169823b126660dcbe215bdc018b4..8808666f4273dd6e734c764e2f2321574b4002e1 100644
(file)
--- a/
src/jtag/tcl.c
+++ b/
src/jtag/tcl.c
@@
-35,6
+35,7
@@
#include "minidriver.h"
#include "interface.h"
#include "interfaces.h"
#include "minidriver.h"
#include "interface.h"
#include "interfaces.h"
+#include "tcl.h"
#ifdef HAVE_STRINGS_H
#include <strings.h>
#ifdef HAVE_STRINGS_H
#include <strings.h>
@@
-166,6
+167,8
@@
static int Jim_Command_drscan(Jim_Interp *interp, int argc, Jim_Obj *const *args
}
} /* validate args */
}
} /* validate args */
+ assert(e == JIM_OK);
+
tap = jtag_tap_by_jim_obj(interp, args[1]);
if (tap == NULL) {
return JIM_ERR;
tap = jtag_tap_by_jim_obj(interp, args[1]);
if (tap == NULL) {
return JIM_ERR;
@@
-756,7
+759,7
@@
static bool jtag_tap_disable(struct jtag_tap *t)
return true;
}
return true;
}
-
static int jim_jtag_tap_enabler(Jim_Interp *interp, int argc, Jim_Obj *
const *argv)
+
int jim_jtag_tap_enabler(Jim_Interp *interp, int argc, Jim_Obj *
const *argv)
{
const char *cmd_name = Jim_GetString(argv[0], NULL);
Jim_GetOptInfo goi;
{
const char *cmd_name = Jim_GetString(argv[0], NULL);
Jim_GetOptInfo goi;
@@
-793,7
+796,7
@@
static int jim_jtag_tap_enabler(Jim_Interp *interp, int argc, Jim_Obj *const *ar
return JIM_OK;
}
return JIM_OK;
}
-
static int jim_jtag_configure(Jim_Interp *interp, int argc, Jim_Obj *
const *argv)
+
int jim_jtag_configure(Jim_Interp *interp, int argc, Jim_Obj *
const *argv)
{
const char *cmd_name = Jim_GetString(argv[0], NULL);
Jim_GetOptInfo goi;
{
const char *cmd_name = Jim_GetString(argv[0], NULL);
Jim_GetOptInfo goi;