projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tcl/target/ti_k3: Remove args from m3 and m4_up
[fw/openocd]
/
tcl
/
target
/
bluenrg-x.cfg
diff --git
a/tcl/target/bluenrg-x.cfg
b/tcl/target/bluenrg-x.cfg
index a9d321ee6bc1e9ea7c3c9addc5d68eca004d15f2..ea94be9628779608a78c83b98a7836d4019718ce 100644
(file)
--- a/
tcl/target/bluenrg-x.cfg
+++ b/
tcl/target/bluenrg-x.cfg
@@
-54,9
+54,9
@@
$_TARGETNAME configure -event halted {
if {$_JTAG_IDCODE != 0x0201E041} {
# Stop watchdog during halt, if enabled. Only Bluenrg-1/2
set WDOG_VALUE [mrw 0x40700008]
if {$_JTAG_IDCODE != 0x0201E041} {
# Stop watchdog during halt, if enabled. Only Bluenrg-1/2
set WDOG_VALUE [mrw 0x40700008]
- if [expr
($WDOG_VALUE & (1 << 1))
] {
+ if [expr
{$WDOG_VALUE & (1 << 1)}
] {
set WDOG_VALUE_SET 1
set WDOG_VALUE_SET 1
- mww 0x40700008 [expr
($WDOG_VALUE & 0xFFFFFFFD)
]
+ mww 0x40700008 [expr
{$WDOG_VALUE & 0xFFFFFFFD}
]
}
}
}
}
}
}
@@
-65,7
+65,7
@@
$_TARGETNAME configure -event resumed {
global WDOG_VALUE_SET
set _JTAG_IDCODE [mrw 0x40000004]
if {$_JTAG_IDCODE != 0x0201E041} {
global WDOG_VALUE_SET
set _JTAG_IDCODE [mrw 0x40000004]
if {$_JTAG_IDCODE != 0x0201E041} {
- if
[expr $WDOG_VALUE_SET]
{
+ if
{$WDOG_VALUE_SET}
{
# Restore watchdog enable value after resume. Only Bluenrg-1/2
mww 0x40700008 $WDOG_VALUE
set WDOG_VALUE_SET 0
# Restore watchdog enable value after resume. Only Bluenrg-1/2
mww 0x40700008 $WDOG_VALUE
set WDOG_VALUE_SET 0