comparison 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
comparison
equal deleted inserted replaced
1:f7c60e525801 2:abf221bf3ce4
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
12
13 extern void jtag_init(void);
14 extern void jtag_tms(char *buf, int nbits);
15 extern void jtag_shift(char *buf, int nbits);
16 extern void jtag_shift_inout(char *ibuf, char *obuf, int nbits);
17
18 #endif /* __JTAG_H_ */