tcl: replace the deprecated commands with "adapter ..."
[fw/openocd] / tcl / board / olimex_sam7_la2.cfg
index 89d2b5a592d78a81e7f855afc7bf1a528c715b33..038fe67b6d25f7a67844bf1f127793f2fe8dfc77 100644 (file)
@@ -2,7 +2,7 @@ source [find target/at91sam7a2.cfg]
 
 # delays needed to get stable reads of cpu state
 jtag_ntrst_delay 10
-adapter_nsrst_delay 200
+adapter srst delay 200
 
 # board uses pullup and connects only srst
 reset_config srst_open_drain
@@ -10,9 +10,9 @@ reset_config srst_open_drain
 # srst is connected to NRESET of CPU and fully resets everything...
 reset_config srst_only srst_pulls_trst
 
-adapter_khz 1
+adapter speed 1
 $_TARGETNAME configure -event reset-start {
-       adapter_khz 1
+       adapter speed 1
 }
 
 $_TARGETNAME configure -event reset-init {
@@ -61,7 +61,7 @@ $_TARGETNAME configure -event reset-init {
        echo "set up pll"
 
        sleep 100
-       adapter_khz 5000
+       adapter speed 5000
 }
 
 $_TARGETNAME arm7_9 dcc_downloads enable