ARMv7-M: make DAP commands verify target is an ARMv7-M
[openocd.git] / src / jtag / interfaces.c
1 /***************************************************************************
2 * Copyright (C) 2005 by Dominic Rath *
3 * Dominic.Rath@gmx.de *
4 * *
5 * Copyright (C) 2007,2008 Øyvind Harboe *
6 * oyvind.harboe@zylin.com *
7 * *
8 * Copyright (C) 2009 SoftPLC Corporation *
9 * http://softplc.com *
10 * dick@softplc.com *
11 * *
12 * Copyright (C) 2009 Zachary T Welch *
13 * zw@superlucidity.net *
14 * *
15 * This program is free software; you can redistribute it and/or modify *
16 * it under the terms of the GNU General Public License as published by *
17 * the Free Software Foundation; either version 2 of the License, or *
18 * (at your option) any later version. *
19 * *
20 * This program is distributed in the hope that it will be useful, *
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
23 * GNU General Public License for more details. *
24 * *
25 * You should have received a copy of the GNU General Public License *
26 * along with this program; if not, write to the *
27 * Free Software Foundation, Inc., *
28 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
29 ***************************************************************************/
30 #ifdef HAVE_CONFIG_H
31 #include "config.h"
32 #endif
33
34 #include "interfaces.h"
35
36 /** @file
37 * This file includes declarations for all built-in jtag interfaces,
38 * which are then listed in the jtag_interfaces array.
39 *
40 * Dynamic loading can be implemented be searching for shared libraries
41 * that contain a jtag_interface structure that can added to this list.
42 */
43
44 #if BUILD_ZY1000 == 1
45 extern struct jtag_interface zy1000_interface;
46 #elif defined(BUILD_MINIDRIVER_DUMMY)
47 extern struct jtag_interface minidummy_interface;
48 #else // standard drivers
49 #if BUILD_PARPORT == 1
50 extern struct jtag_interface parport_interface;
51 #endif
52 #if BUILD_DUMMY == 1
53 extern struct jtag_interface dummy_interface;
54 #endif
55 #if BUILD_FT2232_FTD2XX == 1
56 extern struct jtag_interface ft2232_interface;
57 #endif
58 #if BUILD_FT2232_LIBFTDI == 1
59 extern struct jtag_interface ft2232_interface;
60 #endif
61 #if BUILD_USB_BLASTER_LIBFTDI == 1 || BUILD_USB_BLASTER_FTD2XX == 1
62 extern struct jtag_interface usb_blaster_interface;
63 #endif
64 #if BUILD_AMTJTAGACCEL == 1
65 extern struct jtag_interface amt_jtagaccel_interface;
66 #endif
67 #if BUILD_EP93XX == 1
68 extern struct jtag_interface ep93xx_interface;
69 #endif
70 #if BUILD_AT91RM9200 == 1
71 extern struct jtag_interface at91rm9200_interface;
72 #endif
73 #if BUILD_GW16012 == 1
74 extern struct jtag_interface gw16012_interface;
75 #endif
76 #if BUILD_PRESTO_LIBFTDI == 1 || BUILD_PRESTO_FTD2XX == 1
77 extern struct jtag_interface presto_interface;
78 #endif
79 #if BUILD_USBPROG == 1
80 extern struct jtag_interface usbprog_interface;
81 #endif
82 #if BUILD_JLINK == 1
83 extern struct jtag_interface jlink_interface;
84 #endif
85 #if BUILD_VSLLINK == 1
86 extern struct jtag_interface vsllink_interface;
87 #endif
88 #if BUILD_RLINK == 1
89 extern struct jtag_interface rlink_interface;
90 #endif
91 #if BUILD_ARMJTAGEW == 1
92 extern struct jtag_interface armjtagew_interface;
93 #endif
94 #endif // standard drivers
95
96 /**
97 * The list of built-in JTAG interfaces, containing entries for those
98 * drivers that were enabled by the @c configure script.
99 *
100 * The list should be defined to contain either one minidriver interface
101 * or some number of standard driver interfaces, never both.
102 */
103 struct jtag_interface *jtag_interfaces[] = {
104 #if BUILD_ZY1000 == 1
105 &zy1000_interface,
106 #elif defined(BUILD_MINIDRIVER_DUMMY)
107 &minidummy_interface,
108 #else // standard drivers
109 #if BUILD_PARPORT == 1
110 &parport_interface,
111 #endif
112 #if BUILD_DUMMY == 1
113 &dummy_interface,
114 #endif
115 #if BUILD_FT2232_FTD2XX == 1
116 &ft2232_interface,
117 #endif
118 #if BUILD_FT2232_LIBFTDI == 1
119 &ft2232_interface,
120 #endif
121 #if BUILD_USB_BLASTER_LIBFTDI == 1 || BUILD_USB_BLASTER_FTD2XX == 1
122 &usb_blaster_interface,
123 #endif
124 #if BUILD_AMTJTAGACCEL == 1
125 &amt_jtagaccel_interface,
126 #endif
127 #if BUILD_EP93XX == 1
128 &ep93xx_interface,
129 #endif
130 #if BUILD_AT91RM9200 == 1
131 &at91rm9200_interface,
132 #endif
133 #if BUILD_GW16012 == 1
134 &gw16012_interface,
135 #endif
136 #if BUILD_PRESTO_LIBFTDI == 1 || BUILD_PRESTO_FTD2XX == 1
137 &presto_interface,
138 #endif
139 #if BUILD_USBPROG == 1
140 &usbprog_interface,
141 #endif
142 #if BUILD_JLINK == 1
143 &jlink_interface,
144 #endif
145 #if BUILD_VSLLINK == 1
146 &vsllink_interface,
147 #endif
148 #if BUILD_RLINK == 1
149 &rlink_interface,
150 #endif
151 #if BUILD_ARMJTAGEW == 1
152 &armjtagew_interface,
153 #endif
154 #endif // standard drivers
155 NULL,
156 };
157
158 void jtag_interface_modules_load(const char *path)
159 {
160 // @todo: implement dynamic module loading for JTAG interface drivers
161 }

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)