⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 img_defs.h

📁 Lido PXA270平台开发板的最新BSP,包括源代码
💻 H
字号:
/*!****************************************************************************
@File			img_defs.h

@Title			Common header containing type definitions for portability

@Author			Imagination Technologies

@date   		August 2001
 
@Copyright     	Copyright 2003-2004 by Imagination Technologies Limited.
                All rights reserved. No part of this software, either
                material or conceptual may be copied or distributed,
                transmitted, transcribed, stored in a retrieval system
                or translated into any human or computer language in any
                form by any means, electronic, mechanical, manual or
                other-wise, or disclosed to third parties without the
                express written permission of Imagination Technologies
                Limited, Unit 8, HomePark Industrial Estate,
                King's Langley, Hertfordshire, WD4 8LZ, U.K.

@Platform		cross platform / environment

@Description	Contains variable and structure definitions. Any platform
				specific types should be defined in this file.

@DoxygenVer		

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

/******************************************************************************
Modifications :-

$Log: img_defs.h $
*****************************************************************************/
#if !defined (__IMG_DEFS_H__)
#define __IMG_DEFS_H__

#include "img_types.h"

/*!
 *****************************************************************************
 *	These types should be changed on a per-platform basis to retain
 *	the indicated number of bits per type. e.g.: A DP_INT_16 should be
 *	always reflect a signed 16 bit value.
 *****************************************************************************/

typedef		enum	img_tag_TriStateSwitch
{
	IMG_ON		=	0x00,
	IMG_OFF,
	IMG_IGNORE

} img_TriStateSwitch, * img_pTriStateSwitch;

#define		IMG_SUCCESS				0


#define		IMG_NULL				0
#define		IMG_NO_REG				1

#if defined (NO_INLINE_FUNCS)
	#define	INLINE
#else
#if defined (__cplusplus)
	#define INLINE					inline
#else
	#define	INLINE					__inline
#endif
#endif

/* Use this in any file, or use attributes under GCC - see below */
#ifndef UNREFERENCED_PARAMETER
#define	UNREFERENCED_PARAMETER(param) (param) = (param)
#endif

/* The best way to supress unused parameter warnings using GCC is to use a
 * variable attribute.  Place the unref__ between the type and name of an
 * unused parameter in a function parameter list, eg `int unref__ var'. This
 * should only be used in GCC build environments, for example, in files that
 * compile on Linux. Others files should use UNREFERENCED_PARAMETER */
#ifdef __GNUC__
#define unref__ __attribute__ ((unused))
#else
#define unref__
#endif

/*
	Wide character definitions
*/
#if defined(UNICODE)
typedef unsigned short		TCHAR, *PTCHAR, *PTSTR;
#else	/* #if defined(UNICODE) */
typedef char				TCHAR, *PTCHAR, *PTSTR;
#endif	/* #if defined(UNICODE) */

typedef void *HANDLE;

#ifndef NULL
#define NULL ((void *)0)
#endif

#ifndef FALSE
#define FALSE 0
#endif

#ifndef TRUE
#define TRUE 1
#endif

#if defined(__WINDOWS__)

#ifndef UNDER_CE
#define IMG_CALLCONV  _stdcall
#define IMG_EXPORT  
#define IMG_IMPORT
#else
#define IMG_CALLCONV
#define IMG_EXPORT
#define IMG_IMPORT  
#endif

#elif defined (__SYMBIAN32__)

#if defined(__GNUC__)
#define IMG_IMPORT
#define IMG_EXPORT	__declspec(dllexport)
#elif defined (__CC_ARM)
#define IMG_IMPORT __declspec(dllimport) 
#define IMG_EXPORT __declspec(dllexport)
#endif

#define IMG_CALLCONV

#else

#define IMG_CALLCONV 
#define IMG_IMPORT
#define IMG_EXPORT

#endif


#endif /* #if !defined (__IMG_DEFS_H__) */
/*****************************************************************************
 End of file (IMG_DEFS.H)
*****************************************************************************/

⌨️ 快捷键说明

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