bitbang_interface_t -> struct bitbang_interface
Removes another useless typedef and suffix.__archive__
parent
c20b779b89
commit
bee796b5b0
|
@ -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,
|
||||
|
|
|
@ -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!
|
||||
*
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue