]> git.gag.com Git - fw/openocd/blobdiff - tcl/target/sam7x256.cfg
David Brownell <david-b@pacbell.net> "set _TARGETNAME ..." cleanup
[fw/openocd] / tcl / target / sam7x256.cfg
index 789f7dd69ca0caeb531765632002b306aeac25be..b659dd5f87238e8b3a90c68f6009c40c3c98fa2b 100644 (file)
@@ -21,9 +21,9 @@ if { [info exists CPUTAPID ] } {
 
 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
 
-set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
-
+set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi
+
 $_TARGETNAME configure -event reset-init { 
        # disable watchdog
        mww 0xfffffd44 0x00008000