From 39b57471bfd92ef0d9a3aceb69f40c1335f5b62f Mon Sep 17 00:00:00 2001 From: oharboe Date: Tue, 6 Oct 2009 08:10:57 +0000 Subject: 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 --- src/helper/startup.tcl | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/helper/startup.tcl') 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 -- cgit v1.2.3