ubinos
objtype.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2009 Sung Ho Park
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef UBINOS_OBJTYPE_H_
8 #define UBINOS_OBJTYPE_H_
9 
10 #ifdef __cplusplus
11 extern "C"
12 {
13 #endif
14 
23 #include <ubinos_config.h>
24 
26 #define OBJTYPE__NULL 0x00
27 
29 #define OBJTYPE__UBIK_TASK 0x10
31 #define OBJTYPE__UBIK_IDLETASK 0x18
32 
34 #define OBJTYPE__UBIK_SIGNAL 0x11
36 #define OBJTYPE__UBIK_MUTEX 0x12
38 #define OBJTYPE__UBIK_SEM 0x13
40 #define OBJTYPE__UBIK_MSGQ 0x14
42 #define OBJTYPE__UBIK_CONDV 0x15
44 #define OBJTYPE__UBIK_STIMER 0x16
45 
47 #define OBJTYPE__UBICLIB_HEAP 0x30
48 
50 #define OBJTYPE__FLASH 0x50
51 
53 typedef struct _obj_t
54 {
55  unsigned int type :8;
56  unsigned int valid :1;
57  unsigned int reserved :7;
58  unsigned int reserved2 :16;
60 
62 typedef obj_t * obj_pt;
63 
64 #ifdef __cplusplus
65 }
66 #endif
67 
68 #endif /* UBINOS_OBJTYPE_H_ */
obj_t * obj_pt
Definition: objtype.h:62
struct _obj_t obj_t
Definition: objtype.h:54
unsigned int reserved2
Definition: objtype.h:58
unsigned int valid
Definition: objtype.h:56
unsigned int type
Definition: objtype.h:55
unsigned int reserved
Definition: objtype.h:57