includes.h

来自「8051的UCOS实时操作系统(源代码)」· C头文件 代码 · 共 63 行

H
63
字号
/* $Id: includes.h,v 1.6 1997/07/16 13:41:50 gianpi Exp $
 *
 * Conditionalizations:
 *	__BORLANDC__
 *	_CC51
 */

#ifndef _INCLUDES_H_
#define _INCLUDES_H_

/*
***************************************************************
*                       INCLUDES.H
***************************************************************
*/

#include    <stdio.h>
#include    <string.h>
#include    <ctype.h>
#include    <stdlib.h>
#if defined(__BORLANDC__)
#include    <conio.h>
#include    <dos.h>
#endif	/* defined(__BORLANDC__) */

/* === Compatibility Mode === */
#if !defined(_CC51)
#define _data
#define	_large
#define _regparm
#define _rom
#define _xdat
#endif	/* !defined(_CC51) */

/* === Include Target-Dependent constants and definitions === */
#if defined(__BORLANDC__)	/* Borland C++ 3.1 */
#if defined(__SMALL__)
#include    "ix86s/ix86s.h"
#elif defined(__LARGE__)
#include    "ix86l/ix86l.h"
#else
#error Only small and large models are supported with BC31
#endif
#elif defined(_CC51)		/* BSO-Tasking CC51 v4.0r0 */
#if (_MODEL == 'l')
#include    "ucos51c.h"
#else
#error Only large model is supported with CC51
#endif
#else				/* all other brands */
#error	Must provide a target
#endif

/* === Include Target-Independent constants and definitions === */
#include    "ucos.h"

/* === Include Application specific constants and definitions === */
#include    "os_cfg.h"

#endif 	/* ndef _INCLUDES_H_ */

/* === End of File === */

⌨️ 快捷键说明

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