bitbang_interface_t -> struct bitbang_interface

Removes another useless typedef and suffix.
This commit is contained in:
Zachary T Welch 2009-11-13 04:10:56 -08:00
parent c20b779b89
commit bee796b5b0
6 changed files with 9 additions and 10 deletions

View File

@ -134,7 +134,7 @@ jtag_interface_t at91rm9200_interface =
.quit = at91rm9200_quit, .quit = at91rm9200_quit,
}; };
static bitbang_interface_t at91rm9200_bitbang = static struct bitbang_interface at91rm9200_bitbang =
{ {
.read = at91rm9200_read, .read = at91rm9200_read,
.write = at91rm9200_write, .write = at91rm9200_write,

View File

@ -39,7 +39,7 @@
static void bitbang_stableclocks(int num_cycles); 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! /* DANGER!!!! clock absolutely *MUST* be 0 in idle or reset won't work!
* *

View File

@ -23,18 +23,17 @@
#ifndef BITBANG_H #ifndef BITBANG_H
#define BITBANG_H #define BITBANG_H
typedef struct bitbang_interface_s struct bitbang_interface {
{
/* low level callbacks (for bitbang) /* low level callbacks (for bitbang)
*/ */
int (*read)(void); int (*read)(void);
void (*write)(int tck, int tms, int tdi); void (*write)(int tck, int tms, int tdi);
void (*reset)(int trst, int srst); void (*reset)(int trst, int srst);
void (*blink)(int on); void (*blink)(int on);
} bitbang_interface_t; };
extern bitbang_interface_t *bitbang_interface;
int bitbang_execute_queue(void); int bitbang_execute_queue(void);
extern struct bitbang_interface *bitbang_interface;
#endif /* BITBANG_H */ #endif /* BITBANG_H */

View File

@ -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_reset(int trst, int srst);
static void dummy_led(int on); static void dummy_led(int on);
static bitbang_interface_t dummy_bitbang = static struct bitbang_interface dummy_bitbang =
{ {
.read = dummy_read, .read = dummy_read,
.write = dummy_write, .write = dummy_write,

View File

@ -65,7 +65,7 @@ jtag_interface_t ep93xx_interface =
.quit = ep93xx_quit, .quit = ep93xx_quit,
}; };
static bitbang_interface_t ep93xx_bitbang = static struct bitbang_interface ep93xx_bitbang =
{ {
.read = ep93xx_read, .read = ep93xx_read,
.write = ep93xx_write, .write = ep93xx_write,

View File

@ -255,7 +255,7 @@ static int parport_get_giveio_access(void)
} }
#endif #endif
static bitbang_interface_t parport_bitbang = { static struct bitbang_interface parport_bitbang = {
.read = &parport_read, .read = &parport_read,
.write = &parport_write, .write = &parport_write,
.reset = &parport_reset, .reset = &parport_reset,