59e6174cf90b6d142172320624f053a710f5e3b2
[openocd.git] / src / jtag / stlink / stlink_layout.h
1 /***************************************************************************
2 * Copyright (C) 2011 by Mathias Kuester *
3 * Mathias Kuester <kesmtp@freenet.de> *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
20
21 #ifndef _STLINK_LAYOUT_H_
22 #define _STLINK_LAYOUT_H_
23
24 /** */
25 struct stlink_interface_s;
26 struct stlink_interface_param_s;
27
28 /** */
29 extern struct stlink_layout_api_s stlink_usb_layout_api;
30
31 /** */
32 struct stlink_layout_api_s {
33 /** */
34 int (*open) (struct stlink_interface_param_s *param, void **fd);
35 /** */
36 int (*close) (void *fd);
37 /** */
38 int (*reset) (void *fd);
39 /** */
40 int (*run) (void *fd);
41 /** */
42 int (*halt) (void *fd);
43 /** */
44 int (*step) (void *fd);
45 /** */
46 int (*read_regs) (void *fd);
47 /** */
48 int (*read_reg) (void *fd, int num, uint32_t *val);
49 /** */
50 int (*write_reg) (void *fd, int num, uint32_t val);
51 /** */
52 int (*read_mem8) (void *handle, uint32_t addr, uint16_t len,
53 uint8_t *buffer);
54 /** */
55 int (*write_mem8) (void *handle, uint32_t addr, uint16_t len,
56 const uint8_t *buffer);
57 /** */
58 int (*read_mem32) (void *handle, uint32_t addr, uint16_t len,
59 uint8_t *buffer);
60 /** */
61 int (*write_mem32) (void *handle, uint32_t addr, uint16_t len,
62 const uint8_t *buffer);
63 /** */
64 int (*idcode) (void *fd, uint32_t *idcode);
65 /** */
66 enum target_state (*state) (void *fd);
67 };
68
69 /** */
70 struct stlink_layout {
71 /** */
72 char *name;
73 /** */
74 int type;
75 /** */
76 int (*open) (struct stlink_interface_s *stlink_if);
77 /** */
78 int (*close) (struct stlink_interface_s *stlink_if);
79 /** */
80 struct stlink_layout_api_s *api;
81 };
82
83 /** */
84 const struct stlink_layout *stlink_layout_get_list(void);
85 /** */
86 int stlink_layout_init(struct stlink_interface_s *stlink_if);
87
88 #endif

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)