hla_transport: split command registration per transport
[fw/openocd] / tcl / target / swj-dp.tcl
index 1d274cb1290cbb73e6efdd64d2ef82b529732ac0..3fb0263f1c6d24884497e65ee4236ee920cb478a 100644 (file)
@@ -24,11 +24,12 @@ if [catch {transport select}] {
 }
 
 proc swj_newdap {chip tag args} {
- if [using_hla] {
-     eval hla newtap $chip $tag $args
- } elseif [using_jtag] {
+ if [using_jtag] {
      eval jtag newtap $chip $tag $args
  } elseif [using_swd] {
      eval swd newdap $chip $tag $args
+ } else {
+     echo "Error: transport '[ transport select ]' not supported by swj_newdap"
+     shutdown
  }
 }