diff --git a/src/jtag/tcl.c b/src/jtag/tcl.c index b634ac0db..8808666f4 100644 --- a/src/jtag/tcl.c +++ b/src/jtag/tcl.c @@ -35,6 +35,7 @@ #include "minidriver.h" #include "interface.h" #include "interfaces.h" +#include "tcl.h" #ifdef HAVE_STRINGS_H #include @@ -758,7 +759,7 @@ static bool jtag_tap_disable(struct jtag_tap *t) 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; @@ -795,7 +796,7 @@ static int jim_jtag_tap_enabler(Jim_Interp *interp, int argc, Jim_Obj *const *ar 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; diff --git a/src/jtag/tcl.h b/src/jtag/tcl.h new file mode 100644 index 000000000..c9adb1e9d --- /dev/null +++ b/src/jtag/tcl.h @@ -0,0 +1,9 @@ +#ifndef _JTAG_TCL_H_ +#define _JTAG_TCL_H_ + +int jim_jtag_configure(Jim_Interp *interp, int argc, + Jim_Obj * const *argv); +int jim_jtag_tap_enabler(Jim_Interp *interp, int argc, + Jim_Obj * const *argv); + +#endif