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

📄 includes.h

📁 我移植的uCos 2.52版本,在MCS51上运行,代码进行了一些优化,可以编译在小模式.
💻 H
字号:
/*
*********************************************************************************************************
*                                                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 __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			reentrant //compact reentrant

#define _DATA	data
#define _IDATA	idata
#define _PDATA	pdata
#define _XDATA	xdata
#define _CODE	code

#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    "ucos_ii.h"
#include    "os_kc51.h"		/* MUST NOT REMOVE THIS LINE */

#endif

⌨️ 快捷键说明

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