トランジスタ技術2011年9月号「mbed30分クッキング」のプログラムです。

Dependencies:   mbed TextLCD SDFileSystem

Committer:
shintamainjp
Date:
Mon Aug 08 10:33:50 2011 +0000
Revision:
0:42e9eb506e88
Initial version.

Who changed what in which revision?

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