X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fjtag%2Fdrivers%2Fbitbang.h;h=43268308e831ebec4f0049dfbc292d9d89679557;hp=db5c4cb865c703ff48cea16cb45510a49c44e7a3;hb=d0e763ac7ef6aa17b17bd00ccdfbccfb4eacda69;hpb=865efd828a267992db0f2a92a731c5ce23a34236
diff --git a/src/jtag/drivers/bitbang.h b/src/jtag/drivers/bitbang.h
index db5c4cb865..43268308e8 100644
--- a/src/jtag/drivers/bitbang.h
+++ b/src/jtag/drivers/bitbang.h
@@ -16,13 +16,14 @@
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ * along with this program. If not, see . *
***************************************************************************/
+
#ifndef BITBANG_H
#define BITBANG_H
+#include
+
struct bitbang_interface {
/* low level callbacks (for bitbang)
*/
@@ -30,10 +31,18 @@ struct bitbang_interface {
void (*write)(int tck, int tms, int tdi);
void (*reset)(int trst, int srst);
void (*blink)(int on);
+ int (*swdio_read)(void);
+ void (*swdio_drive)(bool on);
};
+const struct swd_driver bitbang_swd;
+
+extern bool swd_mode;
+
int bitbang_execute_queue(void);
extern struct bitbang_interface *bitbang_interface;
+void bitbang_switch_to_swd(void);
+int bitbang_swd_switch_seq(enum swd_special_seq seq);
#endif /* BITBANG_H */