diff options
author | Tomek CEDRO <cederom@tlen.pl> | 2011-07-28 14:54:15 +0200 |
---|---|---|
committer | Tomek CEDRO <cederom@tlen.pl> | 2011-07-28 14:54:15 +0200 |
commit | 3c5f78344250aa08f71dd7e3ee94c1af2a05a536 (patch) | |
tree | 16b284fa665f2c3daf499a4bfdc7c8876b542ce6 | |
parent | 2caab84a7f7444d33aa9ddfe5e98fb69dcfb3207 (diff) | |
download | openocd+libswd-3c5f78344250aa08f71dd7e3ee94c1af2a05a536.tar.gz openocd+libswd-3c5f78344250aa08f71dd7e3ee94c1af2a05a536.tar.bz2 openocd+libswd-3c5f78344250aa08f71dd7e3ee94c1af2a05a536.tar.xz openocd+libswd-3c5f78344250aa08f71dd7e3ee94c1af2a05a536.zip |
TARGET/ARMADIV5: DAP operations are set to SWD if transport name is swd.
-rw-r--r-- | src/target/arm_adi_v5.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c index cfef7880..c5d369b5 100644 --- a/src/target/arm_adi_v5.c +++ b/src/target/arm_adi_v5.c @@ -973,8 +973,6 @@ int mem_ap_sel_write_buf_u32(struct adiv5_dap *swjdp, uint8_t ap, */ extern const struct dap_ops jtag_dp_ops; -extern const struct dap_ops swd_dap_ops; - /*--------------------------------------------------------------------------*/ /** @@ -1014,7 +1012,7 @@ int ahbap_debugport_init(struct adiv5_dap *dap) */ if ((strncmp(jtag_interface->transport->name, "swd", 3)==0)) { LOG_INFO("Selecting SWD transport command set."); - dap->ops = &swd_dap_ops; + dap->ops = (struct dap_ops *)&oocd_dap_ops_swd; } else { LOG_INFO("Selecting JTAG transport command set."); dap->ops = &jtag_dp_ops; |