Duane Ellis: "target as an [tcl] object" feature.
[fw/openocd] / src / target / target / aduc702x.cfg
index fdffbfea6d9185f1fd544b629474409748593013..3bc474f223b3b53564b29356ef6953d95ddeda3d 100644 (file)
@@ -34,5 +34,5 @@ proc watchdog_service {} {
     set watchdog_hdl [after 500 watchdog_service]
 }
 
-proc target_0_post_halt {} { watchdog_service }
-proc arget_0_pre_resume {} { global watchdog_hdl; after cancel $watchdog_hdl }
+[new_target_name] configure -event old-post_halt {  watchdog_service }
+[new_target_name] configure -event old-pre_resume { global watchdog_hdl; after cancel $watchdog_hdl }