tcl: replace the deprecated commands with "adapter ..."
Avoid annoying "deprecated" messages while running the scripts distributed with OpenOCD code. Change automatically created with commands sed -i 's/adapter_khz/adapter speed/g' $(find tcl/ -type f) sed -i 's/adapter_nsrst_delay/adapter srst delay/g' $(find tcl/ -type f) sed -i 's/adapter_nsrst_assert_width/adapter srst pulse_width/g' $(find tcl/ -type f) Minor indentation issue fixed manually in tcl/board/at91sam9g20-ek.cfg tcl/target/at91sam9260_ext_RAM_ext_flash.cfg Change-Id: I425fd56c0c88cd6b06124621306eeb89166dfe71 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/5284 Tested-by: jenkins Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
This commit is contained in:
committed by
Oleksij Rempel
parent
0d598535a3
commit
38ac08c1c2
@@ -6,15 +6,15 @@ source [find target/at91sam9261.cfg]
|
||||
|
||||
reset_config trst_and_srst
|
||||
|
||||
adapter_khz 4
|
||||
adapter speed 4
|
||||
|
||||
adapter_nsrst_delay 200
|
||||
adapter srst delay 200
|
||||
jtag_ntrst_delay 200
|
||||
|
||||
scan_chain
|
||||
$_TARGETNAME configure -event reset-start {
|
||||
# at reset chip runs at 32khz
|
||||
adapter_khz 8
|
||||
adapter speed 8
|
||||
}
|
||||
|
||||
$_TARGETNAME configure -event reset-init {at91sam_init}
|
||||
@@ -46,7 +46,7 @@ proc at91sam_init { } {
|
||||
sleep 10 ;# wait 10 ms
|
||||
|
||||
# Now run at anything fast... ie: 10mhz!
|
||||
adapter_khz 10000 ;# Increase JTAG Speed to 6 MHz
|
||||
adapter speed 10000 ;# Increase JTAG Speed to 6 MHz
|
||||
|
||||
mww 0xffffec00 0x0a0a0a0a ;# SMC_SETUP0 : Setup SMC for Intel NOR Flash JS28F128P30T85 128MBit
|
||||
mww 0xffffec04 0x0b0b0b0b ;# SMC_PULSE0
|
||||
|
||||
Reference in New Issue
Block a user