Introduced jtag_init and "jtag arp_init" to allow target scripts more control over...
[openocd.git] / src / helper / startup.tcl
index 7225929..229aa06 100644 (file)
@@ -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