Mercurial > avr_jtag
annotate include/jtag.h @ 13:1ea479d26fce tip
Make sure shifting phase and add bypass.py.
- shifting phase is started after entering SHIFT state
Transition from CAP to SHIFT does not induce shifting.
- shifting phase is stoped after leaving SHIFT state.
Transition from SHIFT to EXIT1 also induce a bit of shifting.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 25 Feb 2009 20:08:29 +0800 |
parents | cc106f278d7d |
children |
rev | line source |
---|---|
2 | 1 #ifndef __JTAG_H_ |
2 #define __JTAG_H_ | |
3 | |
4 #include <avr/io.h> | |
5 | |
6 #define JTAG_PORT PORTB | |
7 #define JTAG_PIN PINB | |
8 #define JTAG_TCK PINB0 | |
9 #define JTAG_TMS PINB1 | |
10 #define JTAG_TDI PINB2 | |
11 #define JTAG_TDO PINB3 | |
7 | 12 #define JTAG_TRST PINB4 |
2 | 13 |
14 extern void jtag_init(void); | |
7 | 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 | 20 |
21 #endif /* __JTAG_H_ */ |