summaryrefslogtreecommitdiff
path: root/src/helper
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-10-06 08:10:57 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-10-06 08:10:57 +0000
commit39b57471bfd92ef0d9a3aceb69f40c1335f5b62f (patch)
tree4d7b675f1ec817d3d5e6b2596b5c4a9a053e2de9 /src/helper
parenta2886fe3c66e7cdb05148234054e89730662103d (diff)
downloadopenocd_libswd-39b57471bfd92ef0d9a3aceb69f40c1335f5b62f.tar.gz
openocd_libswd-39b57471bfd92ef0d9a3aceb69f40c1335f5b62f.tar.bz2
openocd_libswd-39b57471bfd92ef0d9a3aceb69f40c1335f5b62f.tar.xz
openocd_libswd-39b57471bfd92ef0d9a3aceb69f40c1335f5b62f.zip
Introduced jtag_init and "jtag arp_init" to allow target scripts more control over how OpenOCD starts up and initializes the target.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2805 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/startup.tcl10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/helper/startup.tcl b/src/helper/startup.tcl
index 7225929f..229aa066 100644
--- a/src/helper/startup.tcl
+++ b/src/helper/startup.tcl
@@ -359,3 +359,13 @@ proc capture_catch {a} {
} result
return $result
}
+
+
+# Executed during "init". Can be implemented by target script
+# tar
+proc jtag_init {} {
+ if {[catch {jtag arp_init} err]!=0} {
+ # try resetting additionally
+ jtag arp_init-reset
+ }
+} \ No newline at end of file