TI BLE5-Stack API Documentation  2.02.07.00
comdef.h
Go to the documentation of this file.
1 /******************************************************************************
2 
3  Group: WCS, LPC, BTS
4  $Target Device: DEVICES $
5 
6  ******************************************************************************
7  $License: BSD3 2004 $
8  ******************************************************************************
9  $Release Name: PACKAGE NAME $
10  $Release Date: PACKAGE RELEASE DATE $
11  *****************************************************************************/
12 
18 #ifndef COMDEF_H
19 #define COMDEF_H
20 
21 #ifdef __cplusplus
22 extern "C"
23 {
24 #endif
25 
26 
27 /*********************************************************************
28  * INCLUDES
29  */
30 
31 /* HAL */
32 #include "hal_types.h"
33 #include "hal_defs.h"
34 
36 
37 /*********************************************************************
38  * Lint Keywords
39  */
40 #define VOID (void)
41 
42 #define NULL_OK
43 #define INP
44 #define OUTP
45 #define ONLY
46 #define READONLY
47 #define SHARED
48 #define KEEP
49 #define RELAX
50 #ifndef UNUSED
51  #define UNUSED
52 #endif
53 
54 /*********************************************************************
55  * CONSTANTS
56  */
57 
58 #ifndef false
59  #define false 0
60 #endif
61 
62 #ifndef true
63  #define true 1
64 #endif
65 
66 #ifndef CONST
67  #define CONST const
68 #endif
69 
70 #ifndef GENERIC
71  #define GENERIC
72 #endif
73 
75 
76 /*** Generic Status Return Values ***/
77 #define SUCCESS 0x00
78 #define FAILURE 0x01
79 #define INVALIDPARAMETER 0x02
80 #define INVALID_TASK 0x03
81 #define MSG_BUFFER_NOT_AVAIL 0x04
82 #define INVALID_MSG_POINTER 0x05
83 #define INVALID_EVENT_ID 0x06
84 #define INVALID_INTERRUPT_ID 0x07
85 #define NO_TIMER_AVAIL 0x08
86 #define NV_ITEM_UNINIT 0x09
87 #define NV_OPER_FAILED 0x0A
88 #define INVALID_MEM_SIZE 0x0B
89 #define NV_BAD_ITEM_LEN 0x0C
90 
91 /*********************************************************************
92  * TYPEDEFS
93  */
94 
96 
97 // Generic Status return
98 typedef uint8 Status_t;
99 
100 // Data types
101 typedef int32 int24;
102 typedef uint32 uint24;
103 
105 
106 /*********************************************************************
107  * Global System Events
108  */
109 
110 #define SYS_EVENT_MSG 0x8000
111 
112 /*********************************************************************
113  * Global Generic System Messages
114  */
115 
116 #define KEY_CHANGE 0xC0
117 
118 // OSAL System Message IDs/Events Reserved for applications (user applications)
119 // 0xE0 - 0xFC
120 
121 /*********************************************************************
122  * MACROS
123  */
124 
125 /*********************************************************************
126  * GLOBAL VARIABLES
127  */
128 
129 /*********************************************************************
130  * FUNCTIONS
131  */
132 
133 /*********************************************************************
134 *********************************************************************/
135 
136 #ifdef __cplusplus
137 }
138 #endif
139 
140 #endif /* COMDEF_H */
© Copyright 1995-2023, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale