testcase.h

来自「NorFlash bootloader(SPANSION_S71WS256ND0」· C头文件 代码 · 共 88 行

H
88
字号
/******************************************************************************

 C   H E A D E R   F I L E


 ALL RIGHTS RESERVED

*******************************************************************************

 Project Name : BONO System Test Program
 Project No.  :
 Title        :
 File Name    : testcase.h
 Last Modified: 12/27/2005
 (MM/DD/YYYY)

 Description  : Prototype definition header for BONO silicon system test program.

 Assumptions  :

 Dependency Comments :

 Project Specific Data :

 History (MM/DD/YYYY) :
 12/27/2005 - Initial Proposal

******************************************************************************/

#ifndef _TESTCASE_H
#define _TESTCASE_H

/*************************** Header File Includes ****************************/
#include "common.h"
/********************************* Constants *********************************/
/******************************** Enumeration ********************************/
typedef enum {
	OK,
	// Add other failure cases here.  For example....
	ERR_INIT_FAILED,
	ERR_TIMEOUT,
	ERR_INVALID_CASE
} status_t;

/****************************** Basic Data types *****************************/
typedef status_t (* testfunc_t) (void);

/************************* Structure/Union Data types ************************/
/* test case structure */
typedef struct
{
	testfunc_t	func;
	uint8_t		caseNum;
} testcase_t;

/* point structure	*/
typedef struct
{
    uint16_t	x;		/*  x point  */
    uint16_t	y;		/*  y point  */
} point_t, *p_point_t;

/* area structure	*/
typedef struct
{
	point_t		top;	/*  Top left corner		*/
	point_t		bottom;	/*  Bottom right corner	*/
} area_t, *p_area_t;

/********************************** Macros ***********************************/
/******************************* Global Data *********************************/
/*************************** Function prototype (S) **************************/

#ifdef EXTERN
    #undef EXTERN
#endif

#ifdef PROTO_DEFINE_FUNCS
    #define EXTERN
#else
    #define EXTERN extern
#endif

EXTERN status_t case1(void);
EXTERN status_t case2(void);
EXTERN status_t case3(void);

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?