annotate include/jtag.h @ 10:cc106f278d7d

Get identify of components
author Thinker K.F. Li <thinker@branda.to>
date Tue, 24 Feb 2009 13:32:04 +0800
parents 61f27549de57
children
rev   line source
2
abf221bf3ce4 AVR JTAG server.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
1 #ifndef __JTAG_H_
abf221bf3ce4 AVR JTAG server.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
2 #define __JTAG_H_
abf221bf3ce4 AVR JTAG server.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
3
abf221bf3ce4 AVR JTAG server.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
4 #include <avr/io.h>
abf221bf3ce4 AVR JTAG server.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
5
abf221bf3ce4 AVR JTAG server.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
6 #define JTAG_PORT PORTB
abf221bf3ce4 AVR JTAG server.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
7 #define JTAG_PIN PINB
abf221bf3ce4 AVR JTAG server.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
8 #define JTAG_TCK PINB0
abf221bf3ce4 AVR JTAG server.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
9 #define JTAG_TMS PINB1
abf221bf3ce4 AVR JTAG server.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
10 #define JTAG_TDI PINB2
abf221bf3ce4 AVR JTAG server.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
11 #define JTAG_TDO PINB3
7
61f27549de57 Support TRST.
Thinker K.F. Li <thinker@branda.to>
parents: 2
diff changeset
12 #define JTAG_TRST PINB4
2
abf221bf3ce4 AVR JTAG server.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
13
abf221bf3ce4 AVR JTAG server.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
14 extern void jtag_init(void);
7
61f27549de57 Support TRST.
Thinker K.F. Li <thinker@branda.to>
parents: 2
diff changeset
15 extern void jtag_trst(void);
10
cc106f278d7d Get identify of components
Thinker K.F. Li <thinker@branda.to>
parents: 7
diff changeset
16 extern void jtag_tms(unsigned char *buf, int nbits);
cc106f278d7d Get identify of components
Thinker K.F. Li <thinker@branda.to>
parents: 7
diff changeset
17 extern void jtag_shift(unsigned char *buf, int nbits);
cc106f278d7d Get identify of components
Thinker K.F. Li <thinker@branda.to>
parents: 7
diff changeset
18 extern void jtag_shift_inout(unsigned char *ibuf, unsigned char *obuf,
cc106f278d7d Get identify of components
Thinker K.F. Li <thinker@branda.to>
parents: 7
diff changeset
19 int nbits);
2
abf221bf3ce4 AVR JTAG server.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
20
abf221bf3ce4 AVR JTAG server.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
21 #endif /* __JTAG_H_ */