aboutsummaryrefslogtreecommitdiff
path: root/src/jtag/hla/hla_layout.h
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2014-08-19 21:16:20 +0400
committerSpencer Oliver <spen@spen-soft.co.uk>2014-10-06 12:03:30 +0000
commit1f6a66ab7fca983a3cffd4070c42ae965d0fc6cb (patch)
treeca0a13925736a97bca9fa17c2514e70a743ce4b7 /src/jtag/hla/hla_layout.h
parent44394c2a77f68785e2ec87e2245d0f1624086682 (diff)
hla: add a way to pass arbitrary commands from user to layout and use for ICDI
TI's ICDI adapter supports some additional commands which a user might want to run for debugging or other purposes, the most useful of them being "debug unlock" that fully mass-erases the device and unprotects the flash. Change-Id: I26990e736094367f92106fa891e9bb8fb0382efb Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2263 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/jtag/hla/hla_layout.h')
-rw-r--r--src/jtag/hla/hla_layout.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jtag/hla/hla_layout.h b/src/jtag/hla/hla_layout.h
index 6d79d581..df93cb69 100644
--- a/src/jtag/hla/hla_layout.h
+++ b/src/jtag/hla/hla_layout.h
@@ -76,6 +76,8 @@ struct hl_layout_api_s {
/** */
int (*override_target) (const char *targetname);
/** */
+ int (*custom_command) (void *handle, const char *command);
+ /** */
enum target_state (*state) (void *fd);
};