jtag: linuxgpiod: drop extra parenthesis
[openocd.git] / src / target / stm8.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2
3 /*
4 * OpenOCD STM8 target driver
5 * Copyright (C) 2017 Ake Rehnman
6 * ake.rehnman(at)gmail.com
7 */
8
9 #ifndef OPENOCD_TARGET_STM8_H
10 #define OPENOCD_TARGET_STM8_H
11
12 struct target;
13
14 #define STM8_COMMON_MAGIC 0x53544D38U
15 #define STM8_NUM_CORE_REGS 6
16
17 struct stm8_common {
18 unsigned int common_magic;
19
20 void *arch_info;
21 struct reg_cache *core_cache;
22 uint32_t core_regs[STM8_NUM_CORE_REGS];
23
24 /* working area for fastdata access */
25 struct working_area *fast_data_area;
26
27 bool swim_configured;
28 bool bp_scanned;
29 uint8_t num_hw_bpoints;
30 uint8_t num_hw_bpoints_avail;
31 struct stm8_comparator *hw_break_list;
32 uint32_t blocksize;
33 uint32_t flashstart;
34 uint32_t flashend;
35 uint32_t eepromstart;
36 uint32_t eepromend;
37 uint32_t optionstart;
38 uint32_t optionend;
39 bool enable_step_irq;
40
41 bool enable_stm8l;
42 uint32_t flash_cr2;
43 uint32_t flash_ncr2;
44 uint32_t flash_iapsr;
45 uint32_t flash_dukr;
46 uint32_t flash_pukr;
47
48 /* cc value used for interrupt flags restore */
49 uint32_t cc;
50 bool cc_valid;
51
52 /* register cache to processor synchronization */
53 int (*read_core_reg)(struct target *target, unsigned int num);
54 int (*write_core_reg)(struct target *target, unsigned int num);
55 };
56
57 static inline struct stm8_common *
58 target_to_stm8(struct target *target)
59 {
60 return target->arch_info;
61 }
62
63 #endif /* OPENOCD_TARGET_STM8_H */

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)