mirror of
https://git.code.sf.net/p/openocd/code
synced 2024-11-25 14:36:27 +00:00
573a39b36c
For historical reasons, no license information was added to the tcl files. This makes trivial adding the SPDX tag through script: fgrep -rL SPDX tcl | while read a;do \ sed -i '1{i# SPDX-License-Identifier: GPL-2.0-or-later\n }' $a;done With no specific license information from the author, let's extend the OpenOCD project license GPL-2.0-or-later to the files. Change-Id: Ief3da306a6e1978de7dfb8f552f9ff23151f9944 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7030 Tested-by: jenkins
20 lines
962 B
INI
20 lines
962 B
INI
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
set AT91_WDT_CR [expr {$AT91_WDT + 0x00}] ;# Watchdog Control Register
|
|
set AT91_WDT_WDRSTT [expr {1 << 0}] ;# Restart
|
|
set AT91_WDT_KEY [expr {0xa5 << 24}] ;# KEY Password
|
|
|
|
set AT91_WDT_MR [expr {$AT91_WDT + 0x04}] ;# Watchdog Mode Register
|
|
set AT91_WDT_WDV [expr {0xfff << 0}] ;# Counter Value
|
|
set AT91_WDT_WDFIEN [expr {1 << 12}] ;# Fault Interrupt Enable
|
|
set AT91_WDT_WDRSTEN [expr {1 << 13}] ;# Reset Processor
|
|
set AT91_WDT_WDRPROC [expr {1 << 14}] ;# Timer Restart
|
|
set AT91_WDT_WDDIS [expr {1 << 15}] ;# Watchdog Disable
|
|
set AT91_WDT_WDD [expr {0xfff << 16}] ;# Delta Value
|
|
set AT91_WDT_WDDBGHLT [expr {1 << 28}] ;# Debug Halt
|
|
set AT91_WDT_WDIDLEHLT [expr {1 << 29}] ;# Idle Halt
|
|
|
|
set AT91_WDT_SR [expr {$AT91_WDT + 0x08}] ;# Watchdog Status Register
|
|
set AT91_WDT_WDUNF [expr {1 << 0}] ;# Watchdog Underflow
|
|
set AT91_WDT_WDERR [expr {1 << 1}] ;# Watchdog Error
|