X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fjtag%2Fbitbang.h;h=db5c4cb865c703ff48cea16cb45510a49c44e7a3;hb=ca32f25638408df8a9c18522da43f6e8adcdb5cb;hp=807929895caf28ddcc0813ab2a0a2e9b63696530;hpb=68c598e88d5e09728ea845a81ab279c615bbaf0f;p=openocd.git diff --git a/src/jtag/bitbang.h b/src/jtag/bitbang.h index 807929895c..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 */