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

📄 pg_os.h

📁 一个移植到凌阳单片机spce061a上面的实时操作系统
💻 H
字号:
///////////////////////////////////////////////////////////////
//
//
//   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_os.h : PGOS OS Core Service definitions   
//   History :
//
//          2005-07-24  First build by X.K. @ PGOS Team  
//          
/////////////////////////////////////////////////////////////////


#ifndef PG_OS_H
#define PG_OS_H

#define PGOS 0x80
#define MAXTASK  0x10

////////////////////////////////////
// Default task pri
//
////////////////////////////////////
#define PRIO_LOWEST 0x00
#define PRIO_HIGHEST 0xFF
#define PRIO_NORMAL 0x80

////////////////////////////////////
// Task schedular lock types
//
////////////////////////////////////
#define PG_SCH_LOCK   0x01
#define PG_SCH_UNLOCK 0x02

// PGOS System Core API Interface
VOID  pgos_sys_init() ;
VOID  pgos_sys_begin() ;
VOID  pgos_sys_reset() ;
VOID  pgos_sys_idle() ;
VOID  pgos_sys_runhigh() ;
VOID  pgos_sch_lock() ;
VOID  pgos_sch_unlock() ;  

WORD  pgos_sys_getver() ;

#if  PG_STAT_SUPPORT == 1
DWORD  pgos_sys_swspeed() ;
DWORD  pgos_sys_idlenum() ;
#endif

#endif

⌨️ 快捷键说明

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