encapsulate bitq_state structure
authorZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 12:00:59 +0000 (04:00 -0800)
committerZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 19:58:04 +0000 (11:58 -0800)
Move the bitq_state structure from the header to source file, as it
is used internally.

Also removes its silly typedef.

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

index 8ddde81396d9dd1dd830ff392adad3e81571cee5..56cc31e4f64ff92a8ae008a7eb4e03426e620450 100644 (file)
 
 bitq_interface_t* bitq_interface;       /* low level bit queue interface */
 
-static bitq_state_t      bitq_in_state;        /* state of input queue */
+/* state of input queue */
+struct bitq_state {
+       jtag_command_t *cmd; /* command currently processed */
+       int field_idx; /* index of field currently being processed */
+       int bit_pos; /* position of bit curently being processed */
+       int status; /* processing status */
+};
+static struct bitq_state bitq_in_state;
 
 static uint8_t* bitq_in_buffer;                     /* buffer dynamically reallocated as needed */
 static int     bitq_in_bufsize = 32; /* min. buffer size */
index 15b2d5cf479bf8cb935cb605f7971ab7703a201a..d0774f1fe05cb82bfa2e44f876faa435a3e4e3fb 100644 (file)
@@ -39,15 +39,6 @@ typedef struct bitq_interface_s
        int (*in)(void);
 } bitq_interface_t;
 
-typedef struct bitq_state_s
-{
-  jtag_command_t *cmd; /* command currently processed */
-  int field_idx; /* index of field currently being processed */
-  int bit_pos; /* position of bit curently being processed */
-
-  int status; /* processing status */
-} bitq_state_t;
-
 extern bitq_interface_t *bitq_interface;
 
 int bitq_execute_queue(void);

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)