summaryrefslogtreecommitdiff
path: root/src/target/arm_adi_v5.c
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2010-03-18 11:56:17 -0700
committerDavid Brownell <dbrownell@users.sourceforge.net>2010-03-18 11:56:17 -0700
commit52a788e008ecf0ca6156f02de08a0f062d49a236 (patch)
treea70a7d4ab3724cadb59dbdb755cf17176c1e1232 /src/target/arm_adi_v5.c
parent46f92878da6c65eac275d1783e4e4019ec3c9af9 (diff)
downloadopenocd+libswd-52a788e008ecf0ca6156f02de08a0f062d49a236.tar.gz
openocd+libswd-52a788e008ecf0ca6156f02de08a0f062d49a236.tar.bz2
openocd+libswd-52a788e008ecf0ca6156f02de08a0f062d49a236.tar.xz
openocd+libswd-52a788e008ecf0ca6156f02de08a0f062d49a236.zip
remove more duplication
Not sure how the original "move code to adi_v5_swd.c" patch left some code in the "arm_adi_v5.c" file, but a recent patch was only a partial fix -- it didn't remove all the duplication. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target/arm_adi_v5.c')
-rw-r--r--src/target/arm_adi_v5.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c
index 4afd50cb..01c274b3 100644
--- a/src/target/arm_adi_v5.c
+++ b/src/target/arm_adi_v5.c
@@ -1572,28 +1572,3 @@ const struct command_registration dap_command_handlers[] = {
};
-/*
- * This represents the bits which must be sent out on TMS/SWDIO to
- * switch a DAP implemented using an SWJ-DP module into SWD mode.
- * These bits are stored (and transmitted) LSB-first.
- *
- * See the DAP-Lite specification, section 2.2.5 for information
- * about making the debug link select SWD or JTAG. (Similar info
- * is in a few other ARM documents.)
- */
-static const uint8_t jtag2swd_bitseq[] = {
- /* More than 50 TCK/SWCLK cycles with TMS/SWDIO high,
- * putting both JTAG and SWD logic into reset state.
- */
- 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
- /* Switching sequence enables SWD and disables JTAG
- * NOTE: bits in the DP's IDCODE may expose the need for
- * an old/deprecated sequence (0xb6 0xed).
- */
- 0x9e, 0xe7,
- /* More than 50 TCK/SWCLK cycles with TMS/SWDIO high,
- * putting both JTAG and SWD logic into reset state.
- */
- 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
-};
-