includes.h

来自「Small RTOS 移植到AVR下用IAR编译的」· C头文件 代码 · 共 66 行

H
66
字号
/*********************************************************************************************************
**                                        Small RTOS
**                                   The Real-Time Kernel
**                           (c) Copyright 2002-2003, chenmingji
**                                     All Rights Reserved
**                                         V1.50.0
**
**--------------文件信息--------------------------------------------------------------------------------
**文   件   名: CONFIG.H
**创   建   人: 陈明计
**最后修改日期: 2004年8月8日
**描       述: 应用相关的配置头文件
********************************************************************************************************/
#ifndef __RT_CONFIG_HPP
#define __RT_CONFIG_HPP

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

#ifndef FALSE
#define FALSE 0
#endif

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

/********************************/
/*      AVR的特殊代码           */
/********************************/
//这一段无需改动
#include <iom16.h>
#include <intrinsics.h>
#include <ina90.h>
#include <iomacro.h>

#include "target.h"

/********************************/
/*     应用程序配置             */
/********************************/
//以下根据需要改动



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

#define CPU_F 	8UL
#define delay_us(x) __delay_cycles(x*CPU_F)
#define delay_ms(x) __delay_cycles(x*CPU_F*1000)
	

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

⌨️ 快捷键说明

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