jtag: linuxgpiod: drop extra parenthesis
[openocd.git] / contrib / loaders / watchdog / armv7m_kinetis_wdog.s
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2
3 /***************************************************************************
4 * Copyright (C) 2015 Tomas Vanek *
5 * vanekt@fbl.cz *
6 ***************************************************************************/
7
8 /*
9 Disable watchdog for Kinetis Kx and KVx
10 Parameters:
11 r0 ... WDOG base (in)
12
13 Used instruction set should work on both Cortex-M4 and M0+
14 */
15
16 .text
17 .syntax unified
18 .cpu cortex-m0
19 .thumb
20
21 /* WDOG registers offsets */
22 WDOG_STCTRLH = 0
23 WDOG_UNLOCK = 0x0e
24
25 WDOG_KEY1 = 0xc520
26 WDOG_KEY2 = 0xd928
27
28 .thumb_func
29 start:
30 /* WDOG_UNLOCK = 0xC520 */
31 ldr r2, =WDOG_KEY1
32 strh r2, [r0, WDOG_UNLOCK]
33 /* WDOG_UNLOCK = 0xD928 */
34 ldr r2, =WDOG_KEY2
35 strh r2, [r0, WDOG_UNLOCK]
36 /* WDOG_STCTRLH clear bit 0 */
37 movs r4, #1
38 ldrh r2, [r0, WDOG_STCTRLH]
39 bics r2, r4
40 strh r2, [r0, WDOG_STCTRLH]
41 /* OpenOCD checks exit point address. Jump to the very end. */
42 b done
43
44 .pool
45
46 /* Avoid padding at .text segment end. Otherwise exit point check fails. */
47 .skip ( . - start + 2) & 2, 0
48 done:
49 bkpt #0
50
51 .end

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)