📄 osapi.h
字号:
/*** File: osapi.h**** Author: Alan Cudmore - Code 582**** Purpose: Contains functions prototype definitions and variables declarations** for the OS Abstraction Layer, Core OS module**** $Revision: 1.13 $ **** $Date: 2005/07/20 17:10:16 $**** $Log: osapi.h,v $** Revision 1.13 2005/07/20 17:10:16 nyanchik** replaced OS_SEM_SUCCESS return value with OS_SUCCESS**** Revision 1.12 2005/07/05 18:34:55 nyanchik** fixed issues found in code walkthrogh. Also removed the OS_Info* functions that are going in the BSP**** Revision 1.11 2005/06/15 16:43:48 nyanchik** added extra parenthesis for the .h file # defines**** Revision 1.10 2005/06/07 16:49:31 nyanchik** changed returns code for osapi.c to all int32 from uint32**** Revision 1.9 2005/06/02 17:00:11 nyanchik** Added Error code explainations to API doc**** Revision 1.8 2005/05/03 17:04:31 nyanchik** *** empty log message ******* Revision 1.3 2005/03/22 18:58:51 acudmore** added osapi network interface**** Revision 1.2 2005/03/15 18:26:32 nyanchik** *** empty log message ********* Date Written:**** */#ifndef _osapi_#define _osapi_#include "common_types.h"#define OS_SUCCESS (0)#define OS_ERROR (-1)#define OS_INVALID_POINTER (-2)#define OS_ERROR_ADDRESS_MISALIGNED (-3)#define OS_ERROR_TIMEOUT (-4)#define OS_INVALID_INT_NUM (-5)#define OS_SEM_FAILURE (-6)#define OS_SEM_TIMEOUT (-7)#define OS_QUEUE_EMPTY (-8)#define OS_QUEUE_FULL (-9)#define OS_QUEUE_TIMEOUT (-10)#define OS_QUEUE_INVALID_SIZE (-11)#define OS_QUEUE_ID_ERROR (-12)#define OS_ERR_NAME_TOO_LONG (-13)#define OS_ERR_NO_FREE_IDS (-14)#define OS_ERR_NAME_TAKEN (-15)#define OS_ERR_INVALID_ID (-16)#define OS_ERR_NAME_NOT_FOUND (-17)#define OS_ERR_SEM_NOT_FULL (-18)#define OS_ERR_INVALID_PRIORITY (-19)#define OS_MAJOR_VERSION (2)#define OS_MINOR_VERSION (0)/*** Defines for Queue Timeout parameters*/#define OS_PEND (0)#define OS_CHECK (-1)/*** Include the configuration file */#include "osconfig.h"/*** Include the OS API modules */#include "osapi-os-core.h"#include "osapi-os-filesys.h"#include "osapi-os-net.h"/*** Include the Hardware API modules*/#include "osapi-hw-core.h"#include "osapi-hw-analog.h"#include "osapi-hw-pci.h"#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -