summaryrefslogtreecommitdiff
path: root/src/target/arm_adi_v5.h
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2010-02-27 00:31:35 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2010-02-27 00:31:35 -0800
commit3ef9beb52cd0ed57ae6d28f7858001bfb68d7e86 (patch)
tree65046a7e88480fdb5ce8229b29fd4246a4928be7 /src/target/arm_adi_v5.h
parent8c9b52e8b615198252ab53e1b5c7cf5f314c5ca1 (diff)
downloadopenocd+libswd-3ef9beb52cd0ed57ae6d28f7858001bfb68d7e86.tar.gz
openocd+libswd-3ef9beb52cd0ed57ae6d28f7858001bfb68d7e86.tar.bz2
openocd+libswd-3ef9beb52cd0ed57ae6d28f7858001bfb68d7e86.tar.xz
openocd+libswd-3ef9beb52cd0ed57ae6d28f7858001bfb68d7e86.zip
ADIv5 DAP ops switching to JTAG or SWD modes
Define two new DAP operations which use the new jtag_add_tms_seq() calls to put the DAP's transport into either SWD or JTAG mode, when the hardware allows. Tested with the Stellaris 'Recovering a "Locked" Device' procedure, which loops five times over both of these. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target/arm_adi_v5.h')
-rw-r--r--src/target/arm_adi_v5.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/target/arm_adi_v5.h b/src/target/arm_adi_v5.h
index 316701e5..5c5ca4f0 100644
--- a/src/target/arm_adi_v5.h
+++ b/src/target/arm_adi_v5.h
@@ -235,4 +235,12 @@ DAP_COMMAND_HANDLER(dap_memaccess_command);
DAP_COMMAND_HANDLER(dap_apsel_command);
DAP_COMMAND_HANDLER(dap_apid_command);
+struct target;
+
+/* Put debug link into SWD mode */
+int dap_to_swd(struct target *target);
+
+/* Put debug link into JTAG mode */
+int dap_to_jtag(struct target *target);
+
#endif