config.h

来自「SmallRTOSAVR.rar」· C头文件 代码 · 共 64 行

H
64 行
字号
/*********************************************************************************************************
**                                        Small RTOS
**                                   The Real-Time Kernel
**                           (c) Copyright 2002-2003, chenmingji
**                                     All Rights Reserved
**                                      V1.50.0 内部测试版
**
**--------------文件信息--------------------------------------------------------------------------------
**文   件   名: CONFIG.H
**创   建   人: 陈明计
**最后修改日期: 2004年8月8日
**描       述: 应用相关的配置头文件
** 修改人: 焦进星
** 日 期: 2007年12月30日
** 描 述: 移植到AVR系列芯片,适用于atmega16/32等
********************************************************************************************************/
#ifndef __RT_CONFIG_HPP
#define __RT_CONFIG_HPP

/********************************/
/*     "以下为系统配置"           */
/********************************/
#ifndef TRUE
#define TRUE  1
#endif

#ifndef FALSE
#define FALSE 0
#endif

/********************************/
/*     "操作系统定义"            */
/********************************/
#include "..\APP\OS_CFG.H"
#include "..\AVR\OS_CPU.H"
#include "..\OS\OS.H"

/********************************/
/*      AVR的特殊代码           */
/********************************/
//这一段无需改动


/********************************/
/*     应用程序配置             */
/********************************/
//以下根据需要改动
#include <io.h>
#include <wdt.h>
#include <sleep.h>
#include <Interrupt.h>
#include <inttypes.h>
#include <stdbool.h>

/********************************/
/*     本例子的配置             */
/********************************/


#endif
/*********************************************************************************************************
**                            End Of File
********************************************************************************************************/

⌨️ 快捷键说明

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