Dependencies:   mbed

Committer:
monpjc
Date:
Sat Jun 30 13:17:05 2012 +0000
Revision:
0:1be76329b246
removed returns for debug and corrected usages of fp in main()

Who changed what in which revision?

UserRevisionLine numberNew contents of line
monpjc 0:1be76329b246 1 /*******************************************************/
monpjc 0:1be76329b246 2 /* file: ports.h */
monpjc 0:1be76329b246 3 /* abstract: This file contains extern declarations */
monpjc 0:1be76329b246 4 /* for providing stimulus to the JTAG ports.*/
monpjc 0:1be76329b246 5 /*******************************************************/
monpjc 0:1be76329b246 6
monpjc 0:1be76329b246 7 #ifndef ports_dot_h
monpjc 0:1be76329b246 8 #define ports_dot_h
monpjc 0:1be76329b246 9
monpjc 0:1be76329b246 10 /* these constants are used to send the appropriate ports to setPort */
monpjc 0:1be76329b246 11 /* they should be enumerated types, but some of the microcontroller */
monpjc 0:1be76329b246 12 /* compilers don't like enumerated types */
monpjc 0:1be76329b246 13 #define TCK (short) 0
monpjc 0:1be76329b246 14 #define TMS (short) 1
monpjc 0:1be76329b246 15 #define TDI (short) 2
monpjc 0:1be76329b246 16
monpjc 0:1be76329b246 17 /* set the port "p" (TCK, TMS, or TDI) to val (0 or 1) */
monpjc 0:1be76329b246 18 extern void setPort(short p, short val);
monpjc 0:1be76329b246 19
monpjc 0:1be76329b246 20 /* read the TDO bit and store it in val */
monpjc 0:1be76329b246 21 extern unsigned char readTDOBit();
monpjc 0:1be76329b246 22
monpjc 0:1be76329b246 23 /* make clock go down->up->down*/
monpjc 0:1be76329b246 24 extern void pulseClock();
monpjc 0:1be76329b246 25
monpjc 0:1be76329b246 26 /* read the next byte of data from the xsvf file */
monpjc 0:1be76329b246 27 extern void readByte(unsigned char *data);
monpjc 0:1be76329b246 28
monpjc 0:1be76329b246 29 extern void waitTime(long microsec);
monpjc 0:1be76329b246 30
monpjc 0:1be76329b246 31 #endif