POK
dependencies.h
1 /*
2  * POK header
3  *
4  * The following file is a part of the POK project. Any modification should
5  * made according to the POK licence. You CANNOT use this file or a part of
6  * this file is this part of a file for your own project
7  *
8  * For more information on the POK licence, please see our LICENCE FILE
9  *
10  * Please follow the coding guidelines described in doc/CODING_GUIDELINES
11  *
12  * Copyright (c) 2007-2009 POK team
13  *
14  * Created by julien on Mon Apr 6 21:33:22 2009
15  */
16 
17 #ifndef __LIBPOK_DEPENDENCIES_H__
18 #define __LIBPOK_DEPENDENCIES_H__
19 
20 
21 #ifdef POK_CONFIG_OPTIMIZE_FOR_GENERATED_CODE
22 
23 #ifdef POK_NEEDS_LIBC_STDIO
24  #ifndef POK_CONFIG_NEEDS_FUNC_MEMCPY
25  #define POK_CONFIG_NEEDS_FUNC_MEMCPY 1
26  #endif
27 
28  #ifndef POK_CONFIG_NEEDS_FUNC_PRINTF
29  #define POK_CONFIG_NEEDS_FUNC_PRINTF 1
30  #endif
31 
32  #ifndef POK_CONFIG_NEEDS_FUNC_VPRINTF
33  #define POK_CONFIG_NEEDS_FUNC_VPRINTF 1
34  #endif
35 #endif
36 
37 #ifdef POK_NEEDS_LIBC_STDLIB
38  #ifndef POK_CONFIG_NEEDS_FUNC_MEMCPY
39  #define POK_CONFIG_NEEDS_FUNC_MEMCPY 1
40  #endif
41 
42  #ifndef POK_NEEDS_ALLOCATOR
43  #define POK_NEEDS_ALLOCATOR 1
44  #endif
45 
46  #ifndef POK_CONFIG_NEEDS_FUNC_RAND
47  #define POK_CONFIG_NEEDS_FUNC_RAND 1
48  #endif
49 
50  #ifndef POK_CONFIG_NEEDS_FUNC_MALLOC
51  #define POK_CONFIG_NEEDS_FUNC_MALLOC 1
52  #endif
53 
54  #ifndef POK_CONFIG_NEEDS_FUNC_CALLOC
55  #define POK_CONFIG_NEEDS_FUNC_CALLOC 1
56  #endif
57 
58  #ifndef POK_CONFIG_NEEDS_FUNC_FREE
59  #define POK_CONFIG_NEEDS_FUNC_FREE 1
60  #endif
61 #endif /* POK_NEEDS_STDLIB */
62 
63 #ifdef POK_NEEDS_STRING
64  #ifndef POK_CONFIG_NEEDS_FUNC_MEMCPY
65  #define POK_CONFIG_NEEDS_FUNC_MEMCPY 1
66  #endif
67 
68  #ifndef POK_CONFIG_NEEDS_FUNC_MEMSET
69  #define POK_CONFIG_NEEDS_FUNC_MEMSET 1
70  #endif
71 
72  #ifndef POK_CONFIG_NEEDS_FUNC_MEMCMP
73  #define POK_CONFIG_NEEDS_FUNC_MEMCMP 1
74  #endif
75 
76  #ifndef POK_CONFIG_NEEDS_FUNC_STRCMP
77  #define POK_CONFIG_NEEDS_FUNC_STRCMP 1
78  #endif
79 
80  #ifndef POK_CONFIG_NEEDS_FUNC_STRNCMP
81  #define POK_CONFIG_NEEDS_FUNC_STRNCMP 1
82  #endif
83 
84  #ifndef POK_CONFIG_NEEDS_FUNC_STRCPY
85  #define POK_CONFIG_NEEDS_FUNC_STRCPY 1
86  #endif
87 
88  #ifndef POK_CONFIG_NEEDS_FUNC_STRNCPY
89  #define POK_CONFIG_NEEDS_FUNC_STRNCPY 1
90  #endif
91 
92  #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
93  #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
94  #endif
95 
96  #ifndef POK_CONFIG_NEEDS_FUNC_STREQ
97  #define POK_CONFIG_NEEDS_FUNC_STREQ 1
98  #endif
99 #endif /* POK_NEEDS_STRING */
100 
101 #ifdef POK_NEEDS_PROTOCOLS_DES
102  #ifndef POK_CONFIG_NEEDS_FUNC_MEMCMP
103  #define POK_CONFIG_NEEDS_FUNC_MEMCMP 1
104  #endif
105 
106  #ifndef POK_CONFIG_NEEDS_FUNC_MEMCPY
107  #define POK_CONFIG_NEEDS_FUNC_MEMCPY 1
108  #endif
109 #endif
110 
111 
112 #ifdef POK_NEEDS_PROTOCOLS_BLOWFISH
113  #ifndef POK_CONFIG_NEEDS_FUNC_MEMCPY
114  #define POK_CONFIG_NEEDS_FUNC_MEMCPY 1
115  #endif
116 #endif
117 
118 
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
123  #endif
124 
125  #ifndef POK_CONFIG_NEEDS_FUNC_STRCMP
126  #define POK_CONFIG_NEEDS_FUNC_STRCMP 1
127  #endif
128 
129  #ifndef POK_NEEDS_THREAD_ID
130  #define POK_NEEDS_THREAD_ID 1
131  #endif
132 #endif
133 
134 #ifdef POK_NEEDS_ARINC653_PARTITION
135  #define POK_NEEDS_PARTITIONS 1
136 #endif
137 
138 #ifdef POK_NEEDS_ARINC653_QUEUEING
139  #define POK_NEEDS_PORTS_QUEUEING 1
140 #endif
141 
142 #ifdef POK_NEEDS_ARINC653_SAMPLING
143  #define POK_NEEDS_PORTS_SAMPLING 1
144 #endif
145 
146 
147 #ifdef POK_NEEDS_ARINC653_EVENT
148  #ifndef POK_CONFIG_NEEDS_FUNC_STRNCMP
149  #define POK_CONFIG_NEEDS_FUNC_STRNCMP 1
150  #endif
151 
152  #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
153  #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
154  #endif
155 #endif
156 
157 
158 #ifdef POK_NEEDS_ARINC653_BUFFER
159  #ifndef POK_NEEDS_MIDDLEWARE
160  #define POK_NEEDS_MIDDLEWARE 1
161  #endif
162 
163  #ifndef POK_NEEDS_BUFFERS
164  #define POK_NEEDS_BUFFERS 1
165  #endif
166 
167  #ifndef POK_CONFIG_NEEDS_FUNC_STREQ
168  #define POK_CONFIG_NEEDS_FUNC_STREQ 1
169  #endif
170 
171  #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
172  #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
173  #endif
174 
175  #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
176  #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
177  #endif
178 
179 #endif
180 
181 #ifdef POK_NEEDS_ARINC653_BLACKBOARD
182  #ifndef POK_NEEDS_MIDDLEWARE
183  #define POK_NEEDS_MIDDLEWARE 1
184  #endif
185 
186  #ifndef POK_NEEDS_BLACKBOARDS
187  #define POK_NEEDS_BLACKBOARDS 1
188  #endif
189 
190  #ifndef POK_CONFIG_NEEDS_FUNC_STREQ
191  #define POK_CONFIG_NEEDS_FUNC_STREQ 1
192  #endif
193 
194  #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
195  #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
196  #endif
197 
198  #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
199  #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
200  #endif
201 #endif
202 
203 #ifdef POK_NEEDS_ARINC653_SEMAPHORE
204  #define POK_NEEDS_SEMAPHORES 1
205 
206  #ifndef POK_CONFIG_NEEDS_FUNC_STRNCMP
207  #define POK_CONFIG_NEEDS_FUNC_STRNCMP 1
208  #endif
209 
210  #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
211  #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
212  #endif
213 #endif
214 
215 #ifdef POK_NEEDS_ARINC653_ERROR
216  #ifndef POK_NEEDS_ERROR_HANDLING
217  #define POK_NEEDS_ERROR_HANDLING 1
218  #endif
219 
220  #ifndef POK_NEEDS_FUNC_MEMCPY
221  #define POK_CONFIG_NEEDS_FUNC_MEMCPY 1
222  #endif
223 #endif
224 
225 #if defined (POK_NEEDS_ERROR_HANDLING)
226  #ifndef POK_NEEDS_FUNCTION_TIME_GETTICK
227  #define POK_NEEDS_FUNCTION_TIME_GETTICK
228  #endif
229 #endif
230 
231 #ifdef POK_NEEDS_MUTEXES
232  #ifndef POK_NEEDS_FUNCTION_TIME_GETTICK
233  #define POK_NEEDS_FUNCTION_TIME_GETTICK
234  #endif
235 #endif
236 
237 #ifdef POK_NEEDS_EVENTS
238  #ifndef POK_NEEDS_FUNCTION_TIME_GETTICK
239  #define POK_NEEDS_FUNCTION_TIME_GETTICK
240  #endif
241 #endif
242 
243 
244 #ifdef POK_NEEDS_BUFFERS
245  #ifndef POK_NEEDS_FUNCTION_TIME_GETTICK
246  #define POK_NEEDS_FUNCTION_TIME_GETTICK
247  #endif
248 
249  #ifndef POK_NEEDS_FUNC_MEMCPY
250  #define POK_CONFIG_NEEDS_FUNC_MEMCPY 1
251  #endif
252 
253  #ifndef POK_CONFIG_NEEDS_FUNC_STREQ
254  #define POK_CONFIG_NEEDS_FUNC_STREQ 1
255  #endif
256 
257  #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
258  #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
259  #endif
260 #endif
261 
262 #ifdef POK_NEEDS_BLACKBOARDS
263  #ifndef POK_NEEDS_FUNCTION_TIME_GETTICK
264  #define POK_NEEDS_FUNCTION_TIME_GETTICK 1
265  #endif
266 
267  #ifndef POK_CONFIG_NEEDS_FUNC_STREQ
268  #define POK_CONFIG_NEEDS_FUNC_STREQ 1
269  #endif
270 
271  #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
272  #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
273  #endif
274 
275  #ifndef POK_NEEDS_FUNC_MEMCPY
276  #define POK_CONFIG_NEEDS_FUNC_MEMCPY 1
277  #endif
278 #endif
279 
280 #ifdef POK_NEEDS_TIME
281  #ifndef POK_NEEDS_FUNCTION_TIME_GETTICK
282  #define POK_NEEDS_FUNCTION_TIME_GETTICK 1
283  #endif
284 #endif
285 #endif /* POK_CONFIG_OPTIMIZE_FOR_GENERATED_CODE */
286 
287 /*************************************************/
288 
289 #ifndef POK_CONFIG_OPTIMIZE_FOR_GENERATED_CODE
290 
291 /* core functions */
292 #ifndef POK_NEEDS_FUNCTIONS_TIME_GETTICK
293 #define POK_NEEDS_FUNCTION_TIME_GETTICK 1
294 #endif
295 
296 #ifndef POK_NEEDS_SEMAPHORS
297 #define POK_NEEDS_SEMAPHORES 1
298 #endif
299 
300 #ifndef POK_NEEDS_THREADS
301 #define POK_NEEDS_THREADS 1
302 #endif
303 
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
309 
310 /* string.h functions */
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
322 
323 /*
324  * Memory allocator, core partition functions.
325  */
326 #define POK_NEEDS_ALLOCATOR 1
327 
328 /* stdlib.h functions */
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
333 
334 #endif /* POK_CONFIG_OPTIMIZE_FOR_GENERATED_CODE */
335 
336 #endif