TI BLE5-Stack API Documentation  3.02.04.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 #ifdef CC33xx
41 #define VOID void
42 #else
43 #define VOID (void)
44 #endif // CC33xx
45 
46 #define NULL_OK
47 #define INP
48 #define OUTP
49 #define ONLY
50 #define READONLY
51 #define SHARED
52 #define KEEP
53 #define RELAX
54 #ifndef UNUSED
55  #define UNUSED
56 #endif
57 
58 /*********************************************************************
59  * CONSTANTS
60  */
61 
62 #ifndef false
63  #define false 0
64 #endif
65 
66 #ifndef true
67  #define true 1
68 #endif
69 
70 #ifndef CONST
71  #define CONST const
72 #endif
73 
74 #ifndef GENERIC
75  #define GENERIC
76 #endif
77 
79 
80 /*** Generic Status Return Values ***/
81 #define SUCCESS 0x00
82 #ifndef CC33xx
83 #define FAILURE 0x01
84 #else
85 #define FAILURE_CC33XX 0x01
86 #endif // CC33xx
87 #define INVALIDPARAMETER 0x02
88 #define INVALID_TASK 0x03
89 #define MSG_BUFFER_NOT_AVAIL 0x04
90 #define INVALID_MSG_POINTER 0x05
91 #define INVALID_EVENT_ID 0x06
92 #define INVALID_INTERRUPT_ID 0x07
93 #define NO_TIMER_AVAIL 0x08
94 #define NV_ITEM_UNINIT 0x09
95 #define NV_OPER_FAILED 0x0A
96 #define INVALID_MEM_SIZE 0x0B
97 #define NV_BAD_ITEM_LEN 0x0C
98 
99 /*********************************************************************
100  * TYPEDEFS
101  */
102 
104 
105 // Generic Status return
106 typedef uint8 Status_t;
107 
108 // Data types
109 typedef int32 int24;
110 typedef uint32 uint24;
111 
113 
114 /*********************************************************************
115  * Global System Events
116  */
117 
118 #define SYS_EVENT_MSG 0x8000
119 
120 /*********************************************************************
121  * Global Generic System Messages
122  */
123 
124 #define KEY_CHANGE 0xC0
125 
126 // OSAL System Message IDs/Events Reserved for applications (user applications)
127 // 0xE0 - 0xFC
128 
129 /*********************************************************************
130  * MACROS
131  */
132 
133 /*********************************************************************
134  * GLOBAL VARIABLES
135  */
136 
137 /*********************************************************************
138  * FUNCTIONS
139  */
140 
141 /*********************************************************************
142 *********************************************************************/
143 
144 #ifdef __cplusplus
145 }
146 #endif
147 
148 #endif /* COMDEF_H */
© Copyright 1995-2023, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale