includes.h

来自「uC/OS操作系统在51平台的移植代码」· C头文件 代码 · 共 47 行

H
47
字号
/*
*********************************************************************************************************
*                                                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:  Junmin Zheng (zhengjunm@263.net) 
*********************************************************************************************************
*/

#ifndef __INCLUDES__
#define __INCLUDES__

#include	<reg52.h>

#include    <stdio.h>
#include    <string.h>
#include    <ctype.h>
#include    <stdlib.h>
#include    <setjmp.h>

/* These macros are intended to be used to re-declare the uC/OS-II functions to be reentrant */
#define TASK_REENTRANT		large reentrant
#define KCREENTRANT			large reentrant

#include    "os_cpu.h"
#include    "os_cfg.h"

/* These Keil keywords are used in uC/OS-II source files. So the next macro definitions are needed 
*/
#define data	ucos51_data
#define pdata	ucos51_pdata
#define xdata	ucos51_xdata

#include    "..\source\ucos_ii.h"

#endif

⌨️ 快捷键说明

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