17 #ifndef __LIBPOK_DEPENDENCIES_H__
18 #define __LIBPOK_DEPENDENCIES_H__
21 #ifdef POK_CONFIG_OPTIMIZE_FOR_GENERATED_CODE
23 #ifdef POK_NEEDS_LIBC_STDIO
24 #ifndef POK_CONFIG_NEEDS_FUNC_MEMCPY
25 #define POK_CONFIG_NEEDS_FUNC_MEMCPY 1
28 #ifndef POK_CONFIG_NEEDS_FUNC_PRINTF
29 #define POK_CONFIG_NEEDS_FUNC_PRINTF 1
32 #ifndef POK_CONFIG_NEEDS_FUNC_VPRINTF
33 #define POK_CONFIG_NEEDS_FUNC_VPRINTF 1
37 #ifdef POK_NEEDS_LIBC_STDLIB
38 #ifndef POK_CONFIG_NEEDS_FUNC_MEMCPY
39 #define POK_CONFIG_NEEDS_FUNC_MEMCPY 1
42 #ifndef POK_NEEDS_ALLOCATOR
43 #define POK_NEEDS_ALLOCATOR 1
46 #ifndef POK_CONFIG_NEEDS_FUNC_RAND
47 #define POK_CONFIG_NEEDS_FUNC_RAND 1
50 #ifndef POK_CONFIG_NEEDS_FUNC_MALLOC
51 #define POK_CONFIG_NEEDS_FUNC_MALLOC 1
54 #ifndef POK_CONFIG_NEEDS_FUNC_CALLOC
55 #define POK_CONFIG_NEEDS_FUNC_CALLOC 1
58 #ifndef POK_CONFIG_NEEDS_FUNC_FREE
59 #define POK_CONFIG_NEEDS_FUNC_FREE 1
63 #ifdef POK_NEEDS_STRING
64 #ifndef POK_CONFIG_NEEDS_FUNC_MEMCPY
65 #define POK_CONFIG_NEEDS_FUNC_MEMCPY 1
68 #ifndef POK_CONFIG_NEEDS_FUNC_MEMSET
69 #define POK_CONFIG_NEEDS_FUNC_MEMSET 1
72 #ifndef POK_CONFIG_NEEDS_FUNC_MEMCMP
73 #define POK_CONFIG_NEEDS_FUNC_MEMCMP 1
76 #ifndef POK_CONFIG_NEEDS_FUNC_STRCMP
77 #define POK_CONFIG_NEEDS_FUNC_STRCMP 1
80 #ifndef POK_CONFIG_NEEDS_FUNC_STRNCMP
81 #define POK_CONFIG_NEEDS_FUNC_STRNCMP 1
84 #ifndef POK_CONFIG_NEEDS_FUNC_STRCPY
85 #define POK_CONFIG_NEEDS_FUNC_STRCPY 1
88 #ifndef POK_CONFIG_NEEDS_FUNC_STRNCPY
89 #define POK_CONFIG_NEEDS_FUNC_STRNCPY 1
92 #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
93 #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
96 #ifndef POK_CONFIG_NEEDS_FUNC_STREQ
97 #define POK_CONFIG_NEEDS_FUNC_STREQ 1
101 #ifdef POK_NEEDS_PROTOCOLS_DES
102 #ifndef POK_CONFIG_NEEDS_FUNC_MEMCMP
103 #define POK_CONFIG_NEEDS_FUNC_MEMCMP 1
106 #ifndef POK_CONFIG_NEEDS_FUNC_MEMCPY
107 #define POK_CONFIG_NEEDS_FUNC_MEMCPY 1
112 #ifdef POK_NEEDS_PROTOCOLS_BLOWFISH
113 #ifndef POK_CONFIG_NEEDS_FUNC_MEMCPY
114 #define POK_CONFIG_NEEDS_FUNC_MEMCPY 1
119 #ifdef POK_NEEDS_ARINC653_PROCESS
120 #define POK_NEEDS_THREADS 1
121 #ifndef POK_CONFIG_NEEDS_FUNC_STRCPY
122 #define POK_CONFIG_NEEDS_FUNC_STRCPY 1
125 #ifndef POK_CONFIG_NEEDS_FUNC_STRCMP
126 #define POK_CONFIG_NEEDS_FUNC_STRCMP 1
129 #ifndef POK_NEEDS_THREAD_ID
130 #define POK_NEEDS_THREAD_ID 1
134 #ifdef POK_NEEDS_ARINC653_PARTITION
135 #define POK_NEEDS_PARTITIONS 1
138 #ifdef POK_NEEDS_ARINC653_QUEUEING
139 #define POK_NEEDS_PORTS_QUEUEING 1
142 #ifdef POK_NEEDS_ARINC653_SAMPLING
143 #define POK_NEEDS_PORTS_SAMPLING 1
147 #ifdef POK_NEEDS_ARINC653_EVENT
148 #ifndef POK_CONFIG_NEEDS_FUNC_STRNCMP
149 #define POK_CONFIG_NEEDS_FUNC_STRNCMP 1
152 #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
153 #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
158 #ifdef POK_NEEDS_ARINC653_BUFFER
159 #ifndef POK_NEEDS_MIDDLEWARE
160 #define POK_NEEDS_MIDDLEWARE 1
163 #ifndef POK_NEEDS_BUFFERS
164 #define POK_NEEDS_BUFFERS 1
167 #ifndef POK_CONFIG_NEEDS_FUNC_STREQ
168 #define POK_CONFIG_NEEDS_FUNC_STREQ 1
171 #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
172 #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
175 #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
176 #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
181 #ifdef POK_NEEDS_ARINC653_BLACKBOARD
182 #ifndef POK_NEEDS_MIDDLEWARE
183 #define POK_NEEDS_MIDDLEWARE 1
186 #ifndef POK_NEEDS_BLACKBOARDS
187 #define POK_NEEDS_BLACKBOARDS 1
190 #ifndef POK_CONFIG_NEEDS_FUNC_STREQ
191 #define POK_CONFIG_NEEDS_FUNC_STREQ 1
194 #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
195 #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
198 #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
199 #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
203 #ifdef POK_NEEDS_ARINC653_SEMAPHORE
204 #define POK_NEEDS_SEMAPHORES 1
206 #ifndef POK_CONFIG_NEEDS_FUNC_STRNCMP
207 #define POK_CONFIG_NEEDS_FUNC_STRNCMP 1
210 #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
211 #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
215 #ifdef POK_NEEDS_ARINC653_ERROR
216 #ifndef POK_NEEDS_ERROR_HANDLING
217 #define POK_NEEDS_ERROR_HANDLING 1
220 #ifndef POK_NEEDS_FUNC_MEMCPY
221 #define POK_CONFIG_NEEDS_FUNC_MEMCPY 1
225 #if defined (POK_NEEDS_ERROR_HANDLING)
226 #ifndef POK_NEEDS_FUNCTION_TIME_GETTICK
227 #define POK_NEEDS_FUNCTION_TIME_GETTICK
231 #ifdef POK_NEEDS_MUTEXES
232 #ifndef POK_NEEDS_FUNCTION_TIME_GETTICK
233 #define POK_NEEDS_FUNCTION_TIME_GETTICK
237 #ifdef POK_NEEDS_EVENTS
238 #ifndef POK_NEEDS_FUNCTION_TIME_GETTICK
239 #define POK_NEEDS_FUNCTION_TIME_GETTICK
244 #ifdef POK_NEEDS_BUFFERS
245 #ifndef POK_NEEDS_FUNCTION_TIME_GETTICK
246 #define POK_NEEDS_FUNCTION_TIME_GETTICK
249 #ifndef POK_NEEDS_FUNC_MEMCPY
250 #define POK_CONFIG_NEEDS_FUNC_MEMCPY 1
253 #ifndef POK_CONFIG_NEEDS_FUNC_STREQ
254 #define POK_CONFIG_NEEDS_FUNC_STREQ 1
257 #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
258 #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
262 #ifdef POK_NEEDS_BLACKBOARDS
263 #ifndef POK_NEEDS_FUNCTION_TIME_GETTICK
264 #define POK_NEEDS_FUNCTION_TIME_GETTICK 1
267 #ifndef POK_CONFIG_NEEDS_FUNC_STREQ
268 #define POK_CONFIG_NEEDS_FUNC_STREQ 1
271 #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
272 #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
275 #ifndef POK_NEEDS_FUNC_MEMCPY
276 #define POK_CONFIG_NEEDS_FUNC_MEMCPY 1
280 #ifdef POK_NEEDS_TIME
281 #ifndef POK_NEEDS_FUNCTION_TIME_GETTICK
282 #define POK_NEEDS_FUNCTION_TIME_GETTICK 1
289 #ifndef POK_CONFIG_OPTIMIZE_FOR_GENERATED_CODE
292 #ifndef POK_NEEDS_FUNCTIONS_TIME_GETTICK
293 #define POK_NEEDS_FUNCTION_TIME_GETTICK 1
296 #ifndef POK_NEEDS_SEMAPHORS
297 #define POK_NEEDS_SEMAPHORES 1
300 #ifndef POK_NEEDS_THREADS
301 #define POK_NEEDS_THREADS 1
304 #define POK_NEEDS_PORTS_QUEUEING 1
305 #define POK_NEEDS_PARTITIONS 1
306 #define POK_NEEDS_BUFFERS 1
307 #define POK_NEEDS_BLACKBOARDS 1
308 #define POK_NEEDS_SEMAPHORES 1
311 #define POK_CONFIG_NEEDS_FUNC_MEMCPY 1
312 #define POK_CONFIG_NEEDS_FUNC_MEMSET 1
313 #define POK_CONFIG_NEEDS_FUNC_MEMCMP 1
314 #define POK_CONFIG_NEEDS_FUNC_STRCMP 1
315 #define POK_CONFIG_NEEDS_FUNC_STRNCMP 1
316 #define POK_CONFIG_NEEDS_FUNC_STRCPY 1
317 #define POK_CONFIG_NEEDS_FUNC_STRNCPY 1
318 #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
319 #define POK_CONFIG_NEEDS_FUNC_STREQ 1
320 #define POK_CONFIG_NEEDS_FUNC_ITOA 1
321 #define POK_CONFIG_NEEDS_FUNC_UDIVDI3 1
326 #define POK_NEEDS_ALLOCATOR 1
329 #define POK_CONFIG_NEEDS_FUNC_RAND 1
330 #define POK_CONFIG_NEEDS_FUNC_MALLOC 1
331 #define POK_CONFIG_NEEDS_FUNC_CALLOC 1
332 #define POK_CONFIG_NEEDS_FUNC_FREE 1