URL
https://opencores.org/ocsvn/thor/thor/trunk
Subversion Repositories thor
[/] [thor/] [trunk/] [software/] [FMTK/] [source/] [kernel/] [const.h] - Rev 23
Compare with Previous | Blame | View Log
#ifndef CONST_H #define CONST_H #define TRUE 1 #define FALSE 0 #define null (void *)0 #define MAX_UINT 0xFFFFFFFFFFFFFFFFL #define TS_NONE 0 #define TS_TIMEOUT 1 #define TS_WAITMSG 2 #define TS_PREEMPT 4 #define TS_RUNNING 8 #define TS_READY 16 #define TS_GIVEAWAY 32 #define MQS_UNLIMITED 0 #define MQS_OLDEST 1 #define MQS_NEWEST 2 #define MBT_DATA 2 // message types #define MT_NONE 0 // not a message #define MT_FREE 1 enum { E_Ok = 0, E_BadHandle, E_BadTCBHandle, E_BadPriority, E_BadCallno, E_Arg, E_BadMbx, E_QueFull, E_NoThread, E_NotAlloc, E_NoMsg, E_Timeout, E_BadAlarm, E_NotOwner, E_QueStrategy, E_DCBInUse, //; Device driver errors E_BadDevNum = 0x20, E_NoDev, E_BadDevOp, E_ReadError, E_WriteError, E_BadBlockNum, E_TooManyBlocks, // resource errors E_NoMoreMbx = 0x40, E_NoMoreMsgBlks, E_NoMoreAlarmBlks, E_NoMoreTCBs, E_NoMem, E_TooManyTasks }; #endif