source: svn/zas_dstar/hal/os/src/v2lin/vxw_defs.h

Last change on this file was 76, checked in by megakiss, 10 years ago

1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함

File size: 2.9 KB
Line 
1/****************************************************************************
2 * Copyright (C) 2004, 2005, 2006 v2lin Team <http://v2lin.sf.net>
3 * Copyright (C) 2000,2001  Monta Vista Software Inc.
4 *
5 * This file is part of the v2lin Library.
6 * VxWorks is a registered trademark of Wind River Systems, Inc.
7 *
8 * Initial implementation Gary S. Robertson, 2000, 2001.
9 * Contributed by Andrew Skiba, skibochka@sourceforge.net, 2004.
10 * Contributed by Mike Kemelmakher, mike@ubxess.com, 2005.
11 * Contributed by Constantine Shulyupin, conan.sh@gmail.com, 2006.
12 *
13 * The v2lin library is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Lesser General Public
15 * License as published by the Free Software Foundation; either
16 * version 2.1 of the License, or (at your option) any later version.
17 *
18 * The v2lin Library is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21 * Lesser General Public License for more details.
22 *
23 ****************************************************************************/
24
25/*
26**   Congifuration
27*/
28#ifndef TO_BE_DELETED
29#define TO_BE_DELETED   0
30#endif
31
32#ifndef USE_PRIORITY_INVERSION
33#define USE_PRIORITY_INVERSION  0
34#endif
35
36
37__BEGIN_DECLS;
38/*
39**  Generic data types
40*/
41#ifndef BOOL
42#define BOOL int
43#endif
44#ifndef STATUS
45#define STATUS int
46#endif
47/*
48**  Miscellaneous error codes
49*/
50#define TASK_ERRS                       0x00030000
51#define MEM_ERRS                        0x00110000
52#define MSGQ_ERRS                       0x00410000
53#define OBJ_ERRS                        0x003d0000
54#define SEM_ERRS                        0x00160000
55#define SM_OBJ_ERRS                     0x00580000
56#define S_memLib_NOT_ENOUGH_MEMORY      (MEM_ERRS + 1)
57#define S_msgQLib_INVALID_MSG_LENGTH    (MSGQ_ERRS + 1)
58#define S_objLib_OBJ_DELETED            (OBJ_ERRS + 3)
59#define S_objLib_OBJ_ID_ERROR           (OBJ_ERRS + 1)
60#define S_objLib_OBJ_TIMEOUT            (OBJ_ERRS + 4)
61#define S_objLib_OBJ_UNAVAILABLE        (OBJ_ERRS + 2)
62#define S_semLib_INVALID_OPERATION      (SEM_ERRS + 0x00000068)
63#define S_smObjLib_NOT_INITIALIZED      (SM_OBJ_ERRS + 1)
64#define S_taskLib_ILLEGAL_PRIORITY      (TASK_ERRS + 0x00000065)
65
66/*
67**  Timeout options
68*/
69#define NO_WAIT                         0
70#define WAIT_FOREVER                    -1
71/*
72**  Message Queue Option Flags
73*/
74#define MSG_PRI_NORMAL                  0x00
75#define MSG_PRI_URGENT                  0x01
76#define MSG_Q_FIFO                      0x00
77#define MSG_Q_PRIORITY                  0x01
78/*
79**  Semaphore Option Flags
80*/
81#define SEM_EMPTY                       0x00
82#define SEM_FULL                        0x01
83#define SEM_Q_FIFO                      0x00
84#define SEM_Q_PRIORITY                  0x01
85#define SEM_DELETE_SAFE                 0x04
86#define SEM_INVERSION_SAFE              0x08
87
88
89#include <pthread.h>
90
91__END_DECLS;
Note: See TracBrowser for help on using the repository browser.