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: micro.h
monpjc 0:1be76329b246 3 * Description: This header file contains the function prototype to the
monpjc 0:1be76329b246 4 * primary interface function for the XSVF player.
monpjc 0:1be76329b246 5 * Usage: FIRST - PORTS.C
monpjc 0:1be76329b246 6 * Customize the ports.c function implementations to establish
monpjc 0:1be76329b246 7 * the correct protocol for communicating with your JTAG ports
monpjc 0:1be76329b246 8 * (setPort() and readTDOBit()) and tune the waitTime() delay
monpjc 0:1be76329b246 9 * function. Also, establish access to the XSVF data source
monpjc 0:1be76329b246 10 * in the readByte() function.
monpjc 0:1be76329b246 11 * FINALLY - Call xsvfExecute().
monpjc 0:1be76329b246 12 *****************************************************************************/
monpjc 0:1be76329b246 13 #ifndef XSVF_MICRO_H
monpjc 0:1be76329b246 14 #define XSVF_MICRO_H
monpjc 0:1be76329b246 15
monpjc 0:1be76329b246 16 /* Legacy error codes for xsvfExecute from original XSVF player v2.0 */
monpjc 0:1be76329b246 17 #define XSVF_LEGACY_SUCCESS 1
monpjc 0:1be76329b246 18 #define XSVF_LEGACY_ERROR 0
monpjc 0:1be76329b246 19
monpjc 0:1be76329b246 20 /* 4.04 [NEW] Error codes for xsvfExecute. */
monpjc 0:1be76329b246 21 /* Must #define XSVF_SUPPORT_ERRORCODES in micro.c to get these codes */
monpjc 0:1be76329b246 22 #define XSVF_ERROR_NONE 0
monpjc 0:1be76329b246 23 #define XSVF_ERROR_UNKNOWN 1
monpjc 0:1be76329b246 24 #define XSVF_ERROR_TDOMISMATCH 2
monpjc 0:1be76329b246 25 #define XSVF_ERROR_MAXRETRIES 3 /* TDO mismatch after max retries */
monpjc 0:1be76329b246 26 #define XSVF_ERROR_ILLEGALCMD 4
monpjc 0:1be76329b246 27 #define XSVF_ERROR_ILLEGALSTATE 5
monpjc 0:1be76329b246 28 #define XSVF_ERROR_DATAOVERFLOW 6 /* Data > lenVal MAX_LEN buffer size*/
monpjc 0:1be76329b246 29 /* Insert new errors here */
monpjc 0:1be76329b246 30 #define XSVF_ERROR_LAST 7
monpjc 0:1be76329b246 31
monpjc 0:1be76329b246 32 /*****************************************************************************
monpjc 0:1be76329b246 33 * Function: xsvfExecute
monpjc 0:1be76329b246 34 * Description: Process, interpret, and apply the XSVF commands.
monpjc 0:1be76329b246 35 * See port.c:readByte for source of XSVF data.
monpjc 0:1be76329b246 36 * Parameters: none.
monpjc 0:1be76329b246 37 * Returns: int - For error codes see above.
monpjc 0:1be76329b246 38 *****************************************************************************/
monpjc 0:1be76329b246 39 extern int xsvfExecute();
monpjc 0:1be76329b246 40
monpjc 0:1be76329b246 41 #endif /* XSVF_MICRO_H */
monpjc 0:1be76329b246 42