aboutsummaryrefslogtreecommitdiff
path: root/tcl/target/swj-dp.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'tcl/target/swj-dp.tcl')
-rw-r--r--tcl/target/swj-dp.tcl12
1 files changed, 9 insertions, 3 deletions
diff --git a/tcl/target/swj-dp.tcl b/tcl/target/swj-dp.tcl
index 2fa82ed3..4f2b4969 100644
--- a/tcl/target/swj-dp.tcl
+++ b/tcl/target/swj-dp.tcl
@@ -24,7 +24,13 @@ if [catch {transport select}] {
}
proc swj_newdap {chip tag args} {
- if {[using_jtag]} { eval jtag newtap $chip $tag $args }
- if {[using_swd]} { eval swd newdap $chip $tag $args }
- if {[string equal [transport select] "cmsis-dap"]} { eval cmsis-dap newdap $chip $tag $args }
+ if [using_hla] {
+ eval hla newtap $chip $tag $args
+ } elseif [using_jtag] {
+ eval jtag newtap $chip $tag $args
+ } elseif [using_swd] {
+ eval swd newdap $chip $tag $args
+ } elseif [string equal [transport select] "cmsis-dap"] {
+ eval cmsis-dap newdap $chip $tag $args
+ }
}