summaryrefslogtreecommitdiff
path: root/src/target/arm_adi_v5.c
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-03-17 21:50:23 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-03-18 08:39:51 +0100
commitfccdfc1cd78ddfb687e0d1fc630c3fa10af2b5f9 (patch)
treed82927deaaab4853f6aa90cf62b1f570946bf17e /src/target/arm_adi_v5.c
parent0529431fe740fbf04b41129d84e2d8633b13fabe (diff)
downloadopenocd+libswd-fccdfc1cd78ddfb687e0d1fc630c3fa10af2b5f9.tar.gz
openocd+libswd-fccdfc1cd78ddfb687e0d1fc630c3fa10af2b5f9.tar.bz2
openocd+libswd-fccdfc1cd78ddfb687e0d1fc630c3fa10af2b5f9.tar.xz
openocd+libswd-fccdfc1cd78ddfb687e0d1fc630c3fa10af2b5f9.zip
linker error: fix problem with duplicate fn
A fn was copied instead of moved to a new file. The linker can discard exact copies of fn's without warning. This is a C++'ism. However on my Ubuntu 9.10 machine, it fails. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/target/arm_adi_v5.c')
-rw-r--r--src/target/arm_adi_v5.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c
index dcad0fbc..4afd50cb 100644
--- a/src/target/arm_adi_v5.c
+++ b/src/target/arm_adi_v5.c
@@ -1597,36 +1597,3 @@ static const uint8_t jtag2swd_bitseq[] = {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
};
-/**
- * Put the debug link into SWD mode, if the target supports it.
- * The link's initial mode may be either JTAG (for example,
- * with SWJ-DP after reset) or SWD.
- *
- * @param target Enters SWD mode (if possible).
- *
- * Note that targets using the JTAG-DP do not support SWD, and that
- * some targets which could otherwise support it may have have been
- * configured to disable SWD signaling
- *
- * @return ERROR_OK or else a fault code.
- */
-int dap_to_swd(struct target *target)
-{
- int retval;
-
- LOG_DEBUG("Enter SWD mode");
-
- /* REVISIT it's nasty to need to make calls to a "jtag"
- * subsystem if the link isn't in JTAG mode...
- */
-
- retval = jtag_add_tms_seq(8 * sizeof(jtag2swd_bitseq),
- jtag2swd_bitseq, TAP_INVALID);
- if (retval == ERROR_OK)
- retval = jtag_execute_queue();
-
- /* REVISIT set up the DAP's ops vector for SWD mode. */
-
- return retval;
-}
-