TI BLE5-Stack API Documentation
3.03.01.00
.build.ble5.cc23xx
api-sources
ble-core
source
ti
ble5stack_flash
osal
src
inc
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
#define USUCCESS 0U
83
#ifndef CC33xx
84
#define FAILURE 0x01
85
#define UFAILURE 1U
86
#else
87
#define FAILURE_CC33XX 0x01
88
#endif // CC33xx
89
#define INVALIDPARAMETER 0x02
90
#define INVALID_TASK 0x03
91
#define MSG_BUFFER_NOT_AVAIL 0x04
92
#define INVALID_MSG_POINTER 0x05
93
#define INVALID_EVENT_ID 0x06
94
#define INVALID_INTERRUPT_ID 0x07
95
#define NO_TIMER_AVAIL 0x08
96
#define NV_ITEM_UNINIT 0x09
97
#define NV_OPER_FAILED 0x0A
98
#define INVALID_MEM_SIZE 0x0B
99
#define NV_BAD_ITEM_LEN 0x0C
100
101
/*********************************************************************
102
* TYPEDEFS
103
*/
104
106
107
// Generic Status return
108
typedef
uint8 Status_t;
109
110
// Data types
111
typedef
int32 int24;
112
typedef
uint32 uint24;
113
115
116
/*********************************************************************
117
* Global System Events
118
*/
119
120
#define SYS_EVENT_MSG 0x8000
121
122
/*********************************************************************
123
* Global Generic System Messages
124
*/
125
126
#define KEY_CHANGE 0xC0
127
128
// OSAL System Message IDs/Events Reserved for applications (user applications)
129
// 0xE0 - 0xFC
130
131
/*********************************************************************
132
* MACROS
133
*/
134
135
/*********************************************************************
136
* GLOBAL VARIABLES
137
*/
138
139
/*********************************************************************
140
* FUNCTIONS
141
*/
142
143
/*********************************************************************
144
*********************************************************************/
145
146
#ifdef __cplusplus
147
}
148
#endif
149
150
#endif
/* COMDEF_H */
© Copyright 1995-2024
, Texas Instruments Incorporated. All rights reserved.
Trademarks
|
Privacy policy
|
Terms of use
|
Terms of sale