diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/jtag/at91rm9200.c | 2 | ||||
-rw-r--r-- | src/jtag/bitbang.c | 2 | ||||
-rw-r--r-- | src/jtag/bitbang.h | 9 | ||||
-rw-r--r-- | src/jtag/dummy.c | 2 | ||||
-rw-r--r-- | src/jtag/ep93xx.c | 2 | ||||
-rw-r--r-- | src/jtag/parport.c | 2 |
6 files changed, 9 insertions, 10 deletions
diff --git a/src/jtag/at91rm9200.c b/src/jtag/at91rm9200.c index d5dfbedd..52869a3e 100644 --- a/src/jtag/at91rm9200.c +++ b/src/jtag/at91rm9200.c @@ -134,7 +134,7 @@ jtag_interface_t at91rm9200_interface = .quit = at91rm9200_quit, }; -static bitbang_interface_t at91rm9200_bitbang = +static struct bitbang_interface at91rm9200_bitbang = { .read = at91rm9200_read, .write = at91rm9200_write, diff --git a/src/jtag/bitbang.c b/src/jtag/bitbang.c index 96b4daf3..d62a5cd3 100644 --- a/src/jtag/bitbang.c +++ b/src/jtag/bitbang.c @@ -39,7 +39,7 @@ static void bitbang_stableclocks(int num_cycles); -bitbang_interface_t *bitbang_interface; +struct bitbang_interface *bitbang_interface; /* DANGER!!!! clock absolutely *MUST* be 0 in idle or reset won't work! * diff --git a/src/jtag/bitbang.h b/src/jtag/bitbang.h index 060b689d..db5c4cb8 100644 --- a/src/jtag/bitbang.h +++ b/src/jtag/bitbang.h @@ -23,18 +23,17 @@ #ifndef BITBANG_H #define BITBANG_H -typedef struct bitbang_interface_s -{ +struct bitbang_interface { /* low level callbacks (for bitbang) */ int (*read)(void); void (*write)(int tck, int tms, int tdi); void (*reset)(int trst, int srst); void (*blink)(int on); -} bitbang_interface_t; - -extern bitbang_interface_t *bitbang_interface; +}; int bitbang_execute_queue(void); +extern struct bitbang_interface *bitbang_interface; + #endif /* BITBANG_H */ diff --git a/src/jtag/dummy.c b/src/jtag/dummy.c index e840da2d..5fc9251f 100644 --- a/src/jtag/dummy.c +++ b/src/jtag/dummy.c @@ -66,7 +66,7 @@ static void dummy_write(int tck, int tms, int tdi); static void dummy_reset(int trst, int srst); static void dummy_led(int on); -static bitbang_interface_t dummy_bitbang = +static struct bitbang_interface dummy_bitbang = { .read = dummy_read, .write = dummy_write, diff --git a/src/jtag/ep93xx.c b/src/jtag/ep93xx.c index d380e5ff..50e2ad3f 100644 --- a/src/jtag/ep93xx.c +++ b/src/jtag/ep93xx.c @@ -65,7 +65,7 @@ jtag_interface_t ep93xx_interface = .quit = ep93xx_quit, }; -static bitbang_interface_t ep93xx_bitbang = +static struct bitbang_interface ep93xx_bitbang = { .read = ep93xx_read, .write = ep93xx_write, diff --git a/src/jtag/parport.c b/src/jtag/parport.c index a18b3f6a..8906970d 100644 --- a/src/jtag/parport.c +++ b/src/jtag/parport.c @@ -255,7 +255,7 @@ static int parport_get_giveio_access(void) } #endif -static bitbang_interface_t parport_bitbang = { +static struct bitbang_interface parport_bitbang = { .read = &parport_read, .write = &parport_write, .reset = &parport_reset, |