tcl: introduce using_(jtag|swd|hla) helpers and use them in reset handler
[fw/openocd] / tcl / target / stm32f3x.cfg
index 3d68c4bfbafe657d5453fbb8edb0bf2c58001a83..ec5941bdef51b3383abd786ed8722abeaa4fb5d9 100644 (file)
@@ -34,7 +34,7 @@ if { [info exists WORKAREASIZE] } {
 adapter_khz 1000
 
 adapter_nsrst_delay 100
-if {$using_jtag} {
+if {[using_jtag]} {
  jtag_ntrst_delay 100
 }
 
@@ -58,7 +58,7 @@ if { [info exists BSTAPID] } {
   set _BSTAPID2 0x06432041
 }
 
-if {$using_jtag} {
+if {[using_jtag]} {
  jtag newtap $_CHIPNAME bs -irlen 5 -expected-id $_BSTAPID1 -expected-id $_BSTAPID2
 }