contrib/firmware: add new adapter ANGIE's firmware/bitstream code
[openocd.git] / contrib / firmware / angie / c / include / fx2macros.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2
3 /*
4 * This code was taken from the fx2lib project from this link:
5 * https://github.com/djmuhlestein/fx2lib
6 *
7 * Copyright (C) 2009 Ubixum, Inc.
8 */
9
10 /*! \file
11 * Macros for simple common tasks in fx2 firmware.
12 * */
13
14 #ifndef FX2MACROS_H
15 #define FX2MACROS_H
16
17 #include "reg_ezusb.h"
18
19 typedef enum {FALSE = 0, TRUE} BOOL_VALS;
20
21 /**
22 * \brief Used for getting and setting the CPU clock speed.
23 **/
24 typedef enum {CLK_12M = 0, CLK_24M, CLK_48M} CLK_SPD;
25
26 /**
27 * \brief Evaluates to a CLK_SPD enum.
28 **/
29 #define CPUFREQ (CLK_SPD)((CPUCS & bmclkspd) >> 3)
30
31 #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)