X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fjtag%2Fbitbang.h;h=db5c4cb865c703ff48cea16cb45510a49c44e7a3;hb=ca32f25638408df8a9c18522da43f6e8adcdb5cb;hp=6a38f9b4b7533942fe1671ff219c0f8f8dd727a1;hpb=526fe3d83e118d87af34353a7140c02f3f1a3c19;p=openocd.git diff --git a/src/jtag/bitbang.h b/src/jtag/bitbang.h index 6a38f9b4b7..db5c4cb865 100644 --- a/src/jtag/bitbang.h +++ b/src/jtag/bitbang.h @@ -2,7 +2,7 @@ * Copyright (C) 2005 by Dominic Rath * * Dominic.Rath@gmx.de * * * - * Copyright (C) 2007,2008 Øyvind Harboe * + * Copyright (C) 2007,2008 Øyvind Harboe * * oyvind.harboe@zylin.com * * * * This program is free software; you can redistribute it and/or modify * @@ -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 */