3e64523c65fa79a518102e16f804507c2b901fd1
[openocd.git] / src / jtag / rlink / init.m4
1 m4_divert(`-1')
2 /***************************************************************************
3 * Copyright (C) 2008 Lou Deluxe *
4 * lou.openocd012@fixit.nospammail.net *
5 * *
6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation; either version 2 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program; if not, write to the *
18 * Free Software Foundation, Inc., *
19 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
20 ***************************************************************************/
21
22 m4_undefine(`CTRL_MPEG_L')
23 m4_undefine(`CTRL_CARD_L')
24
25 m4_ifelse(SHIFTER_PRESCALER, 1, `
26 m4_define(`CTRL_MPEG_L', `m4_eval(`0x8 | 0x0')')
27 ')
28 m4_ifelse(SHIFTER_PRESCALER, 2, `
29 m4_define(`CTRL_MPEG_L', `m4_eval(`0x8 | 0x2')')
30 m4_define(`CTRL_CARD_L', `m4_eval(`0x8 | 0x1')')
31 ')
32 m4_ifelse(SHIFTER_PRESCALER, 8, `
33 m4_define(`CTRL_MPEG_L', `m4_eval(`0x8 | 0x3')')
34 ')
35 m4_ifelse(SHIFTER_PRESCALER, 11, `
36 m4_define(`CTRL_MPEG_L', `m4_eval(`0x8 | 0x4')')
37 ')
38 m4_ifelse(SHIFTER_PRESCALER, 64, `
39 m4_define(`CTRL_MPEG_L', `m4_eval(`0x8 | 0x7')')
40 ')
41
42 m4_ifdef(`CTRL_MPEG_L',,`
43 m4_errprint(`SHIFTER_PRESCALER was not defined with a supported value
44 ') m4_m4exit(`1')
45 ')
46
47 m4_divert(`0')m4_dnl
48
49 init:
50 A.H = 0
51
52 A.L = 0
53
54 DR_MPEG = A ; TDI and TCK start out low
55 DR_CARD = A ; TMS starts out low
56
57 A.L = 0x6
58
59 CTRL_FCI = A ; MPEG and CARD driven by FCI
60 DDR_MPEG = A ; TDI and TCK are outputs
61
62 A.L = 0x1
63
64 X = A ; X == 1
65 DDR_CARD = A ; TMS is output
66
67 A.L = CTRL_MPEG_L
68 CTRL_MPEG = A
69 m4_ifdef(`CTRL_CARD_L',
70 ` A.L = 'CTRL_CARD_L`
71 ')m4_dnl
72 CTRL_CARD = A
73
74 STATUS STOP

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)