3 * Stefan Roese, esd gmbh germany, stefan.roese@esd-electronics.com
5 * See file CREDITS for list of people who contributed to this
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
24 /*******************************************************/
26 /* abstract: This file contains extern declarations */
27 /* for providing stimulus to the JTAG ports.*/
28 /*******************************************************/
33 /* these constants are used to send the appropriate ports to setPort */
34 /* they should be enumerated types, but some of the microcontroller */
35 /* compilers don't like enumerated types */
41 * Use CFG_FPGA_xxx defines from board include file.
43 #define JTAG_TMS CFG_FPGA_PRG /* output */
44 #define JTAG_TCK CFG_FPGA_CLK /* output */
45 #define JTAG_TDI CFG_FPGA_DATA /* output */
46 #define JTAG_TDO CFG_FPGA_DONE /* input */
48 /* set the port "p" (TCK, TMS, or TDI) to val (0 or 1) */
49 void setPort(short p, short val);
51 /* read the TDO bit and store it in val */
52 unsigned char readTDOBit(void);
54 /* make clock go down->up->down*/
55 void pulseClock(void);
57 /* read the next byte of data from the xsvf file */
58 void readByte(unsigned char *data);
60 void waitTime(long microsec);