-
Notifications
You must be signed in to change notification settings - Fork 0
/
osconfig.h.in
286 lines (250 loc) · 8.57 KB
/
osconfig.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
/**
* \brief Configuration file Operating System Abstraction Layer
*
* The specific definitions in this file may only be modified
* by setting the respective OSAL configuration options in the CMake
* build.
*
* Any direct modifications to the generated copy will
* be overwritten each time CMake executes.
*
* \note This file was automatically generated by CMake from
* @CMAKE_CURRENT_SOURCE_DIR@/default_config.cmake
*/
#ifndef OSCONFIG_H
#define OSCONFIG_H
/*
* OSAL feature selection options from build config
*/
#cmakedefine OSAL_CONFIG_INCLUDE_DYNAMIC_LOADER
#cmakedefine OSAL_CONFIG_INCLUDE_NETWORK
#cmakedefine OSAL_CONFIG_INCLUDE_STATIC_LOADER
#cmakedefine OSAL_CONFIG_INCLUDE_SHELL
#cmakedefine OSAL_CONFIG_DEBUG_PRINTF
#cmakedefine OSAL_CONFIG_DEBUG_PERMISSIVE_MODE
#cmakedefine OSAL_CONFIG_CONSOLE_ASYNC
#cmakedefine OSAL_CONFIG_BUGCHECK_DISABLE
#cmakedefine OSAL_CONFIG_BUGCHECK_STRICT
/*
* OSAL resource limits from build config
*
* (These are prefixed with OS_ for compatibility
* with existing code referencing these symbols)
*/
/**
* \brief The maximum number of to support
*
* Based on the OSAL_CONFIG_MAX_TASKS configuration option
*/
#define OS_MAX_TASKS @OSAL_CONFIG_MAX_TASKS@
/**
* \brief The maximum number of queues to support
*
* Based on the OSAL_CONFIG_MAX_QUEUES configuration option
*/
#define OS_MAX_QUEUES @OSAL_CONFIG_MAX_QUEUES@
/**
* \brief The maximum number of counting semaphores to support
*
* Based on the OSAL_CONFIG_MAX_COUNT_SEMAPHORES configuration option
*/
#define OS_MAX_COUNT_SEMAPHORES @OSAL_CONFIG_MAX_COUNT_SEMAPHORES@
/**
* \brief The maximum number of binary semaphores to support
*
* Based on the OSAL_CONFIG_MAX_BIN_SEMAPHORES configuration option
*/
#define OS_MAX_BIN_SEMAPHORES @OSAL_CONFIG_MAX_BIN_SEMAPHORES@
/**
* \brief The maximum number of mutexes to support
*
* Based on the OSAL_CONFIG_MAX_MUTEXES configuration option
*/
#define OS_MAX_MUTEXES @OSAL_CONFIG_MAX_MUTEXES@
/**
* \brief The maximum number of condition variables to support
*
* Based on the OSAL_CONFIG_MAX_CONDVARS configuration option
*/
#define OS_MAX_CONDVARS @OSAL_CONFIG_MAX_CONDVARS@
/**
* \brief The maximum number of modules to support
*
* Based on the OSAL_CONFIG_MAX_MODULES configuration option
*/
#define OS_MAX_MODULES @OSAL_CONFIG_MAX_MODULES@
/**
* \brief The maximum number of timebases to support
*
* Based on the OSAL_CONFIG_MAX_TIMEBASES configuration option
*/
#define OS_MAX_TIMEBASES @OSAL_CONFIG_MAX_TIMEBASES@
/**
* \brief The maximum number of timer callbacks to support
*
* Based on the OSAL_CONFIG_MAX_TIMERS configuration option
*/
#define OS_MAX_TIMERS @OSAL_CONFIG_MAX_TIMERS@
/**
* \brief The maximum number of concurrently open files to support
*
* Based on the OSAL_CONFIG_MAX_NUM_OPEN_FILES configuration option
*/
#define OS_MAX_NUM_OPEN_FILES @OSAL_CONFIG_MAX_NUM_OPEN_FILES@
/**
* \brief The maximum number of concurrently open directories to support
*
* Based on the OSAL_CONFIG_MAX_NUM_OPEN_DIRS configuration option
*/
#define OS_MAX_NUM_OPEN_DIRS @OSAL_CONFIG_MAX_NUM_OPEN_DIRS@
/**
* \brief The maximum number of file systems to support
*
* Based on the OSAL_CONFIG_MAX_FILE_SYSTEMS configuration option
*/
#define OS_MAX_FILE_SYSTEMS @OSAL_CONFIG_MAX_FILE_SYSTEMS@
/**
* \brief The maximum length of symbols
*
* Based on the OSAL_CONFIG_MAX_SYM_LEN configuration option
*
* \note This value must include a terminating NUL character
*/
#define OS_MAX_SYM_LEN @OSAL_CONFIG_MAX_SYM_LEN@
/**
* \brief The maximum length of OSAL file names
*
* This limit applies specifically to the file name portion, not the
* directory portion, of a path name.
*
* Based on the OSAL_CONFIG_MAX_FILE_NAME configuration option
*
* \note This value must include a terminating NUL character
*/
#define OS_MAX_FILE_NAME @OSAL_CONFIG_MAX_FILE_NAME@
/**
* \brief The maximum length of OSAL path names
*
* This limit applies to the overall length of a path name, including the
* file name and directory portions.
*
* Based on the OSAL_CONFIG_MAX_PATH_LEN configuration option
*
* \note This value must include a terminating NUL character
*/
#define OS_MAX_PATH_LEN @OSAL_CONFIG_MAX_PATH_LEN@
/**
* \brief The maximum length of OSAL resource names
*
* Based on the OSAL_CONFIG_MAX_API_NAME configuration option
*
* \note This value must include a terminating NUL character
*/
#define OS_MAX_API_NAME @OSAL_CONFIG_MAX_API_NAME@
/**
* \brief The maximum size of the socket address structure
*
* This is part of the Socket API, and should be set large enough to hold
* the largest address type in use on the target system.
*
* Based on the OSAL_CONFIG_SOCKADDR_MAX_LEN configuration option
*/
#define OS_SOCKADDR_MAX_LEN @OSAL_CONFIG_SOCKADDR_MAX_LEN@
/**
* \brief The maximum size of output produced by a single OS_printf()
*
* Based on the OSAL_CONFIG_PRINTF_BUFFER_SIZE configuration option
*/
#define OS_BUFFER_SIZE @OSAL_CONFIG_PRINTF_BUFFER_SIZE@
/**
* \brief The maximum number of OS_printf() output strings to buffer
*
* Based on the OSAL_CONFIG_PRINTF_BUFFER_DEPTH configuration option
*/
#define OS_BUFFER_MSG_DEPTH @OSAL_CONFIG_PRINTF_BUFFER_DEPTH@
/**
* \brief Priority level of the background utility task
*
* This task is responsible for writing buffered output of OS_printf to the actual
* console device, and any other future maintenance task.
*
* Based on the OSAL_CONFIG_UTILITYTASK_PRIORITY configuration option
*/
#define OS_UTILITYTASK_PRIORITY @OSAL_CONFIG_UTILITYTASK_PRIORITY@
/**
* \brief The stack size of the background utility task
*
* This task is responsible for writing buffered output of OS_printf to the actual
* console device, and any other future maintenance task.
*
* Based on the OSAL_CONFIG_UTILITYTASK_STACK_SIZE configuration option
*/
#define OS_UTILITYTASK_STACK_SIZE @OSAL_CONFIG_UTILITYTASK_STACK_SIZE@
/**
* \brief The maximum size of a shell command
*
* This limit is only applicable if shell support is enabled.
*
* Based on the OSAL_CONFIG_MAX_CMD_LEN configuration option
*
* \note This value must include a terminating NUL character
*/
#define OS_MAX_CMD_LEN @OSAL_CONFIG_MAX_CMD_LEN@
/**
* \brief The maximum depth of OSAL queues
*
* Based on the OSAL_CONFIG_QUEUE_MAX_DEPTH configuration option
*/
#define OS_QUEUE_MAX_DEPTH @OSAL_CONFIG_QUEUE_MAX_DEPTH@
/**
* \brief The name of the temporary file used to store shell commands
*
* This configuration is only applicable if shell support is enabled, and
* only necessary/relevant on some OS implementations.
*
* Based on the OSAL_CONFIG_SHELL_CMD_INPUT_FILE_NAME configuration option
*/
#define OS_SHELL_CMD_INPUT_FILE_NAME "@OSAL_CONFIG_SHELL_CMD_INPUT_FILE_NAME@"
/**
* \brief The name of the primary console device
*
* This is the device to which OS_printf() output is written. The output
* may be configured to tag each line with this prefix for identification.
*
* Based on the OSAL_CONFIG_PRINTF_CONSOLE_NAME configuration option
*/
#define OS_PRINTF_CONSOLE_NAME "@OSAL_CONFIG_PRINTF_CONSOLE_NAME@"
/**
* \brief Flags added to all tasks on creation
*
* Added to the task flags on creation
*
* Supports adding floating point support for all tasks when the OS requires it
*/
#define OS_ADD_TASK_FLAGS @OSAL_CONFIG_ADD_TASK_FLAGS@
/*
* OSAL fixed resource limits
*
* The resource limits here are not user-configurable, but
* may be changed in a future revision of OSAL, so it is
* still present in osconfig.h along with the others.
*/
/**
* \brief The maximum number of console devices to support
*
* Fixed value based on current OSAL implementation, not user configurable.
*/
#define OS_MAX_CONSOLES 1
/**
* \brief The system-specific file extension used on loadable module files
*
* Fixed value based on system selection, not user configurable.
*/
#define OS_MODULE_FILE_EXTENSION "@CMAKE_SHARED_LIBRARY_SUFFIX@"
/*
** Length of a Device and Volume name
*/
#define OS_FS_DEV_NAME_LEN 32 /**< Device name length */
#define OS_FS_PHYS_NAME_LEN 64 /**< Physical drive name length */
#define OS_FS_VOL_NAME_LEN 32 /**< Volume name length */
#endif /* OSCONFIG_H */