X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fjtag%2Fbitbang.h;h=db5c4cb865c703ff48cea16cb45510a49c44e7a3;hb=30be874de8ee9d8269ce3441c92a15b96c68a398;hp=ee2e688f4c95e6e10ef064cb9a3fd6a86c714c87;hpb=8b994145b849c40b0a195c3fb332b9770b2f9097;p=openocd.git diff --git a/src/jtag/bitbang.h b/src/jtag/bitbang.h index ee2e688f4c..db5c4cb865 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 int bitbang_execute_queue(void); +extern struct bitbang_interface *bitbang_interface; #endif /* BITBANG_H */