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

📄 config.h

📁 small rtos for avr small rtos 使用了动态堆栈 想无需任何改动就可以编译这个程序
💻 H
字号:
/*********************************************************************************************************
**				                               Small RTOS(51)
**                                   The Real-Time Kernel(For Keil c51)
**
**                                  (c) Copyright 2002-2002, chenmingji
**                                           All Rights Reserved
**
**                                                  V1.12.1
**
**
**--------------文件信息--------------------------------------------------------------------------------
**文   件   名: CONFIG.H
**创   建   人: 徐宝田
**最后修改日期: 2005年5月23日
**描       述: RTOS for AVR测试程序配置文件
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/

/********************************/
/*     "以下为系统配置"           */
/********************************/

#ifndef bool
#define bool uint8
#endif

#ifndef TRUE
#define TRUE  1
#endif

#ifndef FALSE
#define FALSE 0
#endif
#ifndef __AVR_ATmega8__ 
#define __AVR_ATmega8__
#endif

#ifndef _CONFIG_H_
#define _CONFIG_H_

#include <inttypes.h>
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <setjmp.h>
#include <math.h>

#include <avr/io.h>
#include <avr/wdt.h>
#include <avr/sleep.h>
#include <avr/Interrupt.h>
#include <avr/signal.h>
#include <avr/pgmspace.h>
#include <avr/delay.h>
#include <avr/eeprom.h>

#endif
/********************************/
/*     "操作系统定义"            */
/********************************/
#include "OS_CFG.H"
#include "OS_CPU.H"
#include "OS.H"
/********************************/
/*     "以下为程序配置"           */
/********************************/
//任务定义
#ifdef IN_OS_CPU_C 
extern void task0(void);
extern void task1(void);
extern void task2(void);

void (* const TaskFuction[OS_MAX_TASKS])(void) =
{task0,task1,task2};	    

//函数数组TaskFuction[]保存了各个任务初始PC指针,其按任务ID(既优先级次序)顺序保存
#endif
/**********************end****************************************/


⌨️ 快捷键说明

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