From: Zachary T Welch Date: Fri, 13 Nov 2009 12:10:56 +0000 (-0800) Subject: bitbang_interface_t -> struct bitbang_interface X-Git-Tag: v0.4.0-rc1~787 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bee796b5b07a0f83ed0ad2360bad70d8409e1109;p=openocd bitbang_interface_t -> struct bitbang_interface Removes another useless typedef and suffix. --- 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,