bitq_interface_t -> struct biq_interface
authorZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 12:08:19 +0000 (04:08 -0800)
committerZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 19:58:04 +0000 (11:58 -0800)
Remove useless typedef and redundant suffix.

src/jtag/bitq.c
src/jtag/bitq.h
src/jtag/presto.c

index 56cc31e4f64ff92a8ae008a7eb4e03426e620450..145324c7722ab420cf53cf9286dddcccbca0847a 100644 (file)
@@ -25,7 +25,7 @@
 #include "interface.h"
 
 
-bitq_interface_t* bitq_interface;       /* low level bit queue interface */
+struct bitq_interface* bitq_interface;       /* low level bit queue interface */
 
 /* state of input queue */
 struct bitq_state {
index d0774f1fe05cb82bfa2e44f876faa435a3e4e3fb..48b47db7a694956ab2d996e31033159a27fad17a 100644 (file)
 
 #include "commands.h"
 
-typedef struct bitq_interface_s
-{
-       /* functions enqueueing low level IO requests
-       */
+struct bitq_interface {
+       // function to enqueueing low level IO requests
        int (*out)(int tms, int tdi, int tdo_req);
        int (*flush)(void);
 
@@ -37,9 +35,9 @@ typedef struct bitq_interface_s
         */
        int (*in_rdy)(void);
        int (*in)(void);
-} bitq_interface_t;
+};
 
-extern bitq_interface_t *bitq_interface;
+extern struct bitq_interface *bitq_interface;
 
 int bitq_execute_queue(void);
 
index 8789bed254f1f8c611ceb9bb2f56e07c99062d46..b8703770b498a6c18952b0457adcef91a99c6634 100644 (file)
@@ -65,7 +65,7 @@ static int presto_bitq_reset(int trst, int srst);
 static int presto_bitq_in_rdy(void);
 static int presto_bitq_in(void);
 
-static bitq_interface_t presto_bitq =
+static struct bitq_interface presto_bitq =
 {
        .out = presto_bitq_out,
        .flush = presto_bitq_flush,

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)