common.h

来自「基于CC1100和ATMEGA128开发的无线机器人控制程序」· C头文件 代码 · 共 77 行

H
77
字号
/*******************************************************************************************************
 *                                                                                                     *
 *        **********                                                                                   *
 *       ************                                                                                  *
 *      ***        ***                                                                                 *
 *      ***   +++   ***                                                                                *
 *      ***   + +   ***     This file contains commonly used types and is included in                  *
 *      ***   +             halsrf04.h, and halxx10.h                                       *
 *      ***   + +   ***                                                                                *
 *      ***   +++   ***     common.h                                                                   *
 *      ***        ***                                                                                 *
 *       ************                                                                                  *
 *        **********                                                                                   *
 *                                                                                                     *
 *******************************************************************************************************
 * Compiler:                WINAVR                                                             *
 * Target platform:         Chipcon CCxxx0 (any ATMEGA MCU)                                               *
 * Author:                  珠海元井电子  www.vital-well.com                                                                        *
 *******************************************************************************************************
 * Revision history:    See end of file                                                                *
 ******************************************************************************************************/
#ifndef COMMON_H
#define COMMON_H





/*******************************************************************************************************
 *******************************************************************************************************
 **************************                   Commonly used types           ****************************
 *******************************************************************************************************
 *******************************************************************************************************/




//-------------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------
// Common data types
typedef unsigned char		BOOL;

typedef unsigned char		BYTE;
typedef unsigned short		WORD;
typedef unsigned long		DWORD;
typedef unsigned long long	QWORD;

typedef unsigned char		UINT8;
typedef unsigned short		UINT16;
typedef unsigned long		UINT32;
typedef unsigned long long	UINT64;

typedef signed char			INT8;
typedef signed short		INT16;
typedef signed long			INT32;
typedef signed long long	INT64;

// Common values
#ifndef FALSE
	#define FALSE 0
#endif
#ifndef TRUE
	#define TRUE 1
#endif
#ifndef NULL
	#define NULL 0
#endif
//-------------------------------------------------------------------------------------------------------







#endif// COMMON_H

⌨️ 快捷键说明

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