Duane Ellis: "target as an [tcl] object" feature.
[fw/openocd] / src / target / target / lpc2148.cfg
index e76aa02437973bbecbc696bd6099d60ff94c270c..79ec9ecb1a983458cc6250821e3d090bb9f32fd8 100644 (file)
@@ -14,8 +14,7 @@ reset_config trst_and_srst srst_pulls_trst
 jtag_device 4 0x1 0xf 0xe
 
 target arm7tdmi little 0 arm7tdmi-s_r4
-
-proc target_0_post_reset {} {
+[new_target_name] configure -event old-post_reset {} {
        # Force target into ARM state
        soft_reset_halt
        #do not remap 0x0000-0x0020 to anything but the flash