contrib/firmware: add new adapter ANGIE's firmware/bitstream code
[openocd.git] / contrib / firmware / angie / c / include / io.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /****************************************************************************
3 File : io.h *
4 Contents : input/output declaration header file for NanoXplore *
5 USB-JTAG ANGIE adapter hardware. *
6 Based on openULINK project code by: Martin Schmoelzer. *
7 Copyright 2023, Ahmed Errached BOUDJELIDA, NanoXplore SAS. *
8 <aboudjelida@nanoxplore.com> *
9 <ahmederrachedbjld@gmail.com> *
10 *****************************************************************************/
11
12 #ifndef __IO_H
13 #define __IO_H
14
15 #include "reg_ezusb.h"
16
17 /***************************************************************************
18 * JTAG Signals: *
19 ***************************************************************************
20 * TMS ....... Test Mode Select *
21 * TCK ....... Test Clock *
22 * TDI ....... Test Data Input (from device point of view, not JTAG *
23 * adapter point of view!) *
24 * TDO ....... Test Data Output (from device point of view, not JTAG *
25 * adapter point of view!) *
26 * TRST ...... Test Reset: Used to reset the TAP Finite State Machine *
27 * into the Test Logic Reset state *
28 * SRST ..... Chip Reset *
29 ***************************************************************************/
30
31 /* PORT A */
32 /* PA0 Not Connected */
33 /* PA1 Not Connected */
34 #define PIN_RDWR_B IOA2
35 #define PIN_CSI_B IOA3
36 #define PIN_INIT_B IOA4
37 #define PIN_PROGRAM_B IOA5
38 /* PA6 Not Connected */
39 /* PA7 Not Connected */
40
41 /* PORT B */
42 #define PIN_TRST IOB0
43 #define PIN_TMS IOB1
44 #define PIN_TCK IOB2
45 #define PIN_TDI IOB3
46 #define PIN_TDO IOB4
47 #define PIN_SRST IOB5
48 /* PA6 Not Connected */
49 /* PA7 Not Connected */
50
51 /* JTAG Signals with direction 'OUT' on port B */
52 /* PIN_TDI - PIN_TCK - PIN_TMS - PIN_TRST - PIN_SRST */
53 #define MASK_PORTB_DIRECTION_OUT (bmbit0 | bmbit1 | bmbit2 | bmbit3 | bmbit5)
54
55 /* PORT C */ // Debug:
56 #define PIN_T0 IOC0
57 #define PIN_T1 IOC1
58 #define PIN_T2 IOC2
59 #define PIN_T3 IOC3
60 #define PIN_T4 IOC4
61 /* PC5 Not Connected */
62 /* PC6 Not Connected */
63 /* PC7 Not Connected */
64
65 #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)