tcl/board: add SPDX tag
[fw/openocd] / tcl / board / mcb1700.cfg
index 845c7e20fb6b8154190c2241dacda83a51168bed..8ab6e88c2b1963e9c64bc9d81c1a29b22eecf2c0 100644 (file)
@@ -1,9 +1,11 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 # Keil MCB1700 PCB with 1768
-# 
+#
 # Reset init script sets it to 100MHz
 set CCLK 100000
 
-source [find target/lpc1768.cfg] 
+source [find target/lpc17xx.cfg]
 
 global MCB1700_CCLK
 set MCB1700_CCLK $CCLK
@@ -11,7 +13,7 @@ set MCB1700_CCLK $CCLK
 $_TARGETNAME configure -event reset-start {
        # Start *real slow* as we do not know the
     # state the boot rom left the clock in
-       jtag_khz 10
+       adapter speed 10
 }
 
 # Set up 100MHz clock to CPU
@@ -53,9 +55,9 @@ $_TARGETNAME configure -event reset-init {
 
        # Dividing CPU clock by 8 should be pretty conservative
        #
-       # 
+       #
        global MCB1700_CCLK
-       jtag_khz [expr $MCB1700_CCLK / 8]
+       adapter speed [expr {$MCB1700_CCLK / 8}]
 
        # Do not remap 0x0000-0x0020 to anything but the flash (i.e. select
        # "User Flash Mode" where interrupt vectors are _not_ remapped,