ubinos
objtype.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2009 Sung Ho Park
3  Contact: ubinos.org@gmail.com
4 
5  This file is part of the itf_ubinos component of the Ubinos.
6 
7  GNU General Public License Usage
8  This file may be used under the terms of the GNU
9  General Public License version 3.0 as published by the Free Software
10  Foundation and appearing in the file license_gpl3.txt included in the
11  packaging of this file. Please review the following information to
12  ensure the GNU General Public License version 3.0 requirements will be
13  met: http://www.gnu.org/copyleft/gpl.html.
14 
15  GNU Lesser General Public License Usage
16  Alternatively, this file may be used under the terms of the GNU Lesser
17  General Public License version 2.1 as published by the Free Software
18  Foundation and appearing in the file license_lgpl.txt included in the
19  packaging of this file. Please review the following information to
20  ensure the GNU Lesser General Public License version 2.1 requirements
21  will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
22 
23  Commercial Usage
24  Alternatively, licensees holding valid commercial licenses may
25  use this file in accordance with the commercial license agreement
26  provided with the software or, alternatively, in accordance with the
27  terms contained in a written agreement between you and rightful owner.
28  */
29 
30 #ifndef UBINOS_OBJTYPE_H_
31 #define UBINOS_OBJTYPE_H_
32 
33 #ifdef __cplusplus
34 extern "C"
35 {
36 #endif
37 
46 #include <ubinos_config.h>
47 
49 #define OBJTYPE__NULL 0x00
50 
52 #define OBJTYPE__UBIK_TASK 0x10
53 
54 #define OBJTYPE__UBIK_IDLETASK 0x18
55 
57 #define OBJTYPE__UBIK_SIGNAL 0x11
58 
59 #define OBJTYPE__UBIK_MUTEX 0x12
60 
61 #define OBJTYPE__UBIK_SEM 0x13
62 
63 #define OBJTYPE__UBIK_MSGQ 0x14
64 
65 #define OBJTYPE__UBIK_CONDV 0x15
66 
67 #define OBJTYPE__UBIK_STIMER 0x16
68 
70 #define OBJTYPE__UBICLIB_HEAP 0x30
71 
73 #define OBJTYPE__FLASH 0x50
74 
76 typedef struct _obj_t
77 {
78  unsigned int type :8;
79  unsigned int valid :1;
80  unsigned int reserved :7;
81  unsigned int reserved2 :16;
82 } obj_t;
83 
85 typedef obj_t * obj_pt;
86 
87 #ifdef __cplusplus
88 }
89 #endif
90 
91 #endif /* UBINOS_OBJTYPE_H_ */
_obj_t::reserved
unsigned int reserved
Definition: objtype.h:80
obj_pt
obj_t * obj_pt
Definition: objtype.h:85
obj_t
struct _obj_t obj_t
_obj_t::type
unsigned int type
Definition: objtype.h:78
_obj_t
Definition: objtype.h:76
_obj_t::reserved2
unsigned int reserved2
Definition: objtype.h:81
_obj_t::valid
unsigned int valid
Definition: objtype.h:79