type.h
来自「一个USB主机核的驱动程序」· C头文件 代码 · 共 72 行
H
72 行
///////////////////////////////////////////////////////////////////////////
//
// File: type.h
// $ Archive: \hcd51\type.h $
//
// Purpose:
// Header file for type definition.
//
// Environment:
// C51
//
// $ Author: Jeff Dai $
//
// $History: type.h $
//
//
// Copyright (c) 2005 MountainView, Inc. May not be reproduced without
// permission. See the license agreement for more details.
//
///////////////////////////////////////////////////////////////////////////
#ifndef __TYPE_H__
#define __TYPE_H__
#include <reg51.h>
typedef void VOID, *PVOID;
typedef char BOOL;
typedef char BOOLEAN;
typedef char *PCHAR;
typedef char CHAR;
typedef unsigned char BYTE, UCHAR, *PUCHAR;
typedef unsigned short USHORT, *PUSHORT;
typedef unsigned short WORD, *PWORD;
typedef unsigned long DWORD, ULONG, *PULONG;
typedef volatile UCHAR *PVUCHAR;
typedef volatile USHORT *PVUSHORT;
typedef volatile ULONG *PVULONG;
typedef signed char SBYTE;
typedef signed int SWORD;
typedef signed long SDWORD;
typedef unsigned long MEMADDR;
typedef unsigned long SIZE_T;
typedef char USB_STATUS;
#define FALSE 0
#define TRUE 1
#define IN
#define OUT
#define BYTE_HIGH 0
#define BYTE_LOW 1
#define XDATA xdata
#define DATA data
#define CODE code
typedef unsigned char EVENT;
typedef unsigned char STATE;
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?