view include/jtag.h @ 8:074e860d7d31

jtagdev is a desktop client to communicate with jtag device through Arduino.
author Thinker K.F. Li <thinker@branda.to>
date Sun, 22 Feb 2009 22:30:20 +0800
parents 61f27549de57
children cc106f278d7d
line wrap: on
line source

#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
#define JTAG_TRST PINB4

extern void jtag_init(void);
extern void jtag_trst(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_ */