📄 config.h
字号:
/*********************************************************************************************************
** Small RTOS(51)
** The Real-Time Kernel(For Keil c51)
**
** (c) Copyright 2002-2002, chenmingji
** All Rights Reserved
**
** V1.12.1
**
**
**--------------文件信息--------------------------------------------------------------------------------
**文 件 名: CONFIG.H
**创 建 人: 陈明计
**最后修改日期: 2003年4月27日
**描 述: DP-51的液晶TC1602A的驱动程序的例子与应用相关的配置头文件。
**
**--------------历史版本信息----------------------------------------------------------------------------
** 创建人: 陈明计
** 版 本: V1.0
** 日 期: 2003年4月27日
** 描 述: 原始版本,应用于Small RTOS 51 v1.21
**
**------------------------------------------------------------------------------------------------------
** 修改人:
** 版 本:
** 日 期:
** 描 述:
**
**------------------------------------------------------------------------------------------------------
**--------------当前版本修订------------------------------------------------------------------------------
** 修改人:
** 日 期:
** 描 述:
**
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
/********************************/
/* "以下为系统配置" */
/********************************/
#pragma REGPARMS
//#include <reg52.h>
#include <at89x52.h>
#include <intrins.h>
#include <absacc.h>
#define const code
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#ifndef ENABLE
#define ENABLE 1
#endif
#ifndef DISABLE
#define DISABLE 0
#endif
/********************************/
/* "操作系统定义" */
/********************************/
#include "OS_CFG.H"
#include "OS_CPU.H"
#include "..\os\OS.H"
#include "..\os\OS_Q.h"
#include "..\os\OS_SEM.h"
/********************************/
/* "以下为程序配置" */
/********************************/
#include "..\Peripheric\BC7281A.h"
#include "..\Peripheric\INTERFACE_PS2.h"
//任务定义
#ifdef IN_OS_CPU_C
extern void BH_Serial(void);
extern void BH_Counter(void);
extern void ExecuteFunc(void);
void (* const TaskFuction[OS_MAX_TASKS])(void)={BH_Serial,ExecuteFunc,BH_Counter};
//函数数组TaskFuction[]保存了各个任务初始PC指针,其按任务ID(既优先级次序)顺序保存
#endif
/********************************/
/* 分配信号量 */
/********************************/
#define SEM_SendBuffer 0
extern bit _Flag_StateLed;
/**********************end****************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -