tcl: introduce using_(jtag|swd|hla) helpers and use them in reset handler
[fw/openocd] / tcl / target / at91sam3XXX.cfg
index f36475b6d46ec754397167f294a13644f9f96af0..caadc5361cf96dc4359f33b384fc968229c5e66e 100644 (file)
@@ -76,7 +76,7 @@ $_TARGETNAME configure -event gdb-flash-erase-start {
 adapter_khz 500
 
 adapter_nsrst_delay 100
-if {$using_jtag} {
+if {[using_jtag]} {
    jtag_ntrst_delay 100
 }