diff include/jtag.h @ 2:abf221bf3ce4

AVR JTAG server.
author Thinker K.F. Li <thinker@branda.to>
date Sat, 21 Feb 2009 23:06:50 +0800
parents
children 61f27549de57
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/jtag.h	Sat Feb 21 23:06:50 2009 +0800
@@ -0,0 +1,18 @@
+#ifndef __JTAG_H_
+#define __JTAG_H_
+
+#include <avr/io.h>
+
+#define JTAG_PORT PORTB
+#define JTAG_PIN PINB
+#define JTAG_TCK PINB0
+#define JTAG_TMS PINB1
+#define JTAG_TDI PINB2
+#define JTAG_TDO PINB3
+
+extern void jtag_init(void);
+extern void jtag_tms(char *buf, int nbits);
+extern void jtag_shift(char *buf, int nbits);
+extern void jtag_shift_inout(char *ibuf, char *obuf, int nbits);
+
+#endif /* __JTAG_H_ */