Removes another useless typedef and suffix.
.quit = at91rm9200_quit,
};
-static bitbang_interface_t at91rm9200_bitbang =
+static struct bitbang_interface at91rm9200_bitbang =
{
.read = at91rm9200_read,
.write = at91rm9200_write,
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!
*
#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 */
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,
.quit = ep93xx_quit,
};
-static bitbang_interface_t ep93xx_bitbang =
+static struct bitbang_interface ep93xx_bitbang =
{
.read = ep93xx_read,
.write = ep93xx_write,
}
#endif
-static bitbang_interface_t parport_bitbang = {
+static struct bitbang_interface parport_bitbang = {
.read = &parport_read,
.write = &parport_write,
.reset = &parport_reset,