From 3c5f78344250aa08f71dd7e3ee94c1af2a05a536 Mon Sep 17 00:00:00 2001 From: Tomek CEDRO Date: Thu, 28 Jul 2011 14:54:15 +0200 Subject: TARGET/ARMADIV5: DAP operations are set to SWD if transport name is swd. --- src/target/arm_adi_v5.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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; -- cgit v1.2.3