?? 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
**創 建 人: 徐寶田
**最后修改日期: 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 + -