includes.h

来自「Keil单片机软件开发平台下的一个51系列单片机工程」· C头文件 代码 · 共 77 行

H
77
字号
/*
*********************************************************************************************************
*                                                uC/OS-II
*                                          The Real-Time Kernel
*
*                        (c) Copyright 1992-1998, Jean J. Labrosse, Plantation, FL
*                                           All Rights Reserved
*
*                                           MASTER INCLUDE FILE
*********************************************************************************************************
*/

/*
*********************************************************************************************************
* Keil C port.
* By: John X. Liu (johnxliu@163.com)
*********************************************************************************************************
*/
#ifndef _INCLUDESH__
#define _INCLUDESH__
#include <rtx51tny.h>                 /* RTX-51 tiny functions & defines      */
#include <intrins.h>
#include <ABSACC.H>
#include "STC89C51RC_RD_PLUS.H"
//#include    <REG52.H>
#include    <absacc.h>
typedef unsigned char  BOOLEAN;
typedef unsigned char  INT8U;                    /* Unsigned  8 bit quantity                           */
typedef signed   char  INT8S;                    /* Signed    8 bit quantity                           */
typedef unsigned int   INT16U;                   /* Unsigned 16 bit quantity                           */
typedef signed   int   INT16S;                   /* Signed   16 bit quantity                           */
typedef unsigned long  INT32U;                   /* Unsigned 32 bit quantity                           */
typedef signed   long  INT32S;                   /* Signed   32 bit quantity                           */
typedef float          FP32;                     /* Single precision floating point                    */

typedef unsigned char  OS_STK;                   /* Each stack entry is 8-bit wide                     */
typedef unsigned char  OS_CPU_SR;                /* Define size of CPU status register (PSW = 8 bits)  */

#define BYTE           INT8S                     /* Define dat types for backward compatibility ...    */
#define UBYTE          INT8U                     /* ... to uC/OS V1.xx.  Not actually needed for ...   */
#define WORD           INT16S                    /* ... uC/OS-II.                                      */
#define UWORD          INT16U
#define LONG           INT32S
#define ULONG          INT32U

#define int8           INT8S                     /* Define dat types for backward compatibility ...    */
#define uint8          INT8U                     /* ... to uC/OS V1.xx.  Not actually needed for ...   */
#define int16          INT16S                    /* ... uC/OS-II.                                      */
#define uint16         INT16U
#define int32          INT32S
#define uint32         INT32U
#define HIGH           1
#define LOW            0

#define TRUE           1
#define FALSE          0
#define OS_MSEL_PER_TICKS 10 

#include    "Data.H"
//#include    "24c256io.h"
#include    "FM24C16.H"
#include    "FM24C16A.H"

//#include    "Ds12887.h"
#include    "LcdDrive12864.h"
#include    "SubProg.h"

#define JDQ_OFF 1
#define JDQ_ON  0 
sbit JDQ_GJ        = P2^5;
sbit JDQ_FMC       = P2^4;
sbit JDQ_DISCHARGE = P2^3;
sbit JDQ_CHARGE    = P2^2;

#endif

⌨️ 快捷键说明

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