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

📄 type.h

📁 blackfin532的一个串口测试代码
💻 H
字号:
/*----------------------------------------------------------------------------------------------
*
* This file is Enjoror's property. It contains Enjoror's trade secret, proprietary and 		
* confidential information. 
* 
* The information and code contained in this file is only for authorized Enjoror employees 
* to design, create, modify, or review.
* 
* DO NOT DISTRIBUTE, DO NOT DUPLICATE OR TRANSMIT IN ANY FORM WITHOUT PROPER AUTHORIZATION.
* 
* If you are not an intended recipient of this file, you must not copy, distribute, modify, 
* or take any action in reliance on it. 
* 
* If you have received this file in error, please immediately notify Enjoror and 
* permanently delete the original and any copy of any file and any printout thereof.
*
*-------------------------------------------------------------------------------------------------*/
#ifndef _TYPE_H
#define _TYPE_H

typedef unsigned char		BYTE;
typedef BYTE*               pBYTE;
typedef unsigned short		WORD;
typedef unsigned long		DWORD;
typedef void*			    Handle;
typedef int              	BOOL;
typedef	long			    RESULT;

#ifndef NULL 
	#define NULL      		0
#endif

#define FALSE		0
#define TRUE		1

#ifndef	MAX
#define MAX(x,y) (((x)>=(y))?(x):(y))
#endif
#ifndef	MIN
#define MIN(x,y) (((x)<=(y))?(x):(y))
#endif

#define ERR_NONE                0
#define ERR_PARAM_INVALID       1
#define ERR_NOT_SUPPORT         2
#define ERR_MEM_ALLOCFAIL       3
#define ERR_UNKNOWN             4


#define	CHECK_VALID_RET(x)		    if(ERR_NONE != (x)) return (x);
#define	CHECK_VALID_MALLOC(x)		if(NULL == (x)) return (ERR_MEM_ALLOCFAIL);

struct IIC_buffer
{
	BYTE device;
	BYTE *data;
	BYTE address;
	char num_data;
};

//#define VX1828		0xDE   //assigned the VX1828's device address

//void InitVx1828(void);
//void ResetVx1828(void);
//void delay_1828(int Xms);

#endif

⌨️ 快捷键说明

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