typedefs.h

来自「《OSEK/VDX汽车电子嵌入式软件编程技术》中光盘的资料」· C头文件 代码 · 共 50 行

H
50
字号
/************************************************
*
*	$Copyright    2001 Joseph J. Lemieux  ALL RIGHTS RESERVED. $
*
*	$Filename: C:\OSEKBook\src\CH07\inc\typedefs.h $
*
*	Description:	This file defines the types used in the
*				book development. These types are used
*				throughout the book.
*
************************************************/
#ifndef TYPEDEFSH
#define TYPEDEFSH

/************************************************
*
*	Define integer types. These types are used to eliminate
*	the undefined behavior of C
*
************************************************/

typedef unsigned char UINT8;
typedef signed char SINT8;
typedef unsigned short UINT16;
typedef signed short SINT16;
typedef unsigned long UINT32;
typedef signed long SINT32;
typedef unsigned long long UINT64;
typedef signed long long SINT64;

typedef UINT8 BOOLEAN;

/*****
*
*   Define NULL pointer for use in programs
*
*****/
#define NULL ((void *)0x00000000)

/*****
*
* Define TRUE and FALSE
*
*****/
#define TRUE 1
#define FALSE 0

#endif /* TYPEDEFSH */

⌨️ 快捷键说明

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