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
This commit is contained in:
oharboe
2009-10-06 08:10:57 +00:00
parent a2886fe3c6
commit 39b57471bf
4 changed files with 37 additions and 13 deletions

View 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
}
}