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

📄 common.h

📁 Bitek 公司 bit1611b模拟屏驱动芯片外接MCU驱动DEMO源码
💻 H
字号:
/* **********************************************************************

         Copyright (c) 2002-2006 Beyond Innovation Technology Co., Ltd

        All rights are reserved. Reproduction in whole or in parts is
    prohibited without the prior written consent of the copyright owner.
   ----------------------------------------------------------------------

    Module: COMMON.H -

    Purpose: Interface of COMMON.

    Version: 0.01                                   07:28PM  2005/05/13

    Compiler: Keil 8051 C Compiler v8.01

    Reference:

   ----------------------------------------------------------------------
    Modification:

    R0.01 07:28PM  2005/05/13 Jeffrey Chang
    Reason:
        1. Original.
    Solution:

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

#ifndef _COMMON_H_
#define _COMMON_H_


/* ------------------------------------
    Header Files
   ------------------------------------ */


/* ------------------------------------
    Macro Definitions
   ------------------------------------ */
#undef EXTERN

#ifdef _COMMON_C_
    #define EXTERN
#else
    #define EXTERN  extern
#endif


#define FALSE       0
#define TRUE        (! FALSE)

#define LOW         0
#define HIGH        (! LOW)

#define OFF         0
#define ON          (! OFF)

#define NO          0
#define YES         (! NO)

#define MINUS       0
#define PLUS        (! MINUS)


/* ::::::::::::::::::::::::::::::::::::
   :::::::::::::::::::::::::::::::::::: */
#define HIBYTE(word)    (word >> 8)
#define LOBYTE(word)    ((UB8) word)

/* ------------------------------------
    Type Definitions
   ------------------------------------ */
/* [2]64 */
typedef bit                 BOOL;       /* Boolean */

typedef unsigned char       UB8;        /* 8-bit data */
typedef unsigned short int  UW16;       /*16-bit data */
typedef unsigned long       UW32;       /*32-bit data */

typedef signed char         SB8;        /* 8-bit data */
typedef signed short int    SW16;       /*16-bit data */
typedef signed long         SW32;       /*32-bit data */


/* ------------------------------------
    Variables Definitions/Declarations
   ------------------------------------ */


/* ------------------------------------
    Function Prototypes
   ------------------------------------ */


#endif /* _COMMON_H_ */


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

    Description:

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

/* %% End Of File %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */

⌨️ 快捷键说明

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