summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authordbrownell <dbrownell@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-09-19 06:49:40 +0000
committerdbrownell <dbrownell@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-09-19 06:49:40 +0000
commit2d3bcddf0490620cb17089bdfe523eb547b41aa3 (patch)
tree60956f5acecfa732b0455bc8bef5eea1153c3a4f /src/target
parent74ae645623f328b54f570dbe14c3cffb6046d269 (diff)
downloadopenocd+libswd-2d3bcddf0490620cb17089bdfe523eb547b41aa3.tar.gz
openocd+libswd-2d3bcddf0490620cb17089bdfe523eb547b41aa3.tar.bz2
openocd+libswd-2d3bcddf0490620cb17089bdfe523eb547b41aa3.tar.xz
openocd+libswd-2d3bcddf0490620cb17089bdfe523eb547b41aa3.zip
Minor behavior fixes for the two JTAG reset events (C/internal,
and Tcl/external): - Reorder so *both* paths (TCK/TMS or TRST) can enable TAPs with ICEpick ... first C code flags TAPs that got disabled, then call any Tcl code that might want to re-enable them. - Always call the C/internal handlers when JTAG operations can be issued; previously that wasn't done when TRST was used. Plus some small cleanups (whitespace, strings, better messaging during debug and on some errors) to reset-related code. git-svn-id: svn://svn.berlios.de/openocd/trunk@2730 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r--src/target/target.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/target/target.c b/src/target/target.c
index 0bce8279..16e36816 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -4028,7 +4028,8 @@ static int tcl_target_func(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
break;
case TS_CMD_RESET:
if (goi.argc != 2) {
- Jim_WrongNumArgs(interp, 2, argv, "t | f|assert | deassert BOOL");
+ Jim_WrongNumArgs(interp, 2, argv,
+ "([tT]|[fF]|assert|deassert) BOOL");
return JIM_ERR;
}
e = Jim_GetOpt_Nvp(&goi, nvp_assert, &n);