pg_cfg.h

来自「一个移植到凌阳单片机spce061a上面的实时操作系统」· C头文件 代码 · 共 81 行

H
81
字号
///////////////////////////////////////////////////////////////
//
//
//   PGOS : A Portable,Configable Embedded System Kernel
//
//             Intel X86 Specific Code
//
//   This is an open source project under GPL lincence  
//
//        Version 0.9.0 ---- Development Snopshot
//
//   File name : pg_cfg.h : Confiuration file for PGOS kernel    
//   History :
//
//          2005-07-24  First build by X.K. @ PGOS Team
//          2005-08-09  Update for PG_PRI_SCH support  
//          
/////////////////////////////////////////////////////////////////

#ifndef PG_CFG_H
#define PG_CFG_H

////////////////////////////////////
// This is basic support for task
// module.Recommanded open.
// 
////////////////////////////////////
#define  PG_TASK_BASIC_SUPPORT  1
////////////////////////////////////
// This is advanced support for 
// task.
////////////////////////////////////
#define  PG_TASK_ADV_SUPPORT  1
////////////////////////////////////
// Message support
//
////////////////////////////////////
#define  PG_MSG_SUPPORT   1
#define  PG_MESSAGE_BLOCK  1
#define  PG_MESSAGE_UNBLK  0
////////////////////////////////////
// Timer support
//
////////////////////////////////////
#define  PG_TIMER_SUPPORT  1
////////////////////////////////////
// Sem Support
//
////////////////////////////////////
#define  PG_SEM_SUPPORT 1
#if  PG_SEM_SUPPORT == 1
#define  PG_SEM_FIFO     1
#define  PG_SEM_PRIO     0
#endif
/////////////////////////////////////
// Driver Support
//
/////////////////////////////////////
#define  PG_DRV_SUPPORT  1
#define  PG_DRV_NAME_SUPPORT  0
/////////////////////////////////////
// Schedular Support
//
/////////////////////////////////////
#define  PG_SCH_ROUNDROBIN   1
#define  PG_SAME_PRI_SUPPORT  0
#define  PG_PRI_SCH      1
/////////////////////////////////////
// Time & Stat Support
//
/////////////////////////////////////
#define  PG_TIME_SUPPORT  0
#define  PG_STAT_SUPPORT  0
/////////////////////////////////////
// Watchdog Clear Support
//
////////////////////////////////////
#define PG_WDG_CLEAN_KERNEL 1
#define PG_WDG_CLEAN_TASK   0

#endif

⌨️ 快捷键说明

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