jtag: linuxgpiod: drop extra parenthesis
[openocd.git] / src / jtag / hla / hla_layout.c
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 /***************************************************************************
4 * Copyright (C) 2011 by Mathias Kuester *
5 * Mathias Kuester <kesmtp@freenet.de> *
6 * *
7 * Copyright (C) 2012 by Spencer Oliver *
8 * spen@spen-soft.co.uk *
9 ***************************************************************************/
10
11 #ifdef HAVE_CONFIG_H
12 #include "config.h"
13 #endif
14
15 /* project specific includes */
16 #include <jtag/interface.h>
17 #include <transport/transport.h>
18 #include <helper/time_support.h>
19
20 #include <jtag/hla/hla_layout.h>
21 #include <jtag/hla/hla_transport.h>
22 #include <jtag/hla/hla_interface.h>
23
24 static int hl_layout_open(struct hl_interface_s *adapter)
25 {
26 int res;
27
28 LOG_DEBUG("hl_layout_open");
29
30 adapter->handle = NULL;
31
32 res = adapter->layout->api->open(&adapter->param, &adapter->handle);
33
34 if (res != ERROR_OK) {
35 LOG_DEBUG("failed");
36 return res;
37 }
38
39 return ERROR_OK;
40 }
41
42 static int hl_layout_close(struct hl_interface_s *adapter)
43 {
44 return ERROR_OK;
45 }
46
47 static const struct hl_layout hl_layouts[] = {
48 #if BUILD_HLADAPTER_STLINK
49 {
50 .name = "stlink",
51 .open = hl_layout_open,
52 .close = hl_layout_close,
53 .api = &stlink_usb_layout_api,
54 },
55 #endif
56 #if BUILD_HLADAPTER_ICDI
57 {
58 .name = "ti-icdi",
59 .open = hl_layout_open,
60 .close = hl_layout_close,
61 .api = &icdi_usb_layout_api,
62 },
63 #endif
64 #if BUILD_HLADAPTER_NULINK
65 {
66 .name = "nulink",
67 .open = hl_layout_open,
68 .close = hl_layout_close,
69 .api = &nulink_usb_layout_api,
70 },
71 #endif
72 {.name = NULL, /* END OF TABLE */ },
73 };
74
75 /** */
76 const struct hl_layout *hl_layout_get_list(void)
77 {
78 return hl_layouts;
79 }
80
81 int hl_layout_init(struct hl_interface_s *adapter)
82 {
83 LOG_DEBUG("hl_layout_init");
84
85 if (!adapter->layout) {
86 LOG_ERROR("no layout specified");
87 return ERROR_FAIL;
88 }
89 return ERROR_OK;
90 }

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)