1 | .. comment SPDX-License-Identifier: CC-BY-SA-4.0 |
---|
2 | |
---|
3 | .. COMMENT: COPYRIGHT (c) 1988-2008. |
---|
4 | .. COMMENT: On-Line Applications Research Corporation (OAR). |
---|
5 | .. COMMENT: All rights reserved. |
---|
6 | |
---|
7 | .. index:: configuring a system |
---|
8 | .. _Configuring a System: |
---|
9 | |
---|
10 | Configuring a System |
---|
11 | ******************** |
---|
12 | |
---|
13 | Introduction |
---|
14 | ============ |
---|
15 | |
---|
16 | RTEMS must be configured for an application. This configuration encompasses a |
---|
17 | variety of information including the length of each clock tick, the maximum |
---|
18 | number of each information RTEMS object that can be created, the application |
---|
19 | initialization tasks, the task scheduling algorithm to be used, and the device |
---|
20 | drivers in the application. |
---|
21 | |
---|
22 | Although this information is contained in data structures that are used by |
---|
23 | RTEMS at system initialization time, the data structures themselves must not be |
---|
24 | generated by hand. RTEMS provides a set of macros system which provides a |
---|
25 | simple standard mechanism to automate the generation of these structures. |
---|
26 | |
---|
27 | .. index:: confdefs.h |
---|
28 | .. index:: <rtems/confdefs.h> |
---|
29 | |
---|
30 | The RTEMS header file ``<rtems/confdefs.h>`` is at the core of the automatic |
---|
31 | generation of system configuration. It is based on the idea of setting macros |
---|
32 | which define configuration parameters of interest to the application and |
---|
33 | defaulting or calculating all others. This variety of macros can automatically |
---|
34 | produce all of the configuration data required for an RTEMS application. |
---|
35 | |
---|
36 | .. sidebar: Trivia: |
---|
37 | |
---|
38 | The term ``confdefs`` is shorthand for a *Configuration Defaults*. |
---|
39 | |
---|
40 | As a general rule, application developers only specify values for the |
---|
41 | configuration parameters of interest to them. They define what resources or |
---|
42 | features they require. In most cases, when a parameter is not specified, it |
---|
43 | defaults to zero (0) instances, a standards compliant value, or disabled as |
---|
44 | appropriate. For example, by default there will be 256 task priority levels but |
---|
45 | this can be lowered by the application. This number of priority levels is |
---|
46 | required to be compliant with the RTEID/ORKID standards upon which the Classic |
---|
47 | API is based. There are similar cases where the default is selected to be |
---|
48 | compliant with with the POSIX standard. |
---|
49 | |
---|
50 | For each configuration parameter in the configuration tables, the macro |
---|
51 | corresponding to that field is discussed. The RTEMS Maintainers expect that all |
---|
52 | systems can be easily configured using the ``<rtems/confdefs.h>`` mechanism and |
---|
53 | that using this mechanism will avoid internal RTEMS configuration changes |
---|
54 | impacting applications. |
---|
55 | |
---|
56 | Default Value Selection Philosophy |
---|
57 | ================================== |
---|
58 | |
---|
59 | The user should be aware that the defaults are intentionally set as low as |
---|
60 | possible. By default, no application resources are configured. The |
---|
61 | ``<rtems/confdefs.h>`` file ensures that at least one application task or |
---|
62 | thread is configured and that at least one of the initialization task/thread |
---|
63 | tables is configured. |
---|
64 | |
---|
65 | .. _Sizing the RTEMS Workspace: |
---|
66 | |
---|
67 | Sizing the RTEMS Workspace |
---|
68 | ========================== |
---|
69 | |
---|
70 | The RTEMS Workspace is a user-specified block of memory reserved for use by |
---|
71 | RTEMS. The application should NOT modify this memory. This area consists |
---|
72 | primarily of the RTEMS data structures whose exact size depends upon the values |
---|
73 | specified in the Configuration Table. In addition, task stacks and floating |
---|
74 | point context areas are dynamically allocated from the RTEMS Workspace. |
---|
75 | |
---|
76 | The ``<rtems/confdefs.h>`` mechanism calculates the size of the RTEMS Workspace |
---|
77 | automatically. It assumes that all tasks are floating point and that all will |
---|
78 | be allocated the minimum stack space. This calculation includes the amount of |
---|
79 | memory that will be allocated for internal use by RTEMS. The automatic |
---|
80 | calculation may underestimate the workspace size truly needed by the |
---|
81 | application, in which case one can use the ``CONFIGURE_MEMORY_OVERHEAD`` macro |
---|
82 | to add a value to the estimate. See :ref:`Specify Memory Overhead` for more |
---|
83 | details. |
---|
84 | |
---|
85 | The memory area for the RTEMS Workspace is determined by the BSP. In case the |
---|
86 | RTEMS Workspace is too large for the available memory, then a fatal run-time |
---|
87 | error occurs and the system terminates. |
---|
88 | |
---|
89 | The file ``<rtems/confdefs.h>`` will calculate the value of the |
---|
90 | ``work_space_size`` parameter of the Configuration Table. There are many |
---|
91 | parameters the application developer can specify to help ``<rtems/confdefs.h>`` |
---|
92 | in its calculations. Correctly specifying the application requirements via |
---|
93 | parameters such as ``CONFIGURE_EXTRA_TASK_STACKS`` and |
---|
94 | ``CONFIGURE_MAXIMUM_TASKS`` is critical for production software. |
---|
95 | |
---|
96 | For each class of objects, the allocation can operate in one of two ways. The |
---|
97 | default way has an ceiling on the maximum number of object instances which can |
---|
98 | concurrently exist in the system. Memory for all instances of that object class |
---|
99 | is reserved at system initialization. The second way allocates memory for an |
---|
100 | initial number of objects and increases the current allocation by a fixed |
---|
101 | increment when required. Both ways allocate space from inside the RTEMS |
---|
102 | Workspace. |
---|
103 | |
---|
104 | See :ref:`Unlimited Objects` for more details about the second way, which |
---|
105 | allows for dynamic allocation of objects and therefore does not provide |
---|
106 | determinism. This mode is useful mostly for when the number of objects cannot |
---|
107 | be determined ahead of time or when porting software for which you do not know |
---|
108 | the object requirements. |
---|
109 | |
---|
110 | The space needed for stacks and for RTEMS objects will vary from one version of |
---|
111 | RTEMS and from one target processor to another. Therefore it is safest to use |
---|
112 | ``<rtems/confdefs.h>`` and specify your application's requirements in terms of |
---|
113 | the numbers of objects and multiples of ``RTEMS_MINIMUM_STACK_SIZE``, as far as |
---|
114 | is possible. The automatic estimates of space required will in general change |
---|
115 | when: |
---|
116 | |
---|
117 | - a configuration parameter is changed, |
---|
118 | |
---|
119 | - task or interrupt stack sizes change, |
---|
120 | |
---|
121 | - the floating point attribute of a task changes, |
---|
122 | |
---|
123 | - task floating point attribute is altered, |
---|
124 | |
---|
125 | - RTEMS is upgraded, or |
---|
126 | |
---|
127 | - the target processor is changed. |
---|
128 | |
---|
129 | Failure to provide enough space in the RTEMS Workspace may result in fatal |
---|
130 | run-time errors terminating the system. |
---|
131 | |
---|
132 | Potential Issues with RTEMS Workspace Size Estimation |
---|
133 | ===================================================== |
---|
134 | |
---|
135 | The ``<rtems/confdefs.h>`` file estimates the amount of memory required for the |
---|
136 | RTEMS Workspace. This estimate is only as accurate as the information given to |
---|
137 | ``<rtems/confdefs.h>`` and may be either too high or too low for a variety of |
---|
138 | reasons. Some of the reasons that ``<rtems/confdefs.h>`` may reserve too much |
---|
139 | memory for RTEMS are: |
---|
140 | |
---|
141 | - All tasks/threads are assumed to be floating point. |
---|
142 | |
---|
143 | Conversely, there are many more reasons that the resource estimate could be too |
---|
144 | low: |
---|
145 | |
---|
146 | - Task/thread stacks greater than minimum size must be accounted for explicitly |
---|
147 | by developer. |
---|
148 | |
---|
149 | - Memory for messages is not included. |
---|
150 | |
---|
151 | - Device driver requirements are not included. |
---|
152 | |
---|
153 | - Network stack requirements are not included. |
---|
154 | |
---|
155 | - Requirements for add-on libraries are not included. |
---|
156 | |
---|
157 | In general, ``<rtems/confdefs.h>`` is very accurate when given enough |
---|
158 | information. However, it is quite easy to use a library and forget to account |
---|
159 | for its resources. |
---|
160 | |
---|
161 | Format to be followed for making changes in this file |
---|
162 | ===================================================== |
---|
163 | |
---|
164 | MACRO NAME: |
---|
165 | Should be alphanumeric. Can have '_' (underscore). |
---|
166 | |
---|
167 | DATA TYPE: |
---|
168 | Please refer to all existing formats. |
---|
169 | |
---|
170 | RANGE: |
---|
171 | The range depends on the Data Type of the macro. |
---|
172 | |
---|
173 | - If the data type is of type task priority, then its value should be an |
---|
174 | integer in the range of 1 to 255. |
---|
175 | |
---|
176 | - If the data type is an integer, then it can have numbers, characters (in |
---|
177 | case the value is defined using another macro) and arithmetic operations |
---|
178 | (+, -, \*, /). |
---|
179 | |
---|
180 | - If the data type is a function pointer the first character should be an |
---|
181 | alphabet or an underscore. The rest of the string can be alphanumeric. |
---|
182 | |
---|
183 | - If the data type is RTEMS Attributes or RTEMS Mode then the string should |
---|
184 | be alphanumeric. |
---|
185 | |
---|
186 | - If the data type is RTEMS NAME then the value should be an integer>=0 or |
---|
187 | ``RTEMS_BUILD_NAME( 'U', 'I', '1', ' ' )`` |
---|
188 | |
---|
189 | DEFAULT VALUE: |
---|
190 | The default value should be in the following formats- Please note that the |
---|
191 | '.' (full stop) is necessary. |
---|
192 | |
---|
193 | - In case the value is not defined then: This is not defined by default. |
---|
194 | |
---|
195 | - If we know the default value then: The default value is XXX. |
---|
196 | |
---|
197 | - If the default value is BSP Specific then: This option is BSP specific. |
---|
198 | |
---|
199 | DESCRIPTION: |
---|
200 | The description of the macro. (No specific format) |
---|
201 | |
---|
202 | NOTES: |
---|
203 | Any further notes. (No specific format) |
---|
204 | |
---|
205 | Configuration Example |
---|
206 | ===================== |
---|
207 | |
---|
208 | In the following example, the configuration information for a system with a |
---|
209 | single message queue, four (4) tasks, and a timeslice of fifty (50) |
---|
210 | milliseconds is as follows: |
---|
211 | |
---|
212 | .. code-block:: c |
---|
213 | |
---|
214 | #include <bsp.h> |
---|
215 | #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER |
---|
216 | #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER |
---|
217 | #define CONFIGURE_MICROSECONDS_PER_TICK 1000 /* 1 millisecond */ |
---|
218 | #define CONFIGURE_TICKS_PER_TIMESLICE 50 /* 50 milliseconds */ |
---|
219 | #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
220 | #define CONFIGURE_MAXIMUM_TASKS 4 |
---|
221 | #define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 1 |
---|
222 | #define CONFIGURE_MESSAGE_BUFFER_MEMORY \ |
---|
223 | CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE(20, sizeof(struct USER_MESSAGE)) |
---|
224 | #define CONFIGURE_INIT |
---|
225 | #include <rtems/confdefs.h> |
---|
226 | |
---|
227 | In this example, only a few configuration parameters are specified. The impact |
---|
228 | of these are as follows: |
---|
229 | |
---|
230 | - The example specified ``CONFIGURE_RTEMS_INIT_TASK_TABLE`` but did not specify |
---|
231 | any additional parameters. This results in a configuration of an application |
---|
232 | which will begin execution of a single initialization task named ``Init`` |
---|
233 | which is non-preemptible and at priority one (1). |
---|
234 | |
---|
235 | - By specifying ``CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER``, this application |
---|
236 | is configured to have a clock tick device driver. Without a clock tick device |
---|
237 | driver, RTEMS has no way to know that time is passing and will be unable to |
---|
238 | support delays and wall time. Further configuration details about time are |
---|
239 | provided. Per ``CONFIGURE_MICROSECONDS_PER_TICK`` and |
---|
240 | ``CONFIGURE_TICKS_PER_TIMESLICE``, the user specified they wanted a clock |
---|
241 | tick to occur each millisecond, and that the length of a timeslice would be |
---|
242 | fifty (50) milliseconds. |
---|
243 | |
---|
244 | - By specifying ``CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER``, the application |
---|
245 | will include a console device driver. Although the console device driver may |
---|
246 | support a combination of multiple serial ports and display and keyboard |
---|
247 | combinations, it is only required to provide a single device named |
---|
248 | ``/dev/console``. This device will be used for Standard Input, Output and |
---|
249 | Error I/O Streams. Thus when ``CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER`` |
---|
250 | is specified, implicitly three (3) file descriptors are reserved for the |
---|
251 | Standard I/O Streams and those file descriptors are associated with |
---|
252 | ``/dev/console`` during initialization. All console devices are expected to |
---|
253 | support the POSIX*termios* interface. |
---|
254 | |
---|
255 | - The example above specifies via ``CONFIGURE_MAXIMUM_TASKS`` that the |
---|
256 | application requires a maximum of four (4) simultaneously existing Classic |
---|
257 | API tasks. Similarly, by specifying ``CONFIGURE_MAXIMUM_MESSAGE_QUEUES``, |
---|
258 | there may be a maximum of only one (1) concurrently existent Classic API |
---|
259 | message queues. |
---|
260 | |
---|
261 | - The most surprising configuration parameter in this example is the use of |
---|
262 | ``CONFIGURE_MESSAGE_BUFFER_MEMORY``. Message buffer memory is allocated from |
---|
263 | the RTEMS Workspace and must be accounted for. In this example, the single |
---|
264 | message queue will have up to twenty (20) messages of type ``struct |
---|
265 | USER_MESSAGE``. |
---|
266 | |
---|
267 | - The ``CONFIGURE_INIT`` constant must be defined in order to make |
---|
268 | ``<rtems/confdefs.h>`` instantiate the configuration data structures. This |
---|
269 | can only be defined in one source file per application that includes |
---|
270 | ``<rtems/confdefs.h>`` or the symbol table will be instantiated multiple |
---|
271 | times and linking errors produced. |
---|
272 | |
---|
273 | This example illustrates that parameters have default values. Among other |
---|
274 | things, the application implicitly used the following defaults: |
---|
275 | |
---|
276 | - All unspecified types of communications and synchronization objects in the |
---|
277 | Classic and POSIX Threads API have maximums of zero (0). |
---|
278 | |
---|
279 | - The filesystem will be the default filesystem which is the In-Memory File |
---|
280 | System (IMFS). |
---|
281 | |
---|
282 | - The application will have the default number of priority levels. |
---|
283 | |
---|
284 | - The minimum task stack size will be that recommended by RTEMS for the target |
---|
285 | architecture. |
---|
286 | |
---|
287 | .. _Unlimited Objects: |
---|
288 | |
---|
289 | Unlimited Objects |
---|
290 | ================= |
---|
291 | |
---|
292 | In real-time embedded systems the RAM is normally a limited, critical resource |
---|
293 | and dynamic allocation is avoided as much as possible to ensure predictable, |
---|
294 | deterministic execution times. For such cases, see :ref:`Sizing the RTEMS |
---|
295 | Workspace` for an overview of how to tune the size of the workspace. |
---|
296 | Frequently when users are porting software to RTEMS the precise resource |
---|
297 | requirements of the software is unknown. In these situations users do not need |
---|
298 | to control the size of the workspace very tightly because they just want to get |
---|
299 | the new software to run; later they can tune the workspace size as needed. |
---|
300 | |
---|
301 | The following object classes in the Classic API can be configured in unlimited |
---|
302 | mode: |
---|
303 | |
---|
304 | - Barriers |
---|
305 | |
---|
306 | - Message Queues |
---|
307 | |
---|
308 | - Partitions |
---|
309 | |
---|
310 | - Periods |
---|
311 | |
---|
312 | - Ports |
---|
313 | |
---|
314 | - Regions |
---|
315 | |
---|
316 | - Semaphores |
---|
317 | |
---|
318 | - Tasks |
---|
319 | |
---|
320 | - Timers |
---|
321 | |
---|
322 | Additionally, the following object classes from the POSIX API can be configured |
---|
323 | in unlimited mode: |
---|
324 | |
---|
325 | - Keys -- :c:func:`pthread_key_create` |
---|
326 | |
---|
327 | - Key Value Pairs -- :c:func:`pthread_setspecific` |
---|
328 | |
---|
329 | - Message Queues -- :c:func:`mq_open` |
---|
330 | |
---|
331 | - Named Semaphores -- :c:func:`sem_open` |
---|
332 | |
---|
333 | - Shared Memory -- :c:func:`shm_open` |
---|
334 | |
---|
335 | - Threads -- :c:func:`pthread_create` |
---|
336 | |
---|
337 | - Timers -- :c:func:`timer_create` |
---|
338 | |
---|
339 | .. warning:: |
---|
340 | |
---|
341 | The following object classes can *not* be configured in unlimited mode: |
---|
342 | |
---|
343 | - Drivers |
---|
344 | |
---|
345 | - File Descriptors |
---|
346 | |
---|
347 | - POSIX Queued Signals |
---|
348 | |
---|
349 | - User Extensions |
---|
350 | |
---|
351 | Due to the memory requirements of unlimited objects it is strongly recommended |
---|
352 | to use them only in combination with the unified work areas. See :ref:`Separate |
---|
353 | or Unified Work Areas` for more information on unified work areas. |
---|
354 | |
---|
355 | The following example demonstrates how the two simple configuration defines for |
---|
356 | unlimited objects and unified works areas can replace many seperate |
---|
357 | configuration defines for supported object classes: |
---|
358 | |
---|
359 | .. code-block:: c |
---|
360 | |
---|
361 | #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER |
---|
362 | #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER |
---|
363 | #define CONFIGURE_UNIFIED_WORK_AREAS |
---|
364 | #define CONFIGURE_UNLIMITED_OBJECTS |
---|
365 | #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
366 | #define CONFIGURE_INIT |
---|
367 | #include <rtems/confdefs.h> |
---|
368 | |
---|
369 | Users are cautioned that using unlimited objects is not recommended for |
---|
370 | production software unless the dynamic growth is absolutely required. It is |
---|
371 | generally considered a safer embedded systems programming practice to know the |
---|
372 | system limits rather than experience an out of memory error at an arbitrary and |
---|
373 | largely unpredictable time in the field. |
---|
374 | |
---|
375 | .. _Per Object Class Unlimited Object Instances: |
---|
376 | |
---|
377 | .. index:: rtems_resource_unlimited |
---|
378 | |
---|
379 | Per Object Class Unlimited Object Instances |
---|
380 | ------------------------------------------- |
---|
381 | |
---|
382 | When the number of objects is not known ahead of time, RTEMS provides an |
---|
383 | auto-extending mode that can be enabled individually for each object type by |
---|
384 | using the macro ``rtems_resource_unlimited``. This takes a value as a |
---|
385 | parameter, and is used to set the object maximum number field in an API |
---|
386 | Configuration table. The value is an allocation unit size. When RTEMS is |
---|
387 | required to grow the object table it is grown by this size. The kernel will |
---|
388 | return the object memory back to the RTEMS Workspace when an object is |
---|
389 | destroyed. The kernel will only return an allocated block of objects to the |
---|
390 | RTEMS Workspace if at least half the allocation size of free objects remain |
---|
391 | allocated. RTEMS always keeps one allocation block of objects allocated. Here |
---|
392 | is an example of using ``rtems_resource_unlimited``: |
---|
393 | |
---|
394 | .. code-block:: c |
---|
395 | |
---|
396 | #define CONFIGURE_MAXIMUM_TASKS rtems_resource_unlimited(5) |
---|
397 | |
---|
398 | .. index:: rtems_resource_is_unlimited |
---|
399 | .. index:: rtems_resource_maximum_per_allocation |
---|
400 | |
---|
401 | Object maximum specifications can be evaluated with the |
---|
402 | ``rtems_resource_is_unlimited`` and``rtems_resource_maximum_per_allocation`` |
---|
403 | macros. |
---|
404 | |
---|
405 | .. _Unlimited Object Instances: |
---|
406 | |
---|
407 | Unlimited Object Instances |
---|
408 | -------------------------- |
---|
409 | |
---|
410 | To ease the burden of developers who are porting new software RTEMS also |
---|
411 | provides the capability to make all object classes listed above operate in |
---|
412 | unlimited mode in a simple manner. The application developer is only |
---|
413 | responsible for enabling unlimited objects and specifying the allocation size. |
---|
414 | |
---|
415 | .. index:: CONFIGURE_UNLIMITED_OBJECTS |
---|
416 | |
---|
417 | .. _CONFIGURE_UNLIMITED_OBJECTS: |
---|
418 | |
---|
419 | CONFIGURE_UNLIMITED_OBJECTS |
---|
420 | --------------------------- |
---|
421 | |
---|
422 | CONSTANT: |
---|
423 | ``CONFIGURE_UNLIMITED_OBJECTS`` |
---|
424 | |
---|
425 | DATA TYPE: |
---|
426 | Boolean feature macro. |
---|
427 | |
---|
428 | RANGE: |
---|
429 | Defined or undefined. |
---|
430 | |
---|
431 | DEFAULT VALUE: |
---|
432 | This is not defined by default. |
---|
433 | |
---|
434 | DESCRIPTION: |
---|
435 | ``CONFIGURE_UNLIMITED_OBJECTS`` enables ``rtems_resource_unlimited`` mode |
---|
436 | for Classic API and POSIX API objects that do not already have a specific |
---|
437 | maximum limit defined. |
---|
438 | |
---|
439 | NOTES: |
---|
440 | When using unlimited objects, it is common practice to also specify |
---|
441 | ``CONFIGURE_UNIFIED_WORK_AREAS`` so the system operates with a single pool |
---|
442 | of memory for both RTEMS and application memory allocations. |
---|
443 | |
---|
444 | .. _CONFIGURE_UNLIMITED_ALLOCATION_SIZE: |
---|
445 | |
---|
446 | CONFIGURE_UNLIMITED_ALLOCATION_SIZE |
---|
447 | ----------------------------------- |
---|
448 | |
---|
449 | CONSTANT: |
---|
450 | ``CONFIGURE_UNLIMITED_ALLOCATION_SIZE`` |
---|
451 | |
---|
452 | DATA TYPE: |
---|
453 | Unsigned integer (``uint32_t``). |
---|
454 | |
---|
455 | RANGE: |
---|
456 | Positive. |
---|
457 | |
---|
458 | DEFAULT VALUE: |
---|
459 | If not defined and ``CONFIGURE_UNLIMITED_OBJECTS`` is defined, the default |
---|
460 | value is eight (8). |
---|
461 | |
---|
462 | DESCRIPTION: |
---|
463 | ``CONFIGURE_UNLIMITED_ALLOCATION_SIZE`` provides an allocation size to use |
---|
464 | for ``rtems_resource_unlimited`` when using |
---|
465 | ``CONFIGURE_UNLIMITED_OBJECTS``. |
---|
466 | |
---|
467 | NOTES: |
---|
468 | By allowing users to declare all resources as being unlimited the user can |
---|
469 | avoid identifying and limiting the resources |
---|
470 | used. ``CONFIGURE_UNLIMITED_OBJECTS`` does not support varying the |
---|
471 | allocation sizes for different objects; users who want that much control |
---|
472 | can define the ``rtems_resource_unlimited`` macros themselves. |
---|
473 | |
---|
474 | .. code-block:: c |
---|
475 | |
---|
476 | #define CONFIGURE_UNLIMITED_OBJECTS |
---|
477 | #define CONFIGURE_UNLIMITED_ALLOCATION_SIZE 5 |
---|
478 | |
---|
479 | Classic API Configuration |
---|
480 | ========================= |
---|
481 | |
---|
482 | This section defines the Classic API related system configuration parameters |
---|
483 | supported by ``<rtems/confdefs.h>``. |
---|
484 | |
---|
485 | .. index:: CONFIGURE_MAXIMUM_TASKS |
---|
486 | |
---|
487 | .. _CONFIGURE_MAXIMUM_TASKS: |
---|
488 | |
---|
489 | CONFIGURE_MAXIMUM_TASKS |
---|
490 | ----------------------- |
---|
491 | |
---|
492 | CONSTANT: |
---|
493 | ``CONFIGURE_MAXIMUM_TASKS`` |
---|
494 | |
---|
495 | DATA TYPE: |
---|
496 | Unsigned integer (``uint32_t``). |
---|
497 | |
---|
498 | RANGE: |
---|
499 | Zero or positive. |
---|
500 | |
---|
501 | DEFAULT VALUE: |
---|
502 | The default value is ``0``. |
---|
503 | |
---|
504 | DESCRIPTION: |
---|
505 | ``CONFIGURE_MAXIMUM_TASKS`` is the maximum number of Classic API Tasks that |
---|
506 | can be concurrently active. |
---|
507 | |
---|
508 | NOTES: |
---|
509 | This object class can be configured in unlimited allocation mode. |
---|
510 | |
---|
511 | The calculations for the required memory in the RTEMS Workspace for tasks |
---|
512 | assume that each task has a minimum stack size and has floating point |
---|
513 | support enabled. The configuration parameter |
---|
514 | ``CONFIGURE_EXTRA_TASK_STACKS`` is used to specify task stack requirements |
---|
515 | *ABOVE* the minimum size required. See :ref:`Reserve Task/Thread Stack |
---|
516 | Memory Above Minimum` for more information about |
---|
517 | ``CONFIGURE_EXTRA_TASK_STACKS``. |
---|
518 | |
---|
519 | The maximum number of POSIX threads is specified by |
---|
520 | ``CONFIGURE_MAXIMUM_POSIX_THREADS``. |
---|
521 | |
---|
522 | A future enhancement to ``<rtems/confdefs.h>`` could be to eliminate the |
---|
523 | assumption that all tasks have floating point enabled. This would require |
---|
524 | the addition of a new configuration parameter to specify the number of |
---|
525 | tasks which enable floating point support. |
---|
526 | |
---|
527 | .. COMMENT: XXX - Add xref to CONFIGURE_MAXIMUM_POSIX_THREADS. |
---|
528 | |
---|
529 | .. index:: CONFIGURE_MAXIMUM_TIMERS |
---|
530 | |
---|
531 | .. _CONFIGURE_MAXIMUM_TIMERS: |
---|
532 | |
---|
533 | CONFIGURE_MAXIMUM_TIMERS |
---|
534 | ------------------------ |
---|
535 | |
---|
536 | CONSTANT: |
---|
537 | ``CONFIGURE_MAXIMUM_TIMERS`` |
---|
538 | |
---|
539 | DATA TYPE: |
---|
540 | Unsigned integer (``uint32_t``). |
---|
541 | |
---|
542 | RANGE: |
---|
543 | Zero or positive. |
---|
544 | |
---|
545 | DEFAULT VALUE: |
---|
546 | The default value is 0. |
---|
547 | |
---|
548 | DESCRIPTION: |
---|
549 | ``CONFIGURE_MAXIMUM_TIMERS`` is the maximum number of Classic API Timers |
---|
550 | that can be concurrently active. |
---|
551 | |
---|
552 | NOTES: |
---|
553 | This object class can be configured in unlimited allocation mode. |
---|
554 | |
---|
555 | .. index:: CONFIGURE_MAXIMUM_SEMAPHORES |
---|
556 | |
---|
557 | .. _CONFIGURE_MAXIMUM_SEMAPHORES: |
---|
558 | |
---|
559 | CONFIGURE_MAXIMUM_SEMAPHORES |
---|
560 | ---------------------------- |
---|
561 | |
---|
562 | CONSTANT: |
---|
563 | ``CONFIGURE_MAXIMUM_SEMAPHORES`` |
---|
564 | |
---|
565 | DATA TYPE: |
---|
566 | Unsigned integer (``uint32_t``). |
---|
567 | |
---|
568 | RANGE: |
---|
569 | Zero or positive. |
---|
570 | |
---|
571 | DEFAULT VALUE: |
---|
572 | The default value is 0. |
---|
573 | |
---|
574 | DESCRIPTION: |
---|
575 | ``CONFIGURE_MAXIMUM_SEMAPHORES`` is the maximum number of Classic API |
---|
576 | Semaphores that can be concurrently active. |
---|
577 | |
---|
578 | NOTES: |
---|
579 | This object class can be configured in unlimited allocation mode. |
---|
580 | |
---|
581 | .. index:: CONFIGURE_MAXIMUM_MRSP_SEMAPHORES |
---|
582 | |
---|
583 | .. _CONFIGURE_MAXIMUM_MRSP_SEMAPHORES: |
---|
584 | |
---|
585 | CONFIGURE_MAXIMUM_MRSP_SEMAPHORES |
---|
586 | --------------------------------- |
---|
587 | |
---|
588 | CONSTANT: |
---|
589 | ``CONFIGURE_MAXIMUM_MRSP_SEMAPHORES`` |
---|
590 | |
---|
591 | DATA TYPE: |
---|
592 | Unsigned integer (``uint32_t``). |
---|
593 | |
---|
594 | RANGE: |
---|
595 | Zero or positive. |
---|
596 | |
---|
597 | DEFAULT VALUE: |
---|
598 | The default value is 0. |
---|
599 | |
---|
600 | DESCRIPTION: |
---|
601 | ``CONFIGURE_MAXIMUM_MRSP_SEMAPHORES`` is the maximum number of Classic API |
---|
602 | Semaphores using the :ref:`MrsP` that can be concurrently active. |
---|
603 | |
---|
604 | NOTES: |
---|
605 | This configuration option is only used in SMP configurations. In |
---|
606 | uni-processor configurations, the :ref:`PriorityCeiling` is used for MrsP |
---|
607 | semaphores and thus no extra memory is necessary. |
---|
608 | |
---|
609 | .. index:: CONFIGURE_MAXIMUM_MESSAGE_QUEUES |
---|
610 | |
---|
611 | .. _CONFIGURE_MAXIMUM_MESSAGE_QUEUES: |
---|
612 | |
---|
613 | CONFIGURE_MAXIMUM_MESSAGE_QUEUES |
---|
614 | -------------------------------- |
---|
615 | |
---|
616 | CONSTANT: |
---|
617 | ``CONFIGURE_MAXIMUM_MESSAGE_QUEUES`` |
---|
618 | |
---|
619 | DATA TYPE: |
---|
620 | Unsigned integer (``uint32_t``). |
---|
621 | |
---|
622 | RANGE: |
---|
623 | Zero or positive. |
---|
624 | |
---|
625 | DEFAULT VALUE: |
---|
626 | The default value is 0. |
---|
627 | |
---|
628 | DESCRIPTION: |
---|
629 | ``CONFIGURE_MAXIMUM_MESSAGE_QUEUES`` is the maximum number of Classic API |
---|
630 | Message Queues that can be concurrently active. |
---|
631 | |
---|
632 | NOTES: |
---|
633 | This object class can be configured in unlimited allocation mode. |
---|
634 | |
---|
635 | .. index:: CONFIGURE_MAXIMUM_BARRIERS |
---|
636 | |
---|
637 | .. _CONFIGURE_MAXIMUM_BARRIERS: |
---|
638 | |
---|
639 | CONFIGURE_MAXIMUM_BARRIERS |
---|
640 | -------------------------- |
---|
641 | |
---|
642 | CONSTANT: |
---|
643 | ``CONFIGURE_MAXIMUM_BARRIERS`` |
---|
644 | |
---|
645 | DATA TYPE: |
---|
646 | Unsigned integer (``uint32_t``). |
---|
647 | |
---|
648 | RANGE: |
---|
649 | Zero or positive. |
---|
650 | |
---|
651 | DEFAULT VALUE: |
---|
652 | The default value is 0. |
---|
653 | |
---|
654 | DESCRIPTION: |
---|
655 | ``CONFIGURE_MAXIMUM_BARRIERS`` is the maximum number of Classic API |
---|
656 | Barriers that can be concurrently active. |
---|
657 | |
---|
658 | NOTES: |
---|
659 | This object class can be configured in unlimited allocation mode. |
---|
660 | |
---|
661 | .. index:: CONFIGURE_MAXIMUM_PERIODS |
---|
662 | |
---|
663 | .. _CONFIGURE_MAXIMUM_PERIODS: |
---|
664 | |
---|
665 | CONFIGURE_MAXIMUM_PERIODS |
---|
666 | ------------------------- |
---|
667 | |
---|
668 | CONSTANT: |
---|
669 | ``CONFIGURE_MAXIMUM_PERIODS`` |
---|
670 | |
---|
671 | DATA TYPE: |
---|
672 | Unsigned integer (``uint32_t``). |
---|
673 | |
---|
674 | RANGE: |
---|
675 | Zero or positive. |
---|
676 | |
---|
677 | DEFAULT VALUE: |
---|
678 | The default value is 0. |
---|
679 | |
---|
680 | DESCRIPTION: |
---|
681 | ``CONFIGURE_MAXIMUM_PERIODS`` is the maximum number of Classic API Periods |
---|
682 | that can be concurrently active. |
---|
683 | |
---|
684 | NOTES: |
---|
685 | This object class can be configured in unlimited allocation mode. |
---|
686 | |
---|
687 | .. index:: CONFIGURE_MAXIMUM_PARTITIONS |
---|
688 | |
---|
689 | .. _CONFIGURE_MAXIMUM_PARTITIONS: |
---|
690 | |
---|
691 | CONFIGURE_MAXIMUM_PARTITIONS |
---|
692 | ---------------------------- |
---|
693 | |
---|
694 | CONSTANT: |
---|
695 | ``CONFIGURE_MAXIMUM_PARTITIONS`` |
---|
696 | |
---|
697 | DATA TYPE: |
---|
698 | Unsigned integer (``uint32_t``). |
---|
699 | |
---|
700 | RANGE: |
---|
701 | Zero or positive. |
---|
702 | |
---|
703 | DEFAULT VALUE: |
---|
704 | The default value is 0. |
---|
705 | |
---|
706 | DESCRIPTION: |
---|
707 | ``CONFIGURE_MAXIMUM_PARTITIONS`` is the maximum number of Classic API |
---|
708 | Partitions that can be concurrently active. |
---|
709 | |
---|
710 | NOTES: |
---|
711 | This object class can be configured in unlimited allocation mode. |
---|
712 | |
---|
713 | .. index:: CONFIGURE_MAXIMUM_REGIONS |
---|
714 | |
---|
715 | .. _CONFIGURE_MAXIMUM_REGIONS: |
---|
716 | |
---|
717 | CONFIGURE_MAXIMUM_REGIONS |
---|
718 | ------------------------- |
---|
719 | |
---|
720 | CONSTANT: |
---|
721 | ``CONFIGURE_MAXIMUM_REGIONS`` |
---|
722 | |
---|
723 | DATA TYPE: |
---|
724 | Unsigned integer (``uint32_t``). |
---|
725 | |
---|
726 | RANGE: |
---|
727 | Zero or positive. |
---|
728 | |
---|
729 | DEFAULT VALUE: |
---|
730 | The default value is 0. |
---|
731 | |
---|
732 | DESCRIPTION: |
---|
733 | ``CONFIGURE_MAXIMUM_REGIONS`` is the maximum number of Classic API Regions |
---|
734 | that can be concurrently active. |
---|
735 | |
---|
736 | NOTES: |
---|
737 | None. |
---|
738 | |
---|
739 | .. index:: CONFIGURE_MAXIMUM_PORTS |
---|
740 | |
---|
741 | .. _CONFIGURE_MAXIMUM_PORTS: |
---|
742 | |
---|
743 | CONFIGURE_MAXIMUM_PORTS |
---|
744 | ----------------------- |
---|
745 | |
---|
746 | CONSTANT: |
---|
747 | ``CONFIGURE_MAXIMUM_PORTS`` |
---|
748 | |
---|
749 | DATA TYPE: |
---|
750 | Unsigned integer (``uint32_t``). |
---|
751 | |
---|
752 | RANGE: |
---|
753 | Zero or positive. |
---|
754 | |
---|
755 | DEFAULT VALUE: |
---|
756 | The default value is 0. |
---|
757 | |
---|
758 | DESCRIPTION: |
---|
759 | ``CONFIGURE_MAXIMUM_PORTS`` is the maximum number of Classic API Ports that |
---|
760 | can be concurrently active. |
---|
761 | |
---|
762 | NOTES: |
---|
763 | This object class can be configured in unlimited allocation mode. |
---|
764 | |
---|
765 | .. index:: CONFIGURE_MAXIMUM_USER_EXTENSIONS |
---|
766 | |
---|
767 | .. _CONFIGURE_MAXIMUM_USER_EXTENSIONS: |
---|
768 | |
---|
769 | CONFIGURE_MAXIMUM_USER_EXTENSIONS |
---|
770 | --------------------------------- |
---|
771 | |
---|
772 | CONSTANT: |
---|
773 | ``CONFIGURE_MAXIMUM_USER_EXTENSIONS`` |
---|
774 | |
---|
775 | DATA TYPE: |
---|
776 | Unsigned integer (``uint32_t``). |
---|
777 | |
---|
778 | RANGE: |
---|
779 | Zero or positive. |
---|
780 | |
---|
781 | DEFAULT VALUE: |
---|
782 | The default value is 0. |
---|
783 | |
---|
784 | DESCRIPTION: |
---|
785 | ``CONFIGURE_MAXIMUM_USER_EXTENSIONS`` is the maximum number of Classic API |
---|
786 | User Extensions that can be concurrently active. |
---|
787 | |
---|
788 | NOTES: |
---|
789 | This object class can be configured in unlimited allocation mode. |
---|
790 | |
---|
791 | Classic API Initialization Tasks Table Configuration |
---|
792 | ==================================================== |
---|
793 | |
---|
794 | The ``<rtems/confdefs.h>`` configuration system can automatically generate an |
---|
795 | Initialization Tasks Table named ``Initialization_tasks`` with a single entry. |
---|
796 | The following parameters control the generation of that table. |
---|
797 | |
---|
798 | .. index:: CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
799 | |
---|
800 | .. _CONFIGURE_RTEMS_INIT_TASKS_TABLE: |
---|
801 | |
---|
802 | CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
803 | -------------------------------- |
---|
804 | |
---|
805 | CONSTANT: |
---|
806 | ``CONFIGURE_RTEMS_INIT_TASKS_TABLE`` |
---|
807 | |
---|
808 | DATA TYPE: |
---|
809 | Boolean feature macro. |
---|
810 | |
---|
811 | RANGE: |
---|
812 | Defined or undefined. |
---|
813 | |
---|
814 | DEFAULT VALUE: |
---|
815 | This is not defined by default. |
---|
816 | |
---|
817 | DESCRIPTION: |
---|
818 | ``CONFIGURE_RTEMS_INIT_TASKS_TABLE`` is defined if the user wishes to use a |
---|
819 | Classic RTEMS API Initialization Task Table. The table built by |
---|
820 | ``<rtems/confdefs.h>`` specifies the parameters for a single task. This is |
---|
821 | sufficient for applications which initialization the system from a single |
---|
822 | task. |
---|
823 | |
---|
824 | By default, this field is not defined as the user MUST select their own API |
---|
825 | for initialization tasks. |
---|
826 | |
---|
827 | NOTES: |
---|
828 | The application may choose to use the initialization tasks or threads table |
---|
829 | from another API. |
---|
830 | |
---|
831 | A compile time error will be generated if the user does not configure any |
---|
832 | initialization tasks or threads. |
---|
833 | |
---|
834 | .. index:: CONFIGURE_INIT_TASK_ENTRY_POINT |
---|
835 | |
---|
836 | .. _CONFIGURE_INIT_TASK_ENTRY_POINT: |
---|
837 | |
---|
838 | CONFIGURE_INIT_TASK_ENTRY_POINT |
---|
839 | ------------------------------- |
---|
840 | |
---|
841 | CONSTANT: |
---|
842 | ``CONFIGURE_INIT_TASK_ENTRY_POINT`` |
---|
843 | |
---|
844 | DATA TYPE: |
---|
845 | Task entry function pointer (``rtems_task_entry``). |
---|
846 | |
---|
847 | RANGE: |
---|
848 | Valid task entry function pointer. |
---|
849 | |
---|
850 | DEFAULT VALUE: |
---|
851 | The default value is ``Init``. |
---|
852 | |
---|
853 | DESCRIPTION: |
---|
854 | ``CONFIGURE_INIT_TASK_ENTRY_POINT`` is the entry point (a.k.a. function |
---|
855 | name) of the single initialization task defined by the Classic API |
---|
856 | Initialization Tasks Table. |
---|
857 | |
---|
858 | NOTES: |
---|
859 | The user must implement the function ``Init`` or the function name provided |
---|
860 | in this configuration parameter. |
---|
861 | |
---|
862 | .. index:: CONFIGURE_INIT_TASK_NAME |
---|
863 | |
---|
864 | .. _CONFIGURE_INIT_TASK_NAME: |
---|
865 | |
---|
866 | CONFIGURE_INIT_TASK_NAME |
---|
867 | ------------------------ |
---|
868 | |
---|
869 | CONSTANT: |
---|
870 | ``CONFIGURE_INIT_TASK_NAME`` |
---|
871 | |
---|
872 | DATA TYPE: |
---|
873 | RTEMS Name (``rtems_name``). |
---|
874 | |
---|
875 | RANGE: |
---|
876 | Any value. |
---|
877 | |
---|
878 | DEFAULT VALUE: |
---|
879 | The default value is ``rtems_build_name( 'U', 'I', '1', ' ' )``. |
---|
880 | |
---|
881 | DESCRIPTION: |
---|
882 | ``CONFIGURE_INIT_TASK_NAME`` is the name of the single initialization task |
---|
883 | defined by the Classic API Initialization Tasks Table. |
---|
884 | |
---|
885 | NOTES: |
---|
886 | None. |
---|
887 | |
---|
888 | .. index:: CONFIGURE_INIT_TASK_STACK_SIZE |
---|
889 | |
---|
890 | .. _CONFIGURE_INIT_TASK_STACK_SIZE: |
---|
891 | |
---|
892 | CONFIGURE_INIT_TASK_STACK_SIZE |
---|
893 | ------------------------------ |
---|
894 | |
---|
895 | CONSTANT: |
---|
896 | ``CONFIGURE_INIT_TASK_STACK_SIZE`` |
---|
897 | |
---|
898 | DATA TYPE: |
---|
899 | Unsigned integer (``size_t``). |
---|
900 | |
---|
901 | RANGE: |
---|
902 | Zero or positive. |
---|
903 | |
---|
904 | DEFAULT VALUE: |
---|
905 | The default value is RTEMS_MINIMUM_STACK_SIZE. |
---|
906 | |
---|
907 | DESCRIPTION: |
---|
908 | ``CONFIGURE_INIT_TASK_STACK_SIZE`` is the stack size of the single |
---|
909 | initialization task defined by the Classic API Initialization Tasks Table. |
---|
910 | |
---|
911 | NOTES: |
---|
912 | If the stack size specified is greater than the configured minimum, it must |
---|
913 | be accounted for in ``CONFIGURE_EXTRA_TASK_STACKS``. See :ref:`Reserve |
---|
914 | Task/Thread Stack Memory Above Minimum` for more information about |
---|
915 | ``CONFIGURE_EXTRA_TASK_STACKS``. |
---|
916 | |
---|
917 | .. index:: CONFIGURE_INIT_TASK_PRIORITY |
---|
918 | |
---|
919 | .. _CONFIGURE_INIT_TASK_PRIORITY: |
---|
920 | |
---|
921 | CONFIGURE_INIT_TASK_PRIORITY |
---|
922 | ---------------------------- |
---|
923 | |
---|
924 | CONSTANT: |
---|
925 | ``CONFIGURE_INIT_TASK_PRIORITY`` |
---|
926 | |
---|
927 | DATA TYPE: |
---|
928 | RTEMS Task Priority (``rtems_task_priority``). |
---|
929 | |
---|
930 | RANGE: |
---|
931 | One (1) to CONFIGURE_MAXIMUM_PRIORITY. |
---|
932 | |
---|
933 | DEFAULT VALUE: |
---|
934 | The default value is 1, which is the highest priority in the Classic API. |
---|
935 | |
---|
936 | DESCRIPTION: |
---|
937 | ``CONFIGURE_INIT_TASK_PRIORITY`` is the initial priority of the single |
---|
938 | initialization task defined by the Classic API Initialization Tasks Table. |
---|
939 | |
---|
940 | NOTES: |
---|
941 | None. |
---|
942 | |
---|
943 | |
---|
944 | .. index:: CONFIGURE_INIT_TASK_ATTRIBUTES |
---|
945 | |
---|
946 | .. _CONFIGURE_INIT_TASK_ATTRIBUTES: |
---|
947 | |
---|
948 | CONFIGURE_INIT_TASK_ATTRIBUTES |
---|
949 | ------------------------------ |
---|
950 | |
---|
951 | CONSTANT: |
---|
952 | ``CONFIGURE_INIT_TASK_ATTRIBUTES`` |
---|
953 | |
---|
954 | DATA TYPE: |
---|
955 | RTEMS Attributes (``rtems_attribute``). |
---|
956 | |
---|
957 | RANGE: |
---|
958 | Valid task attribute sets. |
---|
959 | |
---|
960 | DEFAULT VALUE: |
---|
961 | The default value is ``RTEMS_DEFAULT_ATTRIBUTES``. |
---|
962 | |
---|
963 | DESCRIPTION: |
---|
964 | ``CONFIGURE_INIT_TASK_ATTRIBUTES`` is the task attributes of the single |
---|
965 | initialization task defined by the Classic API Initialization Tasks Table. |
---|
966 | |
---|
967 | NOTES: |
---|
968 | None. |
---|
969 | |
---|
970 | .. index:: CONFIGURE_INIT_TASK_INITIAL_MODES |
---|
971 | |
---|
972 | .. _CONFIGURE_INIT_TASK_INITIAL_MODES: |
---|
973 | |
---|
974 | CONFIGURE_INIT_TASK_INITIAL_MODES |
---|
975 | --------------------------------- |
---|
976 | |
---|
977 | CONSTANT: |
---|
978 | ``CONFIGURE_INIT_TASK_INITIAL_MODES`` |
---|
979 | |
---|
980 | DATA TYPE: |
---|
981 | RTEMS Mode (``rtems_mode``). |
---|
982 | |
---|
983 | RANGE: |
---|
984 | Valid task mode sets. |
---|
985 | |
---|
986 | DEFAULT VALUE: |
---|
987 | The default value is ``RTEMS_NO_PREEMPT``. |
---|
988 | |
---|
989 | DESCRIPTION: |
---|
990 | ``CONFIGURE_INIT_TASK_INITIAL_MODES`` is the initial execution mode of the |
---|
991 | single initialization task defined by the Classic API Initialization Tasks |
---|
992 | Table. |
---|
993 | |
---|
994 | NOTES: |
---|
995 | None. |
---|
996 | |
---|
997 | .. index:: CONFIGURE_INIT_TASK_ARGUMENTS |
---|
998 | |
---|
999 | .. _CONFIGURE_INIT_TASK_ARGUMENTS: |
---|
1000 | |
---|
1001 | CONFIGURE_INIT_TASK_ARGUMENTS |
---|
1002 | ----------------------------- |
---|
1003 | |
---|
1004 | CONSTANT: |
---|
1005 | ``CONFIGURE_INIT_TASK_ARGUMENTS`` |
---|
1006 | |
---|
1007 | DATA TYPE: |
---|
1008 | RTEMS Task Argument (``rtems_task_argument``). |
---|
1009 | |
---|
1010 | RANGE: |
---|
1011 | Complete range of the type. |
---|
1012 | |
---|
1013 | DEFAULT VALUE: |
---|
1014 | The default value is 0. |
---|
1015 | |
---|
1016 | DESCRIPTION: |
---|
1017 | ``CONFIGURE_INIT_TASK_ARGUMENTS`` is the task argument of the single |
---|
1018 | initialization task defined by the Classic API Initialization Tasks Table. |
---|
1019 | |
---|
1020 | NOTES: |
---|
1021 | None. |
---|
1022 | |
---|
1023 | .. index:: CONFIGURE_HAS_OWN_INIT_TASK_TABLE |
---|
1024 | |
---|
1025 | .. _CONFIGURE_HAS_OWN_INIT_TASK_TABLE: |
---|
1026 | |
---|
1027 | CONFIGURE_HAS_OWN_INIT_TASK_TABLE |
---|
1028 | --------------------------------- |
---|
1029 | |
---|
1030 | CONSTANT: |
---|
1031 | ``CONFIGURE_HAS_OWN_INIT_TASK_TABLE`` |
---|
1032 | |
---|
1033 | DATA TYPE: |
---|
1034 | Boolean feature macro. |
---|
1035 | |
---|
1036 | RANGE: |
---|
1037 | Defined or undefined. |
---|
1038 | |
---|
1039 | DEFAULT VALUE: |
---|
1040 | This is not defined by default. |
---|
1041 | |
---|
1042 | DESCRIPTION: |
---|
1043 | ``CONFIGURE_HAS_OWN_INIT_TASK_TABLE`` is defined if the user wishes to |
---|
1044 | define their own Classic API Initialization Tasks Table. This table should |
---|
1045 | be named ``Initialization_tasks``. |
---|
1046 | |
---|
1047 | NOTES: |
---|
1048 | This is a seldom used configuration parameter. The most likely use case is |
---|
1049 | when an application desires to have more than one initialization task. |
---|
1050 | |
---|
1051 | POSIX API Configuration |
---|
1052 | ======================= |
---|
1053 | |
---|
1054 | The parameters in this section are used to configure resources for the RTEMS |
---|
1055 | POSIX API. They are only relevant if the POSIX API is enabled at configure |
---|
1056 | time using the ``--enable-posix`` option. |
---|
1057 | |
---|
1058 | .. index:: CONFIGURE_MAXIMUM_POSIX_THREADS |
---|
1059 | |
---|
1060 | .. _CONFIGURE_MAXIMUM_POSIX_THREADS: |
---|
1061 | |
---|
1062 | CONFIGURE_MAXIMUM_POSIX_THREADS |
---|
1063 | ------------------------------- |
---|
1064 | |
---|
1065 | CONSTANT: |
---|
1066 | ``CONFIGURE_MAXIMUM_POSIX_THREADS`` |
---|
1067 | |
---|
1068 | DATA TYPE: |
---|
1069 | Unsigned integer (``uint32_t``). |
---|
1070 | |
---|
1071 | RANGE: |
---|
1072 | Zero or positive. |
---|
1073 | |
---|
1074 | DEFAULT VALUE: |
---|
1075 | The default value is 0. |
---|
1076 | |
---|
1077 | DESCRIPTION: |
---|
1078 | ``CONFIGURE_MAXIMUM_POSIX_THREADS`` is the maximum number of POSIX API |
---|
1079 | Threads that can be concurrently active. |
---|
1080 | |
---|
1081 | NOTES: |
---|
1082 | This object class can be configured in unlimited allocation mode. |
---|
1083 | |
---|
1084 | This calculations for the required memory in the RTEMS Workspace for |
---|
1085 | threads assume that each thread has a minimum stack size and has floating |
---|
1086 | point support enabled. The configuration parameter |
---|
1087 | ``CONFIGURE_EXTRA_TASK_STACKS`` is used to specify thread stack |
---|
1088 | requirements *ABOVE* the minimum size required. See :ref:`Reserve |
---|
1089 | Task/Thread Stack Memory Above Minimum` for more information about |
---|
1090 | ``CONFIGURE_EXTRA_TASK_STACKS``. |
---|
1091 | |
---|
1092 | The maximum number of Classic API Tasks is specified by |
---|
1093 | ``CONFIGURE_MAXIMUM_TASKS``. |
---|
1094 | |
---|
1095 | All POSIX threads have floating point enabled. |
---|
1096 | |
---|
1097 | .. index:: CONFIGURE_MAXIMUM_POSIX_KEYS |
---|
1098 | |
---|
1099 | .. _CONFIGURE_MAXIMUM_POSIX_KEYS: |
---|
1100 | |
---|
1101 | CONFIGURE_MAXIMUM_POSIX_KEYS |
---|
1102 | ---------------------------- |
---|
1103 | |
---|
1104 | CONSTANT: |
---|
1105 | ``CONFIGURE_MAXIMUM_POSIX_KEYS`` |
---|
1106 | |
---|
1107 | DATA TYPE: |
---|
1108 | Unsigned integer (``uint32_t``). |
---|
1109 | |
---|
1110 | RANGE: |
---|
1111 | Zero or positive. |
---|
1112 | |
---|
1113 | DEFAULT VALUE: |
---|
1114 | The default value is 0. |
---|
1115 | |
---|
1116 | DESCRIPTION: |
---|
1117 | ``CONFIGURE_MAXIMUM_POSIX_KEYS`` is the maximum number of POSIX API Keys |
---|
1118 | that can be concurrently active. |
---|
1119 | |
---|
1120 | NOTES: |
---|
1121 | This object class can be configured in unlimited allocation mode. |
---|
1122 | |
---|
1123 | .. index:: CONFIGURE_MAXIMUM_POSIX_TIMERS |
---|
1124 | |
---|
1125 | .. _CONFIGURE_MAXIMUM_POSIX_TIMERS: |
---|
1126 | |
---|
1127 | CONFIGURE_MAXIMUM_POSIX_TIMERS |
---|
1128 | ------------------------------ |
---|
1129 | |
---|
1130 | CONSTANT: |
---|
1131 | ``CONFIGURE_MAXIMUM_POSIX_TIMERS`` |
---|
1132 | |
---|
1133 | DATA TYPE: |
---|
1134 | Unsigned integer (``uint32_t``). |
---|
1135 | |
---|
1136 | RANGE: |
---|
1137 | Zero or positive. |
---|
1138 | |
---|
1139 | DEFAULT VALUE: |
---|
1140 | The default value is 0. |
---|
1141 | |
---|
1142 | DESCRIPTION: |
---|
1143 | ``CONFIGURE_MAXIMUM_POSIX_TIMERS`` is the maximum number of POSIX API |
---|
1144 | Timers that can be concurrently active. |
---|
1145 | |
---|
1146 | NOTES: |
---|
1147 | This object class can be configured in unlimited allocation mode. |
---|
1148 | |
---|
1149 | .. index:: CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS |
---|
1150 | |
---|
1151 | .. _CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS: |
---|
1152 | |
---|
1153 | CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS |
---|
1154 | -------------------------------------- |
---|
1155 | |
---|
1156 | CONSTANT: |
---|
1157 | ``CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS`` |
---|
1158 | |
---|
1159 | DATA TYPE: |
---|
1160 | Unsigned integer (``uint32_t``). |
---|
1161 | |
---|
1162 | RANGE: |
---|
1163 | Zero or positive. |
---|
1164 | |
---|
1165 | DEFAULT VALUE: |
---|
1166 | The default value is 0. |
---|
1167 | |
---|
1168 | DESCRIPTION: |
---|
1169 | ``CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS`` is the maximum number of POSIX |
---|
1170 | API Queued Signals that can be concurrently active. |
---|
1171 | |
---|
1172 | NOTES: |
---|
1173 | None. |
---|
1174 | |
---|
1175 | .. index:: CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES |
---|
1176 | |
---|
1177 | .. _CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES: |
---|
1178 | |
---|
1179 | CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES |
---|
1180 | -------------------------------------- |
---|
1181 | |
---|
1182 | CONSTANT: |
---|
1183 | ``CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES`` |
---|
1184 | |
---|
1185 | DATA TYPE: |
---|
1186 | Unsigned integer (``uint32_t``). |
---|
1187 | |
---|
1188 | RANGE: |
---|
1189 | Zero or positive. |
---|
1190 | |
---|
1191 | DEFAULT VALUE: |
---|
1192 | The default value is 0. |
---|
1193 | |
---|
1194 | DESCRIPTION: |
---|
1195 | ``CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES`` is the maximum number of POSIX |
---|
1196 | API Message Queues that can be concurrently active. |
---|
1197 | |
---|
1198 | NOTES: |
---|
1199 | This object class can be configured in unlimited allocation mode. |
---|
1200 | |
---|
1201 | .. index:: CONFIGURE_MAXIMUM_POSIX_SEMAPHORES |
---|
1202 | |
---|
1203 | .. _CONFIGURE_MAXIMUM_POSIX_SEMAPHORES: |
---|
1204 | |
---|
1205 | CONFIGURE_MAXIMUM_POSIX_SEMAPHORES |
---|
1206 | ---------------------------------- |
---|
1207 | |
---|
1208 | CONSTANT: |
---|
1209 | ``CONFIGURE_MAXIMUM_POSIX_SEMAPHORES`` |
---|
1210 | |
---|
1211 | DATA TYPE: |
---|
1212 | Unsigned integer (``uint32_t``). |
---|
1213 | |
---|
1214 | RANGE: |
---|
1215 | Zero or positive. |
---|
1216 | |
---|
1217 | DEFAULT VALUE: |
---|
1218 | The default value is 0. |
---|
1219 | |
---|
1220 | DESCRIPTION: |
---|
1221 | ``CONFIGURE_MAXIMUM_POSIX_SEMAPHORES`` is the maximum number of POSIX API |
---|
1222 | Named Semaphores that can be concurrently active. Named semaphores are |
---|
1223 | created with ``sem_open()``. Semaphores initialized with ``sem_init()`` |
---|
1224 | are not affected by this configuration option since the storage space for |
---|
1225 | these semaphores is user-provided. |
---|
1226 | |
---|
1227 | NOTES: |
---|
1228 | None. |
---|
1229 | |
---|
1230 | POSIX Initialization Threads Table Configuration |
---|
1231 | ================================================ |
---|
1232 | |
---|
1233 | The ``<rtems/confdefs.h>`` configuration system can automatically generate a |
---|
1234 | POSIX Initialization Threads Table named ``POSIX_Initialization_threads`` with |
---|
1235 | a single entry. The following parameters control the generation of that table. |
---|
1236 | |
---|
1237 | .. index:: CONFIGURE_POSIX_INIT_THREAD_TABLE |
---|
1238 | |
---|
1239 | .. _CONFIGURE_POSIX_INIT_THREAD_TABLE: |
---|
1240 | |
---|
1241 | CONFIGURE_POSIX_INIT_THREAD_TABLE |
---|
1242 | --------------------------------- |
---|
1243 | |
---|
1244 | CONSTANT: |
---|
1245 | |
---|
1246 | ``CONFIGURE_POSIX_INIT_THREAD_TABLE`` |
---|
1247 | |
---|
1248 | DATA TYPE: |
---|
1249 | Boolean feature macro. |
---|
1250 | |
---|
1251 | RANGE: |
---|
1252 | Defined or undefined. |
---|
1253 | |
---|
1254 | DEFAULT VALUE: |
---|
1255 | This field is not defined by default, as the user MUST select their own API |
---|
1256 | for initialization tasks. |
---|
1257 | |
---|
1258 | DESCRIPTION: |
---|
1259 | ``CONFIGURE_POSIX_INIT_THREAD_TABLE`` is defined if the user wishes to use |
---|
1260 | a POSIX API Initialization Threads Table. The table built by |
---|
1261 | ``<rtems/confdefs.h>`` specifies the parameters for a single thread. This |
---|
1262 | is sufficient for applications which initialization the system from a |
---|
1263 | single task. |
---|
1264 | |
---|
1265 | By default, this field is not defined as the user MUST select their own API |
---|
1266 | for initialization tasks. |
---|
1267 | |
---|
1268 | NOTES: |
---|
1269 | The application may choose to use the initialization tasks or threads table |
---|
1270 | from another API. |
---|
1271 | |
---|
1272 | A compile time error will be generated if the user does not configure any |
---|
1273 | initialization tasks or threads. |
---|
1274 | |
---|
1275 | .. index:: CONFIGURE_POSIX_INIT_THREAD_ENTRY_POINT |
---|
1276 | |
---|
1277 | .. _CONFIGURE_POSIX_INIT_THREAD_ENTRY_POINT: |
---|
1278 | |
---|
1279 | CONFIGURE_POSIX_INIT_THREAD_ENTRY_POINT |
---|
1280 | --------------------------------------- |
---|
1281 | |
---|
1282 | CONSTANT: |
---|
1283 | ``CONFIGURE_POSIX_INIT_THREAD_ENTRY_POINT`` |
---|
1284 | |
---|
1285 | DATA TYPE: |
---|
1286 | POSIX thread function pointer (``void *(*entry_point)(void *)``). |
---|
1287 | |
---|
1288 | RANGE: |
---|
1289 | Undefined or a valid POSIX thread function pointer. |
---|
1290 | |
---|
1291 | DEFAULT VALUE: |
---|
1292 | The default value is ``POSIX_Init``. |
---|
1293 | |
---|
1294 | DESCRIPTION: |
---|
1295 | ``CONFIGURE_POSIX_INIT_THREAD_ENTRY_POINT`` is the entry point |
---|
1296 | (a.k.a. function name) of the single initialization thread defined by the |
---|
1297 | POSIX API Initialization Threads Table. |
---|
1298 | |
---|
1299 | NOTES: |
---|
1300 | The user must implement the function ``POSIX_Init`` or the function name |
---|
1301 | provided in this configuration parameter. |
---|
1302 | |
---|
1303 | .. index:: CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE |
---|
1304 | |
---|
1305 | .. _CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE: |
---|
1306 | |
---|
1307 | CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE |
---|
1308 | -------------------------------------- |
---|
1309 | |
---|
1310 | CONSTANT: |
---|
1311 | ``CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE`` |
---|
1312 | |
---|
1313 | DATA TYPE: |
---|
1314 | Unsigned integer (``size_t``). |
---|
1315 | |
---|
1316 | RANGE: |
---|
1317 | Zero or positive. |
---|
1318 | |
---|
1319 | DEFAULT VALUE: |
---|
1320 | The default value is 2 \* RTEMS_MINIMUM_STACK_SIZE. |
---|
1321 | |
---|
1322 | DESCRIPTION: |
---|
1323 | ``CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE`` is the stack size of the single |
---|
1324 | initialization thread defined by the POSIX API Initialization Threads |
---|
1325 | Table. |
---|
1326 | |
---|
1327 | NOTES: |
---|
1328 | If the stack size specified is greater than the configured minimum, it must |
---|
1329 | be accounted for in ``CONFIGURE_EXTRA_TASK_STACKS``. See :ref:`Reserve |
---|
1330 | Task/Thread Stack Memory Above Minimum` for more information about |
---|
1331 | ``CONFIGURE_EXTRA_TASK_STACKS``. |
---|
1332 | |
---|
1333 | .. index:: CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE |
---|
1334 | |
---|
1335 | .. _CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE: |
---|
1336 | |
---|
1337 | CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE |
---|
1338 | ----------------------------------------- |
---|
1339 | |
---|
1340 | CONSTANT: |
---|
1341 | ``CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE`` |
---|
1342 | |
---|
1343 | DATA TYPE: |
---|
1344 | Boolean feature macro. |
---|
1345 | |
---|
1346 | RANGE: |
---|
1347 | Defined or undefined. |
---|
1348 | |
---|
1349 | DEFAULT VALUE: |
---|
1350 | This is not defined by default. |
---|
1351 | |
---|
1352 | DESCRIPTION: |
---|
1353 | ``CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE`` is defined if the user wishes |
---|
1354 | to define their own POSIX API Initialization Threads Table. This table |
---|
1355 | should be named ``POSIX_Initialization_threads``. |
---|
1356 | |
---|
1357 | NOTES: |
---|
1358 | This is a seldom used configuration parameter. The most likely use case is |
---|
1359 | when an application desires to have more than one initialization task. |
---|
1360 | |
---|
1361 | Basic System Information |
---|
1362 | ======================== |
---|
1363 | |
---|
1364 | This section defines the general system configuration parameters supported by |
---|
1365 | ``<rtems/confdefs.h>``. |
---|
1366 | |
---|
1367 | .. index:: CONFIGURE_UNIFIED_WORK_AREAS |
---|
1368 | .. index:: unified work areas |
---|
1369 | .. index:: separate work areas |
---|
1370 | .. index:: RTEMS Workspace |
---|
1371 | .. index:: C Program Heap |
---|
1372 | |
---|
1373 | .. _CONFIGURE_UNIFIED_WORK_AREAS: |
---|
1374 | |
---|
1375 | CONFIGURE_UNIFIED_WORK_AREAS |
---|
1376 | ---------------------------- |
---|
1377 | |
---|
1378 | CONSTANT: |
---|
1379 | ``CONFIGURE_UNIFIED_WORK_AREAS`` |
---|
1380 | |
---|
1381 | DATA TYPE: |
---|
1382 | Boolean feature macro. |
---|
1383 | |
---|
1384 | RANGE: |
---|
1385 | Defined or undefined. |
---|
1386 | |
---|
1387 | DEFAULT VALUE: |
---|
1388 | This is not defined by default, which specifies that the C Program Heap and |
---|
1389 | the RTEMS Workspace will be separate. |
---|
1390 | |
---|
1391 | DESCRIPTION: |
---|
1392 | When defined, the C Program Heap and the RTEMS Workspace will be one pool |
---|
1393 | of memory. |
---|
1394 | |
---|
1395 | When not defined, there will be separate memory pools for the RTEMS |
---|
1396 | Workspace and C Program Heap. |
---|
1397 | |
---|
1398 | NOTES: |
---|
1399 | Having separate pools does have some advantages in the event a task blows a |
---|
1400 | stack or writes outside its memory area. However, in low memory systems the |
---|
1401 | overhead of the two pools plus the potential for unused memory in either |
---|
1402 | pool is very undesirable. |
---|
1403 | |
---|
1404 | In high memory environments, this is desirable when you want to use the |
---|
1405 | RTEMS "unlimited" objects option. You will be able to create objects until |
---|
1406 | you run out of all available memory rather then just until you run out of |
---|
1407 | RTEMS Workspace. |
---|
1408 | |
---|
1409 | .. index:: CONFIGURE_MAXIMUM_PROCESSORS |
---|
1410 | |
---|
1411 | .. _CONFIGURE_MAXIMUM_PROCESSORS: |
---|
1412 | |
---|
1413 | CONFIGURE_MAXIMUM_PROCESSORS |
---|
1414 | ---------------------------- |
---|
1415 | |
---|
1416 | CONSTANT: |
---|
1417 | ``CONFIGURE_MAXIMUM_PROCESSORS`` |
---|
1418 | |
---|
1419 | DATA TYPE: |
---|
1420 | Unsigned integer (``uint32_t``). |
---|
1421 | |
---|
1422 | RANGE: |
---|
1423 | Positive. |
---|
1424 | |
---|
1425 | DEFAULT VALUE: |
---|
1426 | The default value is 1. |
---|
1427 | |
---|
1428 | DESCRIPTION: |
---|
1429 | ``CONFIGURE_MAXIMUM_PROCESSORS`` must be set to the maximum number of |
---|
1430 | processors an applicaiton intends to use. The number of acually available |
---|
1431 | processors depends on the hardware and may be less. It is recommended to |
---|
1432 | use the smallest value suitable for the application in order to save |
---|
1433 | memory. Each processor needs an idle thread and interrupt stack for |
---|
1434 | example. |
---|
1435 | |
---|
1436 | NOTES: |
---|
1437 | If there are more processors available than configured, the rest will be |
---|
1438 | ignored. This configuration define is ignored in uni-processor |
---|
1439 | configurations. |
---|
1440 | |
---|
1441 | .. index:: CONFIGURE_MICROSECONDS_PER_TICK |
---|
1442 | .. index:: tick quantum |
---|
1443 | |
---|
1444 | .. _CONFIGURE_MICROSECONDS_PER_TICK: |
---|
1445 | |
---|
1446 | CONFIGURE_MICROSECONDS_PER_TICK |
---|
1447 | ------------------------------- |
---|
1448 | |
---|
1449 | CONSTANT: |
---|
1450 | ``CONFIGURE_MICROSECONDS_PER_TICK`` |
---|
1451 | |
---|
1452 | DATA TYPE: |
---|
1453 | Unsigned integer (``uint32_t``). |
---|
1454 | |
---|
1455 | RANGE: |
---|
1456 | Positive. |
---|
1457 | |
---|
1458 | DEFAULT VALUE: |
---|
1459 | This is not defined by default. When not defined, the clock tick quantum is |
---|
1460 | configured to be 10,000 microseconds which is ten (10) milliseconds. |
---|
1461 | |
---|
1462 | DESCRIPTION: |
---|
1463 | This constant is used to specify the length of time between clock ticks. |
---|
1464 | |
---|
1465 | When the clock tick quantum value is too low, the system will spend so much |
---|
1466 | time processing clock ticks that it does not have processing time available |
---|
1467 | to perform application work. In this case, the system will become |
---|
1468 | unresponsive. |
---|
1469 | |
---|
1470 | The lowest practical time quantum varies widely based upon the speed of the |
---|
1471 | target hardware and the architectural overhead associated with |
---|
1472 | interrupts. In general terms, you do not want to configure it lower than is |
---|
1473 | needed for the application. |
---|
1474 | |
---|
1475 | The clock tick quantum should be selected such that it all blocking and |
---|
1476 | delay times in the application are evenly divisible by it. Otherwise, |
---|
1477 | rounding errors will be introduced which may negatively impact the |
---|
1478 | application. |
---|
1479 | |
---|
1480 | NOTES: |
---|
1481 | This configuration parameter has no impact if the Clock Tick Device driver |
---|
1482 | is not configured. |
---|
1483 | |
---|
1484 | There may be BSP specific limits on the resolution or maximum value of a |
---|
1485 | clock tick quantum. |
---|
1486 | |
---|
1487 | .. index:: CONFIGURE_TICKS_PER_TIMESLICE |
---|
1488 | .. index:: ticks per timeslice |
---|
1489 | |
---|
1490 | .. _CONFIGURE_TICKS_PER_TIMESLICE: |
---|
1491 | |
---|
1492 | CONFIGURE_TICKS_PER_TIMESLICE |
---|
1493 | ----------------------------- |
---|
1494 | |
---|
1495 | CONSTANT: |
---|
1496 | ``CONFIGURE_TICKS_PER_TIMESLICE`` |
---|
1497 | |
---|
1498 | DATA TYPE: |
---|
1499 | Unsigned integer (``uint32_t``). |
---|
1500 | |
---|
1501 | RANGE: |
---|
1502 | Positive. |
---|
1503 | |
---|
1504 | DEFAULT VALUE: |
---|
1505 | The default value is 50. |
---|
1506 | |
---|
1507 | DESCRIPTION: |
---|
1508 | This configuration parameter specifies the length of the timeslice quantum |
---|
1509 | in ticks for each task. |
---|
1510 | |
---|
1511 | NOTES: |
---|
1512 | This configuration parameter has no impact if the Clock Tick Device driver |
---|
1513 | is not configured. |
---|
1514 | |
---|
1515 | .. index:: CONFIGURE_MAXIMUM_PRIORITY |
---|
1516 | .. index:: maximum priority |
---|
1517 | .. index:: number of priority levels |
---|
1518 | |
---|
1519 | .. _CONFIGURE_MAXIMUM_PRIORITY: |
---|
1520 | |
---|
1521 | CONFIGURE_MAXIMUM_PRIORITY |
---|
1522 | -------------------------- |
---|
1523 | |
---|
1524 | CONSTANT: |
---|
1525 | ``CONFIGURE_MAXIMUM_PRIORITY`` |
---|
1526 | |
---|
1527 | DATA TYPE: |
---|
1528 | Unsigned integer (``uint8_t``). |
---|
1529 | |
---|
1530 | RANGE: |
---|
1531 | Valid values for this configuration parameter must be one (1) less than |
---|
1532 | than a power of two (2) between 4 and 256 inclusively. In other words, |
---|
1533 | valid values are 3, 7, 31, 63, 127, and 255. |
---|
1534 | |
---|
1535 | DEFAULT VALUE: |
---|
1536 | The default value is 255, because RTEMS must support 256 priority levels to |
---|
1537 | be compliant with various standards. These priorities range from zero (0) |
---|
1538 | to 255. |
---|
1539 | |
---|
1540 | DESCRIPTION: |
---|
1541 | This configuration parameter specified the maximum numeric priority of any |
---|
1542 | task in the system and one less that the number of priority levels in the |
---|
1543 | system. |
---|
1544 | |
---|
1545 | Reducing the number of priorities in the system reduces the amount of memory |
---|
1546 | allocated from the RTEMS Workspace. |
---|
1547 | |
---|
1548 | NOTES: |
---|
1549 | The numerically greatest priority is the logically lowest priority in the |
---|
1550 | system and will thus be used by the IDLE task. |
---|
1551 | |
---|
1552 | Priority zero (0) is reserved for internal use by RTEMS and is not available |
---|
1553 | to applications. |
---|
1554 | |
---|
1555 | With some schedulers, reducing the number of priorities can reduce the |
---|
1556 | amount of memory used by the scheduler. For example, the Deterministic |
---|
1557 | Priority Scheduler (DPS) used by default uses three pointers of storage per |
---|
1558 | priority level. Reducing the number of priorities from 256 levels to |
---|
1559 | sixteen (16) can reduce memory usage by about three (3) kilobytes. |
---|
1560 | |
---|
1561 | .. index:: CONFIGURE_MAXIMUM_THREAD_NAME_SIZE |
---|
1562 | .. index:: maximum thread name size |
---|
1563 | |
---|
1564 | .. _CONFIGURE_MAXIMUM_THREAD_NAME_SIZE: |
---|
1565 | |
---|
1566 | CONFIGURE_MAXIMUM_THREAD_NAME_SIZE |
---|
1567 | ---------------------------------- |
---|
1568 | |
---|
1569 | CONSTANT: |
---|
1570 | ``CONFIGURE_MAXIMUM_THREAD_NAME_SIZE`` |
---|
1571 | |
---|
1572 | DATA TYPE: |
---|
1573 | Unsigned integer (``size_t``). |
---|
1574 | |
---|
1575 | RANGE: |
---|
1576 | No restrictions. |
---|
1577 | |
---|
1578 | DEFAULT VALUE: |
---|
1579 | The default value is 16. This value was chosen for Linux compatibility, |
---|
1580 | see |
---|
1581 | `PTHREAD_SETNAME_NP(3) <http://man7.org/linux/man-pages/man3/pthread_setname_np.3.html>`_. |
---|
1582 | |
---|
1583 | DESCRIPTION: |
---|
1584 | This configuration parameter specifies the maximum thread name size |
---|
1585 | including the terminating `NUL` character. |
---|
1586 | |
---|
1587 | NOTE: |
---|
1588 | The size of the thread control block is increased by the maximum thread name |
---|
1589 | size. This configuration option is available since RTEMS 5.1. |
---|
1590 | |
---|
1591 | .. index:: CONFIGURE_MINIMUM_TASK_STACK_SIZE |
---|
1592 | .. index:: minimum task stack size |
---|
1593 | |
---|
1594 | .. _CONFIGURE_MINIMUM_TASK_STACK_SIZE: |
---|
1595 | |
---|
1596 | CONFIGURE_MINIMUM_TASK_STACK_SIZE |
---|
1597 | --------------------------------- |
---|
1598 | |
---|
1599 | CONSTANT: |
---|
1600 | ``CONFIGURE_MINIMUM_TASK_STACK_SIZE`` |
---|
1601 | |
---|
1602 | DATA TYPE: |
---|
1603 | Unsigned integer (``uint32_t``). |
---|
1604 | |
---|
1605 | RANGE: |
---|
1606 | Positive. |
---|
1607 | |
---|
1608 | DEFAULT VALUE: |
---|
1609 | This is not defined by default, which sets the executive to the recommended |
---|
1610 | minimum stack size for this processor. |
---|
1611 | |
---|
1612 | DESCRIPTION: |
---|
1613 | The configuration parameter is set to the number of bytes the application |
---|
1614 | wants the minimum stack size to be for every task or thread in the system. |
---|
1615 | |
---|
1616 | Adjusting this parameter should be done with caution. Examining the actual |
---|
1617 | usage using the Stack Checker Usage Reporting facility is recommended. |
---|
1618 | |
---|
1619 | NOTES: |
---|
1620 | This parameter can be used to lower the minimum from that recommended. This |
---|
1621 | can be used in low memory systems to reduce memory consumption for |
---|
1622 | stacks. However, this must be done with caution as it could increase the |
---|
1623 | possibility of a blown task stack. |
---|
1624 | |
---|
1625 | This parameter can be used to increase the minimum from that |
---|
1626 | recommended. This can be used in higher memory systems to reduce the risk |
---|
1627 | of stack overflow without performing analysis on actual consumption. |
---|
1628 | |
---|
1629 | .. index:: CONFIGURE_INTERRUPT_STACK_SIZE |
---|
1630 | .. index:: interrupt stack size |
---|
1631 | |
---|
1632 | .. _CONFIGURE_INTERRUPT_STACK_SIZE: |
---|
1633 | |
---|
1634 | CONFIGURE_INTERRUPT_STACK_SIZE |
---|
1635 | ------------------------------ |
---|
1636 | |
---|
1637 | CONSTANT: |
---|
1638 | ``CONFIGURE_INTERRUPT_STACK_SIZE`` |
---|
1639 | |
---|
1640 | DATA TYPE: |
---|
1641 | Unsigned integer (``uint32_t``). |
---|
1642 | |
---|
1643 | RANGE: |
---|
1644 | Positive. |
---|
1645 | |
---|
1646 | DEFAULT VALUE: |
---|
1647 | The default value is CONFIGURE_MINIMUM_TASK_STACK_SIZE, which is the |
---|
1648 | minimum interrupt stack size. |
---|
1649 | |
---|
1650 | DESCRIPTION: |
---|
1651 | ``CONFIGURE_INTERRUPT_STACK_SIZE`` is set to the size of the interrupt |
---|
1652 | stack. The interrupt stack size is often set by the BSP but since this |
---|
1653 | memory may be allocated from the RTEMS Workspace, it must be accounted for. |
---|
1654 | |
---|
1655 | NOTES: |
---|
1656 | In some BSPs, changing this constant does NOT change the size of the |
---|
1657 | interrupt stack, only the amount of memory reserved for it. |
---|
1658 | |
---|
1659 | Patches which result in this constant only being used in memory |
---|
1660 | calculations when the interrupt stack is intended to be allocated from the |
---|
1661 | RTEMS Workspace would be welcomed by the RTEMS Project. |
---|
1662 | |
---|
1663 | .. index:: CONFIGURE_EXTRA_TASK_STACKS |
---|
1664 | .. index:: memory for task tasks |
---|
1665 | |
---|
1666 | .. _CONFIGURE_EXTRA_TASK_STACKS: |
---|
1667 | |
---|
1668 | CONFIGURE_EXTRA_TASK_STACKS |
---|
1669 | --------------------------- |
---|
1670 | |
---|
1671 | CONSTANT: |
---|
1672 | ``CONFIGURE_EXTRA_TASK_STACKS`` |
---|
1673 | |
---|
1674 | DATA TYPE: |
---|
1675 | Unsigned integer (``size_t``). |
---|
1676 | |
---|
1677 | RANGE: |
---|
1678 | Undefined or positive. |
---|
1679 | |
---|
1680 | DEFAULT VALUE: |
---|
1681 | The default value is 0. |
---|
1682 | |
---|
1683 | DESCRIPTION: |
---|
1684 | This configuration parameter is set to the number of bytes the applications |
---|
1685 | wishes to add to the task stack requirements calculated by |
---|
1686 | ``<rtems/confdefs.h>``. |
---|
1687 | |
---|
1688 | NOTES: |
---|
1689 | This parameter is very important. If the application creates tasks with |
---|
1690 | stacks larger then the minimum, then that memory is NOT accounted for by |
---|
1691 | ``<rtems/confdefs.h>``. |
---|
1692 | |
---|
1693 | .. index:: CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY |
---|
1694 | .. index:: clear C Program Heap |
---|
1695 | .. index:: clear RTEMS Workspace |
---|
1696 | .. index:: zero C Program Heap |
---|
1697 | .. index:: zero RTEMS Workspace |
---|
1698 | |
---|
1699 | .. _CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY: |
---|
1700 | |
---|
1701 | CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY |
---|
1702 | -------------------------------------- |
---|
1703 | |
---|
1704 | CONSTANT: |
---|
1705 | ``CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY`` |
---|
1706 | |
---|
1707 | DATA TYPE: |
---|
1708 | Boolean feature macro. |
---|
1709 | |
---|
1710 | RANGE: |
---|
1711 | Defined or undefined. |
---|
1712 | |
---|
1713 | DEFAULT VALUE: |
---|
1714 | This is not defined by default, unless overridden by the BSP. The default |
---|
1715 | is *NOT* to zero out the RTEMS Workspace or C Program Heap. |
---|
1716 | |
---|
1717 | DESCRIPTION: |
---|
1718 | This macro indicates whether RTEMS should zero the RTEMS Workspace and C |
---|
1719 | Program Heap as part of its initialization. If defined, the memory regions |
---|
1720 | are zeroed. Otherwise, they are not. |
---|
1721 | |
---|
1722 | NOTES: |
---|
1723 | Zeroing memory can add significantly to system boot time. It is not |
---|
1724 | necessary for RTEMS but is often assumed by support libraries. |
---|
1725 | |
---|
1726 | .. index:: CONFIGURE_STACK_CHECKER_ENABLED |
---|
1727 | |
---|
1728 | .. _CONFIGURE_STACK_CHECKER_ENABLED: |
---|
1729 | |
---|
1730 | CONFIGURE_STACK_CHECKER_ENABLED |
---|
1731 | ------------------------------- |
---|
1732 | |
---|
1733 | CONSTANT: |
---|
1734 | ``CONFIGURE_STACK_CHECKER_ENABLED`` |
---|
1735 | |
---|
1736 | DATA TYPE: |
---|
1737 | Boolean feature macro. |
---|
1738 | |
---|
1739 | RANGE: |
---|
1740 | Defined or undefined. |
---|
1741 | |
---|
1742 | DEFAULT VALUE: |
---|
1743 | This is not defined by default, and thus stack checking is disabled. |
---|
1744 | |
---|
1745 | DESCRIPTION: |
---|
1746 | This configuration parameter is defined when the application wishes to |
---|
1747 | enable run-time stack bounds checking. |
---|
1748 | |
---|
1749 | NOTES: |
---|
1750 | In 4.9 and older, this configuration parameter was named ``STACK_CHECKER_ON``. |
---|
1751 | |
---|
1752 | This increases the time required to create tasks as well as adding overhead |
---|
1753 | to each context switch. |
---|
1754 | |
---|
1755 | .. index:: CONFIGURE_INITIAL_EXTENSIONS |
---|
1756 | |
---|
1757 | .. _CONFIGURE_INITIAL_EXTENSIONS: |
---|
1758 | |
---|
1759 | CONFIGURE_INITIAL_EXTENSIONS |
---|
1760 | ---------------------------- |
---|
1761 | |
---|
1762 | CONSTANT: |
---|
1763 | ``CONFIGURE_INITIAL_EXTENSIONS`` |
---|
1764 | |
---|
1765 | DATA TYPE: |
---|
1766 | List of user extension initializers (``rtems_extensions_table``). |
---|
1767 | |
---|
1768 | RANGE: |
---|
1769 | Undefined or a list of one or more user extensions. |
---|
1770 | |
---|
1771 | DEFAULT VALUE: |
---|
1772 | This is not defined by default. |
---|
1773 | |
---|
1774 | DESCRIPTION: |
---|
1775 | If ``CONFIGURE_INITIAL_EXTENSIONS`` is defined by the application, then |
---|
1776 | this application specific set of initial extensions will be placed in the |
---|
1777 | initial extension table. |
---|
1778 | |
---|
1779 | NOTES: |
---|
1780 | None. |
---|
1781 | |
---|
1782 | Configuring Custom Task Stack Allocation |
---|
1783 | ======================================== |
---|
1784 | |
---|
1785 | RTEMS allows the application or BSP to define its own allocation and |
---|
1786 | deallocation methods for task stacks. This can be used to place task stacks in |
---|
1787 | special areas of memory or to utilize a Memory Management Unit so that stack |
---|
1788 | overflows are detected in hardware. |
---|
1789 | |
---|
1790 | .. index:: CONFIGURE_TASK_STACK_ALLOCATOR_INIT |
---|
1791 | |
---|
1792 | .. _CONFIGURE_TASK_STACK_ALLOCATOR_INIT: |
---|
1793 | |
---|
1794 | CONFIGURE_TASK_STACK_ALLOCATOR_INIT |
---|
1795 | ----------------------------------- |
---|
1796 | |
---|
1797 | CONSTANT: |
---|
1798 | ``CONFIGURE_TASK_STACK_ALLOCATOR_INIT`` |
---|
1799 | |
---|
1800 | DATA TYPE: |
---|
1801 | Function pointer. |
---|
1802 | |
---|
1803 | RANGE: |
---|
1804 | Undefined, NULL or valid function pointer. |
---|
1805 | |
---|
1806 | DEFAULT VALUE: |
---|
1807 | The default value is NULL, which indicates that task stacks will be |
---|
1808 | allocated from the RTEMS Workspace. |
---|
1809 | |
---|
1810 | DESCRIPTION: |
---|
1811 | ``CONFIGURE_TASK_STACK_ALLOCATOR_INIT`` configures the initialization |
---|
1812 | method for an application or BSP specific task stack allocation |
---|
1813 | implementation. |
---|
1814 | |
---|
1815 | NOTES: |
---|
1816 | A correctly configured system must configure the following to be consistent: |
---|
1817 | |
---|
1818 | - ``CONFIGURE_TASK_STACK_ALLOCATOR_INIT`` |
---|
1819 | |
---|
1820 | - ``CONFIGURE_TASK_STACK_ALLOCATOR`` |
---|
1821 | |
---|
1822 | - ``CONFIGURE_TASK_STACK_DEALLOCATOR`` |
---|
1823 | |
---|
1824 | .. index:: CONFIGURE_TASK_STACK_ALLOCATOR |
---|
1825 | .. index:: task stack allocator |
---|
1826 | |
---|
1827 | .. _CONFIGURE_TASK_STACK_ALLOCATOR: |
---|
1828 | |
---|
1829 | CONFIGURE_TASK_STACK_ALLOCATOR |
---|
1830 | ------------------------------ |
---|
1831 | |
---|
1832 | CONSTANT: |
---|
1833 | ``CONFIGURE_TASK_STACK_ALLOCATOR`` |
---|
1834 | |
---|
1835 | DATA TYPE: |
---|
1836 | Function pointer. |
---|
1837 | |
---|
1838 | RANGE: |
---|
1839 | Undefined or valid function pointer. |
---|
1840 | |
---|
1841 | DEFAULT VALUE: |
---|
1842 | The default value is ``_Workspace_Allocate``, which indicates that task |
---|
1843 | stacks will be allocated from the RTEMS Workspace. |
---|
1844 | |
---|
1845 | DESCRIPTION: |
---|
1846 | ``CONFIGURE_TASK_STACK_ALLOCATOR`` may point to a user provided routine to |
---|
1847 | allocate task stacks. |
---|
1848 | |
---|
1849 | NOTES: |
---|
1850 | A correctly configured system must configure the following to be consistent: |
---|
1851 | |
---|
1852 | - ``CONFIGURE_TASK_STACK_ALLOCATOR_INIT`` |
---|
1853 | |
---|
1854 | - ``CONFIGURE_TASK_STACK_ALLOCATOR`` |
---|
1855 | |
---|
1856 | - ``CONFIGURE_TASK_STACK_DEALLOCATOR`` |
---|
1857 | |
---|
1858 | .. index:: CONFIGURE_TASK_STACK_DEALLOCATOR |
---|
1859 | .. index:: task stack deallocator |
---|
1860 | |
---|
1861 | .. _CONFIGURE_TASK_STACK_DEALLOCATOR: |
---|
1862 | |
---|
1863 | CONFIGURE_TASK_STACK_DEALLOCATOR |
---|
1864 | -------------------------------- |
---|
1865 | |
---|
1866 | CONSTANT: |
---|
1867 | ``CONFIGURE_TASK_STACK_DEALLOCATOR`` |
---|
1868 | |
---|
1869 | DATA TYPE: |
---|
1870 | Function pointer. |
---|
1871 | |
---|
1872 | RANGE: |
---|
1873 | Undefined or valid function pointer. |
---|
1874 | |
---|
1875 | DEFAULT VALUE: |
---|
1876 | The default value is ``_Workspace_Free``, which indicates that task stacks |
---|
1877 | will be allocated from the RTEMS Workspace. |
---|
1878 | |
---|
1879 | DESCRIPTION: |
---|
1880 | ``CONFIGURE_TASK_STACK_DEALLOCATOR`` may point to a user provided routine |
---|
1881 | to free task stacks. |
---|
1882 | |
---|
1883 | NOTES: |
---|
1884 | A correctly configured system must configure the following to be consistent: |
---|
1885 | |
---|
1886 | - ``CONFIGURE_TASK_STACK_ALLOCATOR_INIT`` |
---|
1887 | |
---|
1888 | - ``CONFIGURE_TASK_STACK_ALLOCATOR`` |
---|
1889 | |
---|
1890 | - ``CONFIGURE_TASK_STACK_DEALLOCATOR`` |
---|
1891 | |
---|
1892 | Configuring Memory for Classic API Message Buffers |
---|
1893 | ================================================== |
---|
1894 | |
---|
1895 | This section describes the configuration parameters related to specifying the |
---|
1896 | amount of memory reserved for Classic API Message Buffers. |
---|
1897 | |
---|
1898 | .. index:: CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE |
---|
1899 | .. index:: memory for a single message queue's buffers |
---|
1900 | |
---|
1901 | .. _CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE: |
---|
1902 | |
---|
1903 | CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE |
---|
1904 | ----------------------------------- |
---|
1905 | |
---|
1906 | CONSTANT: |
---|
1907 | ``CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE(max_messages, size_per)`` |
---|
1908 | |
---|
1909 | DATA TYPE: |
---|
1910 | Unsigned integer (``size_t``). |
---|
1911 | |
---|
1912 | RANGE: |
---|
1913 | Positive. |
---|
1914 | |
---|
1915 | DEFAULT VALUE: |
---|
1916 | The default value is None. |
---|
1917 | |
---|
1918 | DESCRIPTION: |
---|
1919 | This is a helper macro which is used to assist in computing the total |
---|
1920 | amount of memory required for message buffers. Each message queue will |
---|
1921 | have its own configuration with maximum message size and maximum number of |
---|
1922 | pending messages. |
---|
1923 | |
---|
1924 | The interface for this macro is as follows: |
---|
1925 | |
---|
1926 | .. code-block:: c |
---|
1927 | |
---|
1928 | CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE(max_messages, size_per) |
---|
1929 | |
---|
1930 | Where ``max_messages`` is the maximum number of pending messages and |
---|
1931 | ``size_per`` is the size in bytes of the user message. |
---|
1932 | |
---|
1933 | NOTES: |
---|
1934 | |
---|
1935 | This macro is only used in support of ``CONFIGURE_MESSAGE_BUFFER_MEMORY``. |
---|
1936 | |
---|
1937 | .. index:: CONFIGURE_MESSAGE_BUFFER_MEMORY |
---|
1938 | .. index:: configure message queue buffer memory |
---|
1939 | |
---|
1940 | .. _CONFIGURE_MESSAGE_BUFFER_MEMORY: |
---|
1941 | |
---|
1942 | CONFIGURE_MESSAGE_BUFFER_MEMORY |
---|
1943 | ------------------------------- |
---|
1944 | |
---|
1945 | CONSTANT: |
---|
1946 | ``CONFIGURE_MESSAGE_BUFFER_MEMORY`` |
---|
1947 | |
---|
1948 | DATA TYPE: |
---|
1949 | integer summation macro |
---|
1950 | |
---|
1951 | RANGE: |
---|
1952 | undefined (zero) or calculation resulting in a positive integer |
---|
1953 | |
---|
1954 | DEFAULT VALUE: |
---|
1955 | This is not defined by default, and zero (0) memory is reserved. |
---|
1956 | |
---|
1957 | DESCRIPTION: |
---|
1958 | This macro is set to the number of bytes the application requires to be |
---|
1959 | reserved for pending Classic API Message Queue buffers. |
---|
1960 | |
---|
1961 | NOTES: |
---|
1962 | The following illustrates how the help macro |
---|
1963 | ``CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE`` can be used to assist in |
---|
1964 | calculating the message buffer memory required. In this example, there are |
---|
1965 | two message queues used in this application. The first message queue has |
---|
1966 | maximum of 24 pending messages with the message structure defined by the |
---|
1967 | type ``one_message_type``. The other message queue has maximum of 500 |
---|
1968 | pending messages with the message structure defined by the type |
---|
1969 | ``other_message_type``. |
---|
1970 | |
---|
1971 | .. code-block:: c |
---|
1972 | |
---|
1973 | #define CONFIGURE_MESSAGE_BUFFER_MEMORY \ |
---|
1974 | (CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE( \ |
---|
1975 | 24, sizeof(one_message_type) \ |
---|
1976 | ) + \ |
---|
1977 | CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE( \ |
---|
1978 | 500, sizeof(other_message_type) \ |
---|
1979 | ) |
---|
1980 | |
---|
1981 | Seldom Used Configuration Parameters |
---|
1982 | ==================================== |
---|
1983 | |
---|
1984 | This section describes configuration parameters supported by |
---|
1985 | ``<rtems/confdefs.h>`` which are seldom used by applications. These parameters |
---|
1986 | tend to be oriented to debugging system configurations and providing |
---|
1987 | work-arounds when the memory estimated by ``<rtems/confdefs.h>`` is incorrect. |
---|
1988 | |
---|
1989 | .. index:: CONFIGURE_MEMORY_OVERHEAD |
---|
1990 | |
---|
1991 | .. _CONFIGURE_MEMORY_OVERHEAD: |
---|
1992 | |
---|
1993 | CONFIGURE_MEMORY_OVERHEAD |
---|
1994 | ------------------------- |
---|
1995 | |
---|
1996 | CONSTANT: |
---|
1997 | ``CONFIGURE_MEMORY_OVERHEAD`` |
---|
1998 | |
---|
1999 | DATA TYPE: |
---|
2000 | Unsigned integer (``size_t``). |
---|
2001 | |
---|
2002 | RANGE: |
---|
2003 | Zero or positive. |
---|
2004 | |
---|
2005 | DEFAULT VALUE: |
---|
2006 | The default value is 0. |
---|
2007 | |
---|
2008 | DESCRIPTION: |
---|
2009 | This parameter is set to the number of kilobytes the application wishes to |
---|
2010 | add to the requirements calculated by ``<rtems/confdefs.h>``. |
---|
2011 | |
---|
2012 | NOTES: |
---|
2013 | This configuration parameter should only be used when it is suspected that |
---|
2014 | a bug in ``<rtems/confdefs.h>`` has resulted in an underestimation. |
---|
2015 | Typically the memory allocation will be too low when an application does |
---|
2016 | not account for all message queue buffers or task stacks. |
---|
2017 | |
---|
2018 | .. index:: CONFIGURE_HAS_OWN_CONFIGURATION_TABLE |
---|
2019 | |
---|
2020 | .. _CONFIGURE_HAS_OWN_CONFIGURATION_TABLE: |
---|
2021 | |
---|
2022 | CONFIGURE_HAS_OWN_CONFIGURATION_TABLE |
---|
2023 | ------------------------------------- |
---|
2024 | |
---|
2025 | CONSTANT: |
---|
2026 | ``CONFIGURE_HAS_OWN_CONFIGURATION_TABLE`` |
---|
2027 | |
---|
2028 | DATA TYPE: |
---|
2029 | Boolean feature macro. |
---|
2030 | |
---|
2031 | RANGE: |
---|
2032 | Defined or undefined. |
---|
2033 | |
---|
2034 | DEFAULT VALUE: |
---|
2035 | This is not defined by default. |
---|
2036 | |
---|
2037 | DESCRIPTION: |
---|
2038 | This configuration parameter should only be defined if the application is |
---|
2039 | providing their own complete set of configuration tables. |
---|
2040 | |
---|
2041 | NOTES: |
---|
2042 | None. |
---|
2043 | |
---|
2044 | C Library Support Configuration |
---|
2045 | =============================== |
---|
2046 | |
---|
2047 | This section defines the file system and IO library related configuration |
---|
2048 | parameters supported by ``<rtems/confdefs.h>``. |
---|
2049 | |
---|
2050 | .. index:: CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS |
---|
2051 | .. index:: maximum file descriptors |
---|
2052 | |
---|
2053 | .. _CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS: |
---|
2054 | |
---|
2055 | CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS |
---|
2056 | ---------------------------------------- |
---|
2057 | |
---|
2058 | CONSTANT: |
---|
2059 | ``CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS`` |
---|
2060 | |
---|
2061 | DATA TYPE: |
---|
2062 | Unsigned integer (``uint32_t``). |
---|
2063 | |
---|
2064 | RANGE: |
---|
2065 | Zero or positive. |
---|
2066 | |
---|
2067 | DEFAULT VALUE: |
---|
2068 | If ``CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER`` is defined, then the |
---|
2069 | default value is 3, otherwise the default value is 0. Three file |
---|
2070 | descriptors allows RTEMS to support standard input, output, and error I/O |
---|
2071 | streams on ``/dev/console``. |
---|
2072 | |
---|
2073 | DESCRIPTION: |
---|
2074 | This configuration parameter is set to the maximum number of file like |
---|
2075 | objects that can be concurrently open. |
---|
2076 | |
---|
2077 | NOTES: |
---|
2078 | None. |
---|
2079 | |
---|
2080 | File System Configuration Parameters |
---|
2081 | ==================================== |
---|
2082 | |
---|
2083 | This section defines File System related configuration parameters. |
---|
2084 | |
---|
2085 | .. index:: CONFIGURE_HAS_OWN_MOUNT_TABLE |
---|
2086 | |
---|
2087 | .. _CONFIGURE_HAS_OWN_MOUNT_TABLE: |
---|
2088 | |
---|
2089 | CONFIGURE_HAS_OWN_MOUNT_TABLE |
---|
2090 | ----------------------------- |
---|
2091 | |
---|
2092 | CONSTANT: |
---|
2093 | ``CONFIGURE_HAS_OWN_MOUNT_TABLE`` |
---|
2094 | |
---|
2095 | DATA TYPE: |
---|
2096 | Undefined or an array of type ``rtems_filesystem_mount_table_t``. |
---|
2097 | |
---|
2098 | RANGE: |
---|
2099 | Undefined or an array of type ``rtems_filesystem_mount_table_t``. |
---|
2100 | |
---|
2101 | DEFAULT VALUE: |
---|
2102 | This is not defined by default. |
---|
2103 | |
---|
2104 | DESCRIPTION: |
---|
2105 | This configuration parameter is defined when the application provides their |
---|
2106 | own filesystem mount table. The mount table is an array of |
---|
2107 | ``rtems_filesystem_mount_table_t`` entries pointed to by the global |
---|
2108 | variable ``rtems_filesystem_mount_table``. The number of entries in this |
---|
2109 | table is in an integer variable named ``rtems_filesystem_mount_table_t``. |
---|
2110 | |
---|
2111 | .. COMMENT: XXX - is the variable name for the count right? |
---|
2112 | |
---|
2113 | NOTES: |
---|
2114 | None. |
---|
2115 | |
---|
2116 | .. COMMENT: XXX - Please provide an example |
---|
2117 | |
---|
2118 | .. index:: CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM |
---|
2119 | |
---|
2120 | .. _CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM: |
---|
2121 | |
---|
2122 | CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM |
---|
2123 | -------------------------------------- |
---|
2124 | |
---|
2125 | CONSTANT: |
---|
2126 | ``CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM`` |
---|
2127 | |
---|
2128 | DATA TYPE: |
---|
2129 | Boolean feature macro. |
---|
2130 | |
---|
2131 | RANGE: |
---|
2132 | Defined or undefined. |
---|
2133 | |
---|
2134 | DEFAULT VALUE: |
---|
2135 | This is not defined by default. If no other root file system configuration |
---|
2136 | parameters are specified, the IMFS will be used as the root file system. |
---|
2137 | |
---|
2138 | DESCRIPTION: |
---|
2139 | This configuration parameter is defined if the application wishes to use |
---|
2140 | the device-only filesytem as the root file system. |
---|
2141 | |
---|
2142 | NOTES: |
---|
2143 | The device-only filesystem supports only device nodes and is smaller in |
---|
2144 | executable code size than the full IMFS and miniIMFS. |
---|
2145 | |
---|
2146 | The devFS is comparable in functionality to the pseudo-filesystem name |
---|
2147 | space provided before RTEMS release 4.5.0. |
---|
2148 | |
---|
2149 | .. index:: CONFIGURE_MAXIMUM_DEVICES |
---|
2150 | |
---|
2151 | .. _CONFIGURE_MAXIMUM_DEVICES: |
---|
2152 | |
---|
2153 | CONFIGURE_MAXIMUM_DEVICES |
---|
2154 | ------------------------- |
---|
2155 | |
---|
2156 | CONSTANT: |
---|
2157 | ``CONFIGURE_MAXIMUM_DEVICES`` |
---|
2158 | |
---|
2159 | DATA TYPE: |
---|
2160 | Unsigned integer (``uint32_t``). |
---|
2161 | |
---|
2162 | RANGE: |
---|
2163 | Positive. |
---|
2164 | |
---|
2165 | DEFAULT VALUE: |
---|
2166 | If ``BSP_MAXIMUM_DEVICES`` is defined, then the default value is |
---|
2167 | ``BSP_MAXIMUM_DEVICES``, otherwise the default value is 4. |
---|
2168 | |
---|
2169 | DESCRIPTION: |
---|
2170 | ``CONFIGURE_MAXIMUM_DEVICES`` is defined to the number of individual |
---|
2171 | devices that may be registered in the device file system (devFS). |
---|
2172 | |
---|
2173 | NOTES: |
---|
2174 | This option is specific to the device file system (devFS) and should not be |
---|
2175 | confused with the ``CONFIGURE_MAXIMUM_DRIVERS`` option. This parameter |
---|
2176 | only impacts the devFS and thus is only used by ``<rtems/confdefs.h>`` when |
---|
2177 | ``CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM`` is specified. |
---|
2178 | |
---|
2179 | .. index:: CONFIGURE_APPLICATION_DISABLE_FILESYSTEM |
---|
2180 | |
---|
2181 | .. _CONFIGURE_APPLICATION_DISABLE_FILESYSTEM: |
---|
2182 | |
---|
2183 | CONFIGURE_APPLICATION_DISABLE_FILESYSTEM |
---|
2184 | ---------------------------------------- |
---|
2185 | |
---|
2186 | CONSTANT: |
---|
2187 | ``CONFIGURE_APPLICATION_DISABLE_FILESYSTEM`` |
---|
2188 | |
---|
2189 | DATA TYPE: |
---|
2190 | Boolean feature macro. |
---|
2191 | |
---|
2192 | RANGE: |
---|
2193 | Defined or undefined. |
---|
2194 | |
---|
2195 | DEFAULT VALUE: |
---|
2196 | This is not defined by default. If no other root file system configuration |
---|
2197 | parameters are specified, the IMFS will be used as the root file system. |
---|
2198 | |
---|
2199 | DESCRIPTION: |
---|
2200 | This configuration parameter is defined if the application dose not intend |
---|
2201 | to use any kind of filesystem support. This include the device |
---|
2202 | infrastructure necessary to support ``printf()``. |
---|
2203 | |
---|
2204 | NOTES: |
---|
2205 | None. |
---|
2206 | |
---|
2207 | .. index:: CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM |
---|
2208 | |
---|
2209 | .. _CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM: |
---|
2210 | |
---|
2211 | CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM |
---|
2212 | ----------------------------------------- |
---|
2213 | |
---|
2214 | CONSTANT: |
---|
2215 | ``CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM`` |
---|
2216 | |
---|
2217 | DATA TYPE: |
---|
2218 | Boolean feature macro. |
---|
2219 | |
---|
2220 | RANGE: |
---|
2221 | Defined or undefined. |
---|
2222 | |
---|
2223 | DEFAULT VALUE: |
---|
2224 | This is not defined by default. |
---|
2225 | |
---|
2226 | DESCRIPTION: |
---|
2227 | In case this configuration option is defined, then the following |
---|
2228 | configuration options will be defined as well |
---|
2229 | |
---|
2230 | - ``CONFIGURE_IMFS_DISABLE_CHMOD``, |
---|
2231 | |
---|
2232 | - ``CONFIGURE_IMFS_DISABLE_CHOWN``, |
---|
2233 | |
---|
2234 | - ``CONFIGURE_IMFS_DISABLE_UTIME``, |
---|
2235 | |
---|
2236 | - ``CONFIGURE_IMFS_DISABLE_LINK``, |
---|
2237 | |
---|
2238 | - ``CONFIGURE_IMFS_DISABLE_SYMLINK``, |
---|
2239 | |
---|
2240 | - ``CONFIGURE_IMFS_DISABLE_READLINK``, |
---|
2241 | |
---|
2242 | - ``CONFIGURE_IMFS_DISABLE_RENAME``, and |
---|
2243 | |
---|
2244 | - ``CONFIGURE_IMFS_DISABLE_UNMOUNT``. |
---|
2245 | |
---|
2246 | .. index:: CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK |
---|
2247 | |
---|
2248 | .. _CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK: |
---|
2249 | |
---|
2250 | CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK |
---|
2251 | -------------------------------------- |
---|
2252 | |
---|
2253 | CONSTANT: |
---|
2254 | ``CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK`` |
---|
2255 | |
---|
2256 | DATA TYPE: |
---|
2257 | Boolean feature macro. |
---|
2258 | |
---|
2259 | RANGE: |
---|
2260 | Valid values for this configuration parameter are a power of two (2) |
---|
2261 | between 16 and 512 inclusive. In other words, valid values are 16, 32, 64, |
---|
2262 | 128, 256,and 512. |
---|
2263 | |
---|
2264 | DEFAULT VALUE: |
---|
2265 | The default IMFS block size is 128 bytes. |
---|
2266 | |
---|
2267 | DESCRIPTION: |
---|
2268 | This configuration parameter specifies the block size for in-memory files |
---|
2269 | managed by the IMFS. The configured block size has two impacts. The first |
---|
2270 | is the average amount of unused memory in the last block of each file. For |
---|
2271 | example, when the block size is 512, on average one-half of the last block |
---|
2272 | of each file will remain unused and the memory is wasted. In contrast, when |
---|
2273 | the block size is 16, the average unused memory per file is only 8 |
---|
2274 | bytes. However, it requires more allocations for the same size file and |
---|
2275 | thus more overhead per block for the dynamic memory management. |
---|
2276 | |
---|
2277 | Second, the block size has an impact on the maximum size file that can be |
---|
2278 | stored in the IMFS. With smaller block size, the maximum file size is |
---|
2279 | correspondingly smaller. The following shows the maximum file size possible |
---|
2280 | based on the configured block size: |
---|
2281 | |
---|
2282 | - when the block size is 16 bytes, the maximum file size is 1,328 bytes. |
---|
2283 | |
---|
2284 | - when the block size is 32 bytes, the maximum file size is 18,656 bytes. |
---|
2285 | |
---|
2286 | - when the block size is 64 bytes, the maximum file size is 279,488 bytes. |
---|
2287 | |
---|
2288 | - when the block size is 128 bytes, the maximum file size is 4,329,344 bytes. |
---|
2289 | |
---|
2290 | - when the block size is 256 bytes, the maximum file size is 68,173,568 bytes. |
---|
2291 | |
---|
2292 | - when the block size is 512 bytes, the maximum file size is 1,082,195,456 |
---|
2293 | bytes. |
---|
2294 | |
---|
2295 | .. index:: CONFIGURE_IMFS_DISABLE_CHOWN |
---|
2296 | |
---|
2297 | .. _CONFIGURE_IMFS_DISABLE_CHOWN: |
---|
2298 | |
---|
2299 | CONFIGURE_IMFS_DISABLE_CHOWN |
---|
2300 | ---------------------------- |
---|
2301 | |
---|
2302 | CONSTANT: |
---|
2303 | ``CONFIGURE_IMFS_DISABLE_CHOWN`` |
---|
2304 | |
---|
2305 | DATA TYPE: |
---|
2306 | Boolean feature macro. |
---|
2307 | |
---|
2308 | RANGE: |
---|
2309 | Defined or undefined. |
---|
2310 | |
---|
2311 | DEFAULT VALUE: |
---|
2312 | This is not defined by default. |
---|
2313 | |
---|
2314 | DESCRIPTION: |
---|
2315 | In case this configuration option is defined, then the support to change |
---|
2316 | the owner is disabled in the root IMFS. |
---|
2317 | |
---|
2318 | .. index:: CONFIGURE_IMFS_DISABLE_CHMOD |
---|
2319 | |
---|
2320 | .. _CONFIGURE_IMFS_DISABLE_CHMOD: |
---|
2321 | |
---|
2322 | CONFIGURE_IMFS_DISABLE_CHMOD |
---|
2323 | ---------------------------- |
---|
2324 | |
---|
2325 | CONSTANT: |
---|
2326 | ``CONFIGURE_IMFS_DISABLE_CHMOD`` |
---|
2327 | |
---|
2328 | DATA TYPE: |
---|
2329 | Boolean feature macro. |
---|
2330 | |
---|
2331 | RANGE: |
---|
2332 | Defined or undefined. |
---|
2333 | |
---|
2334 | DEFAULT VALUE: |
---|
2335 | This is not defined by default. |
---|
2336 | |
---|
2337 | DESCRIPTION: |
---|
2338 | In case this configuration option is defined, then the support to change |
---|
2339 | the mode is disabled in the root IMFS. |
---|
2340 | |
---|
2341 | .. index:: CONFIGURE_IMFS_DISABLE_UTIME |
---|
2342 | |
---|
2343 | .. _CONFIGURE_IMFS_DISABLE_UTIME: |
---|
2344 | |
---|
2345 | CONFIGURE_IMFS_DISABLE_UTIME |
---|
2346 | ---------------------------- |
---|
2347 | |
---|
2348 | CONSTANT: |
---|
2349 | ``CONFIGURE_IMFS_DISABLE_UTIME`` |
---|
2350 | |
---|
2351 | DATA TYPE: |
---|
2352 | Boolean feature macro. |
---|
2353 | |
---|
2354 | RANGE: |
---|
2355 | Defined or undefined. |
---|
2356 | |
---|
2357 | DEFAULT VALUE: |
---|
2358 | This is not defined by default. |
---|
2359 | |
---|
2360 | DESCRIPTION: |
---|
2361 | In case this configuration option is defined, then the support to change |
---|
2362 | times is disabled in the root IMFS. |
---|
2363 | |
---|
2364 | .. index:: CONFIGURE_IMFS_DISABLE_LINK |
---|
2365 | |
---|
2366 | .. _CONFIGURE_IMFS_DISABLE_LINK: |
---|
2367 | |
---|
2368 | CONFIGURE_IMFS_DISABLE_LINK |
---|
2369 | --------------------------- |
---|
2370 | |
---|
2371 | CONSTANT: |
---|
2372 | ``CONFIGURE_IMFS_DISABLE_LINK`` |
---|
2373 | |
---|
2374 | DATA TYPE: |
---|
2375 | Boolean feature macro. |
---|
2376 | |
---|
2377 | RANGE: |
---|
2378 | Defined or undefined. |
---|
2379 | |
---|
2380 | DEFAULT VALUE: |
---|
2381 | This is not defined by default. |
---|
2382 | |
---|
2383 | DESCRIPTION: |
---|
2384 | In case this configuration option is defined, then the support to create |
---|
2385 | hard links is disabled in the root IMFS. |
---|
2386 | |
---|
2387 | .. index:: CONFIGURE_IMFS_DISABLE_SYMLINK |
---|
2388 | |
---|
2389 | .. _CONFIGURE_IMFS_DISABLE_SYMLINK: |
---|
2390 | |
---|
2391 | CONFIGURE_IMFS_DISABLE_SYMLINK |
---|
2392 | ------------------------------ |
---|
2393 | |
---|
2394 | CONSTANT: |
---|
2395 | ``CONFIGURE_IMFS_DISABLE_SYMLINK`` |
---|
2396 | |
---|
2397 | DATA TYPE: |
---|
2398 | Boolean feature macro. |
---|
2399 | |
---|
2400 | RANGE: |
---|
2401 | Defined or undefined. |
---|
2402 | |
---|
2403 | DEFAULT VALUE: |
---|
2404 | This is not defined by default. |
---|
2405 | |
---|
2406 | DESCRIPTION: |
---|
2407 | In case this configuration option is defined, then the support to create |
---|
2408 | symbolic links is disabled in the root IMFS. |
---|
2409 | |
---|
2410 | .. index:: CONFIGURE_IMFS_DISABLE_READLINK |
---|
2411 | |
---|
2412 | .. _CONFIGURE_IMFS_DISABLE_READLINK: |
---|
2413 | |
---|
2414 | CONFIGURE_IMFS_DISABLE_READLINK |
---|
2415 | ------------------------------- |
---|
2416 | |
---|
2417 | CONSTANT: |
---|
2418 | ``CONFIGURE_IMFS_DISABLE_READLINK`` |
---|
2419 | |
---|
2420 | DATA TYPE: |
---|
2421 | Boolean feature macro. |
---|
2422 | |
---|
2423 | RANGE: |
---|
2424 | Defined or undefined. |
---|
2425 | |
---|
2426 | DEFAULT VALUE: |
---|
2427 | This is not defined by default. |
---|
2428 | |
---|
2429 | DESCRIPTION: |
---|
2430 | In case this configuration option is defined, then the support to read |
---|
2431 | symbolic links is disabled in the root IMFS. |
---|
2432 | |
---|
2433 | .. index:: CONFIGURE_IMFS_DISABLE_RENAME |
---|
2434 | |
---|
2435 | .. _CONFIGURE_IMFS_DISABLE_RENAME: |
---|
2436 | |
---|
2437 | CONFIGURE_IMFS_DISABLE_RENAME |
---|
2438 | ----------------------------- |
---|
2439 | |
---|
2440 | CONSTANT: |
---|
2441 | ``CONFIGURE_IMFS_DISABLE_RENAME`` |
---|
2442 | |
---|
2443 | DATA TYPE: |
---|
2444 | Boolean feature macro. |
---|
2445 | |
---|
2446 | RANGE: |
---|
2447 | Defined or undefined. |
---|
2448 | |
---|
2449 | DEFAULT VALUE: |
---|
2450 | This is not defined by default. |
---|
2451 | |
---|
2452 | DESCRIPTION: |
---|
2453 | In case this configuration option is defined, then the support to rename |
---|
2454 | nodes is disabled in the root IMFS. |
---|
2455 | |
---|
2456 | .. index:: CONFIGURE_IMFS_DISABLE_READDIR |
---|
2457 | |
---|
2458 | .. _CONFIGURE_IMFS_DISABLE_READDIR: |
---|
2459 | |
---|
2460 | CONFIGURE_IMFS_DISABLE_READDIR |
---|
2461 | ------------------------------ |
---|
2462 | |
---|
2463 | CONSTANT: |
---|
2464 | ``CONFIGURE_IMFS_DISABLE_READDIR`` |
---|
2465 | |
---|
2466 | DATA TYPE: |
---|
2467 | Boolean feature macro. |
---|
2468 | |
---|
2469 | RANGE: |
---|
2470 | Defined or undefined. |
---|
2471 | |
---|
2472 | DEFAULT VALUE: |
---|
2473 | This is not defined by default. |
---|
2474 | |
---|
2475 | DESCRIPTION: |
---|
2476 | In case this configuration option is defined, then the support to read a |
---|
2477 | directory is disabled in the root IMFS. It is still possible to open nodes |
---|
2478 | in a directory. |
---|
2479 | |
---|
2480 | .. index:: CONFIGURE_IMFS_DISABLE_MOUNT |
---|
2481 | |
---|
2482 | .. _CONFIGURE_IMFS_DISABLE_MOUNT: |
---|
2483 | |
---|
2484 | CONFIGURE_IMFS_DISABLE_MOUNT |
---|
2485 | ---------------------------- |
---|
2486 | |
---|
2487 | CONSTANT: |
---|
2488 | ``CONFIGURE_IMFS_DISABLE_MOUNT`` |
---|
2489 | |
---|
2490 | DATA TYPE: |
---|
2491 | Boolean feature macro. |
---|
2492 | |
---|
2493 | RANGE: |
---|
2494 | Defined or undefined. |
---|
2495 | |
---|
2496 | DEFAULT VALUE: |
---|
2497 | This is not defined by default. |
---|
2498 | |
---|
2499 | DESCRIPTION: |
---|
2500 | In case this configuration option is defined, then the support to mount |
---|
2501 | other file systems is disabled in the root IMFS. |
---|
2502 | |
---|
2503 | .. index:: CONFIGURE_IMFS_DISABLE_UNMOUNT |
---|
2504 | |
---|
2505 | .. _CONFIGURE_IMFS_DISABLE_UNMOUNT: |
---|
2506 | |
---|
2507 | CONFIGURE_IMFS_DISABLE_UNMOUNT |
---|
2508 | ------------------------------ |
---|
2509 | |
---|
2510 | CONSTANT: |
---|
2511 | ``CONFIGURE_IMFS_DISABLE_UNMOUNT`` |
---|
2512 | |
---|
2513 | DATA TYPE: |
---|
2514 | Boolean feature macro. |
---|
2515 | |
---|
2516 | RANGE: |
---|
2517 | Defined or undefined. |
---|
2518 | |
---|
2519 | DEFAULT VALUE: |
---|
2520 | This is not defined by default. |
---|
2521 | |
---|
2522 | DESCRIPTION: |
---|
2523 | In case this configuration option is defined, then the support to unmount |
---|
2524 | file systems is disabled in the root IMFS. |
---|
2525 | |
---|
2526 | .. index:: CONFIGURE_IMFS_DISABLE_MKNOD |
---|
2527 | |
---|
2528 | .. _CONFIGURE_IMFS_DISABLE_MKNOD: |
---|
2529 | |
---|
2530 | CONFIGURE_IMFS_DISABLE_MKNOD |
---|
2531 | ---------------------------- |
---|
2532 | |
---|
2533 | CONSTANT: |
---|
2534 | ``CONFIGURE_IMFS_DISABLE_MKNOD`` |
---|
2535 | |
---|
2536 | DATA TYPE: |
---|
2537 | Boolean feature macro. |
---|
2538 | |
---|
2539 | RANGE: |
---|
2540 | Defined or undefined. |
---|
2541 | |
---|
2542 | DEFAULT VALUE: |
---|
2543 | This is not defined by default. |
---|
2544 | |
---|
2545 | DESCRIPTION: |
---|
2546 | In case this configuration option is defined, then the support to make |
---|
2547 | directories, devices, regular files and FIFOs is disabled in the root IMFS. |
---|
2548 | |
---|
2549 | .. index:: CONFIGURE_IMFS_DISABLE_MKNOD_FILE |
---|
2550 | |
---|
2551 | .. _CONFIGURE_IMFS_DISABLE_MKNOD_FILE: |
---|
2552 | |
---|
2553 | CONFIGURE_IMFS_DISABLE_MKNOD_FILE |
---|
2554 | --------------------------------- |
---|
2555 | |
---|
2556 | CONSTANT: |
---|
2557 | ``CONFIGURE_IMFS_DISABLE_MKNOD_FILE`` |
---|
2558 | |
---|
2559 | DATA TYPE: |
---|
2560 | Boolean feature macro. |
---|
2561 | |
---|
2562 | RANGE: |
---|
2563 | Defined or undefined. |
---|
2564 | |
---|
2565 | DEFAULT VALUE: |
---|
2566 | This is not defined by default. |
---|
2567 | |
---|
2568 | DESCRIPTION: |
---|
2569 | In case this configuration option is defined, then the support to make |
---|
2570 | regular files is disabled in the root IMFS. |
---|
2571 | |
---|
2572 | .. index:: CONFIGURE_IMFS_DISABLE_RMNOD |
---|
2573 | |
---|
2574 | .. _CONFIGURE_IMFS_DISABLE_RMNOD: |
---|
2575 | |
---|
2576 | CONFIGURE_IMFS_DISABLE_RMNOD |
---|
2577 | ---------------------------- |
---|
2578 | |
---|
2579 | CONSTANT: |
---|
2580 | ``CONFIGURE_IMFS_DISABLE_RMNOD`` |
---|
2581 | |
---|
2582 | DATA TYPE: |
---|
2583 | Boolean feature macro. |
---|
2584 | |
---|
2585 | RANGE: |
---|
2586 | Defined or undefined. |
---|
2587 | |
---|
2588 | DEFAULT VALUE: |
---|
2589 | This is not defined by default. |
---|
2590 | |
---|
2591 | DESCRIPTION: |
---|
2592 | In case this configuration option is defined, then the support to remove |
---|
2593 | nodes is disabled in the root IMFS. |
---|
2594 | |
---|
2595 | Block Device Cache Configuration |
---|
2596 | ================================ |
---|
2597 | |
---|
2598 | This section defines Block Device Cache (bdbuf) related configuration |
---|
2599 | parameters. |
---|
2600 | |
---|
2601 | .. index:: CONFIGURE_APPLICATION_NEEDS_LIBBLOCK |
---|
2602 | |
---|
2603 | .. _CONFIGURE_APPLICATION_NEEDS_LIBBLOCK: |
---|
2604 | |
---|
2605 | CONFIGURE_APPLICATION_NEEDS_LIBBLOCK |
---|
2606 | ------------------------------------ |
---|
2607 | |
---|
2608 | CONSTANT: |
---|
2609 | ``CONFIGURE_APPLICATION_NEEDS_LIBBLOCK`` |
---|
2610 | |
---|
2611 | DATA TYPE: |
---|
2612 | Boolean feature macro. |
---|
2613 | |
---|
2614 | RANGE: |
---|
2615 | Defined or undefined. |
---|
2616 | |
---|
2617 | DEFAULT VALUE: |
---|
2618 | This is not defined by default. |
---|
2619 | |
---|
2620 | DESCRIPTION: |
---|
2621 | Provides a Block Device Cache configuration. |
---|
2622 | |
---|
2623 | NOTES: |
---|
2624 | Each option of the Block Device Cache configuration can be explicitly set |
---|
2625 | by the user with the configuration options below. The Block Device Cache |
---|
2626 | is used for example by the RFS and DOSFS file systems. |
---|
2627 | |
---|
2628 | .. index:: CONFIGURE_BDBUF_CACHE_MEMORY_SIZE |
---|
2629 | |
---|
2630 | .. _CONFIGURE_BDBUF_CACHE_MEMORY_SIZE: |
---|
2631 | |
---|
2632 | CONFIGURE_BDBUF_CACHE_MEMORY_SIZE |
---|
2633 | --------------------------------- |
---|
2634 | |
---|
2635 | CONSTANT: |
---|
2636 | ``CONFIGURE_BDBUF_CACHE_MEMORY_SIZE`` |
---|
2637 | |
---|
2638 | DATA TYPE: |
---|
2639 | Unsigned integer (``size_t``). |
---|
2640 | |
---|
2641 | RANGE: |
---|
2642 | Positive. |
---|
2643 | |
---|
2644 | DEFAULT VALUE: |
---|
2645 | The default value is 32768 bytes. |
---|
2646 | |
---|
2647 | DESCRIPTION: |
---|
2648 | Size of the cache memory in bytes. |
---|
2649 | |
---|
2650 | NOTES: |
---|
2651 | None. |
---|
2652 | |
---|
2653 | .. index:: CONFIGURE_BDBUF_BUFFER_MIN_SIZE |
---|
2654 | |
---|
2655 | .. _CONFIGURE_BDBUF_BUFFER_MIN_SIZE: |
---|
2656 | |
---|
2657 | CONFIGURE_BDBUF_BUFFER_MIN_SIZE |
---|
2658 | ------------------------------- |
---|
2659 | |
---|
2660 | CONSTANT: |
---|
2661 | ``CONFIGURE_BDBUF_BUFFER_MIN_SIZE`` |
---|
2662 | |
---|
2663 | DATA TYPE: |
---|
2664 | Unsigned integer (``uint32_t``). |
---|
2665 | |
---|
2666 | RANGE: |
---|
2667 | Positive. |
---|
2668 | |
---|
2669 | DEFAULT VALUE: |
---|
2670 | The default value is 512 bytes. |
---|
2671 | |
---|
2672 | DESCRIPTION: |
---|
2673 | Defines the minimum size of a buffer in bytes. |
---|
2674 | |
---|
2675 | NOTES: |
---|
2676 | None. |
---|
2677 | |
---|
2678 | .. index:: CONFIGURE_BDBUF_BUFFER_MAX_SIZE |
---|
2679 | |
---|
2680 | .. _CONFIGURE_BDBUF_BUFFER_MAX_SIZE: |
---|
2681 | |
---|
2682 | CONFIGURE_BDBUF_BUFFER_MAX_SIZE |
---|
2683 | ------------------------------- |
---|
2684 | |
---|
2685 | CONSTANT: |
---|
2686 | ``CONFIGURE_BDBUF_BUFFER_MAX_SIZE`` |
---|
2687 | |
---|
2688 | DATA TYPE: |
---|
2689 | Unsigned integer (``uint32_t``). |
---|
2690 | |
---|
2691 | RANGE: |
---|
2692 | It must be positive and an integral multiple of the buffer minimum size. |
---|
2693 | |
---|
2694 | DEFAULT VALUE: |
---|
2695 | The default value is 4096 bytes. |
---|
2696 | |
---|
2697 | DESCRIPTION: |
---|
2698 | Defines the maximum size of a buffer in bytes. |
---|
2699 | |
---|
2700 | NOTES: |
---|
2701 | None. |
---|
2702 | |
---|
2703 | .. index:: CONFIGURE_SWAPOUT_SWAP_PERIOD |
---|
2704 | |
---|
2705 | .. _CONFIGURE_SWAPOUT_SWAP_PERIOD: |
---|
2706 | |
---|
2707 | CONFIGURE_SWAPOUT_SWAP_PERIOD |
---|
2708 | ----------------------------- |
---|
2709 | |
---|
2710 | CONSTANT: |
---|
2711 | ``CONFIGURE_SWAPOUT_SWAP_PERIOD`` |
---|
2712 | |
---|
2713 | DATA TYPE: |
---|
2714 | Unsigned integer (``uint32_t``). |
---|
2715 | |
---|
2716 | RANGE: |
---|
2717 | Positive. |
---|
2718 | |
---|
2719 | DEFAULT VALUE: |
---|
2720 | The default value is 250 milliseconds. |
---|
2721 | |
---|
2722 | DESCRIPTION: |
---|
2723 | Defines the swapout task swap period in milliseconds. |
---|
2724 | |
---|
2725 | NOTES: |
---|
2726 | None. |
---|
2727 | |
---|
2728 | .. index:: CONFIGURE_SWAPOUT_BLOCK_HOLD |
---|
2729 | |
---|
2730 | .. _CONFIGURE_SWAPOUT_BLOCK_HOLD: |
---|
2731 | |
---|
2732 | CONFIGURE_SWAPOUT_BLOCK_HOLD |
---|
2733 | ---------------------------- |
---|
2734 | |
---|
2735 | CONSTANT: |
---|
2736 | ``CONFIGURE_SWAPOUT_BLOCK_HOLD`` |
---|
2737 | |
---|
2738 | DATA TYPE: |
---|
2739 | Unsigned integer (``uint32_t``). |
---|
2740 | |
---|
2741 | RANGE: |
---|
2742 | Positive. |
---|
2743 | |
---|
2744 | DEFAULT VALUE: |
---|
2745 | The default value is 1000 milliseconds. |
---|
2746 | |
---|
2747 | DESCRIPTION: |
---|
2748 | Defines the swapout task maximum block hold time in milliseconds. |
---|
2749 | |
---|
2750 | NOTES: |
---|
2751 | None. |
---|
2752 | |
---|
2753 | .. index:: CONFIGURE_SWAPOUT_TASK_PRIORITY |
---|
2754 | |
---|
2755 | .. _CONFIGURE_SWAPOUT_TASK_PRIORITY: |
---|
2756 | |
---|
2757 | CONFIGURE_SWAPOUT_TASK_PRIORITY |
---|
2758 | ------------------------------- |
---|
2759 | |
---|
2760 | CONSTANT: |
---|
2761 | ``CONFIGURE_SWAPOUT_TASK_PRIORITY`` |
---|
2762 | |
---|
2763 | DATA TYPE: |
---|
2764 | Task priority (``rtems_task_priority``). |
---|
2765 | |
---|
2766 | RANGE: |
---|
2767 | Valid task priority. |
---|
2768 | |
---|
2769 | DEFAULT VALUE: |
---|
2770 | The default value is 15. |
---|
2771 | |
---|
2772 | DESCRIPTION: |
---|
2773 | Defines the swapout task priority. |
---|
2774 | |
---|
2775 | NOTES: |
---|
2776 | None. |
---|
2777 | |
---|
2778 | .. index:: CONFIGURE_BDBUF_MAX_READ_AHEAD_BLOCKS |
---|
2779 | |
---|
2780 | .. _CONFIGURE_BDBUF_MAX_READ_AHEAD_BLOCKS: |
---|
2781 | |
---|
2782 | CONFIGURE_BDBUF_MAX_READ_AHEAD_BLOCKS |
---|
2783 | ------------------------------------- |
---|
2784 | |
---|
2785 | CONSTANT: |
---|
2786 | ``CONFIGURE_BDBUF_MAX_READ_AHEAD_BLOCKS`` |
---|
2787 | |
---|
2788 | DATA TYPE: |
---|
2789 | Unsigned integer (``uint32_t``). |
---|
2790 | |
---|
2791 | RANGE: |
---|
2792 | Positive. |
---|
2793 | |
---|
2794 | DEFAULT VALUE: |
---|
2795 | The default value is 0. |
---|
2796 | |
---|
2797 | DESCRIPTION: |
---|
2798 | Defines the maximum blocks per read-ahead request. |
---|
2799 | |
---|
2800 | NOTES: |
---|
2801 | A value of 0 disables the read-ahead task (default). The read-ahead task |
---|
2802 | will issue speculative read transfers if a sequential access pattern is |
---|
2803 | detected. This can improve the performance on some systems. |
---|
2804 | |
---|
2805 | .. index:: CONFIGURE_BDBUF_MAX_WRITE_BLOCKS |
---|
2806 | |
---|
2807 | .. _CONFIGURE_BDBUF_MAX_WRITE_BLOCKS: |
---|
2808 | |
---|
2809 | CONFIGURE_BDBUF_MAX_WRITE_BLOCKS |
---|
2810 | -------------------------------- |
---|
2811 | |
---|
2812 | CONSTANT: |
---|
2813 | ``CONFIGURE_BDBUF_MAX_WRITE_BLOCKS`` |
---|
2814 | |
---|
2815 | DATA TYPE: |
---|
2816 | Unsigned integer (``uint32_t``). |
---|
2817 | |
---|
2818 | RANGE: |
---|
2819 | Positive. |
---|
2820 | |
---|
2821 | DEFAULT VALUE: |
---|
2822 | The default value is 16. |
---|
2823 | |
---|
2824 | DESCRIPTION: |
---|
2825 | Defines the maximum blocks per write request. |
---|
2826 | |
---|
2827 | NOTES: |
---|
2828 | None. |
---|
2829 | |
---|
2830 | .. index:: CONFIGURE_BDBUF_TASK_STACK_SIZE |
---|
2831 | |
---|
2832 | .. _CONFIGURE_BDBUF_TASK_STACK_SIZE: |
---|
2833 | |
---|
2834 | CONFIGURE_BDBUF_TASK_STACK_SIZE |
---|
2835 | ------------------------------- |
---|
2836 | |
---|
2837 | CONSTANT: |
---|
2838 | ``CONFIGURE_BDBUF_TASK_STACK_SIZE`` |
---|
2839 | |
---|
2840 | DATA TYPE: |
---|
2841 | Unsigned integer (``size_t``). |
---|
2842 | |
---|
2843 | RANGE: |
---|
2844 | Zero or positive. |
---|
2845 | |
---|
2846 | DEFAULT VALUE: |
---|
2847 | The default value is RTEMS_MINIMUM_STACK_SIZE. |
---|
2848 | |
---|
2849 | DESCRIPTION: |
---|
2850 | Defines the task stack size of the Block Device Cache tasks in bytes. |
---|
2851 | |
---|
2852 | NOTES: |
---|
2853 | None. |
---|
2854 | |
---|
2855 | .. index:: CONFIGURE_BDBUF_READ_AHEAD_TASK_PRIORITY |
---|
2856 | |
---|
2857 | .. _CONFIGURE_BDBUF_READ_AHEAD_TASK_PRIORITY: |
---|
2858 | |
---|
2859 | CONFIGURE_BDBUF_READ_AHEAD_TASK_PRIORITY |
---|
2860 | ---------------------------------------- |
---|
2861 | |
---|
2862 | CONSTANT: |
---|
2863 | ``CONFIGURE_BDBUF_READ_AHEAD_TASK_PRIORITY`` |
---|
2864 | |
---|
2865 | DATA TYPE: |
---|
2866 | Task priority (``rtems_task_priority``). |
---|
2867 | |
---|
2868 | RANGE: |
---|
2869 | Valid task priority. |
---|
2870 | |
---|
2871 | DEFAULT VALUE: |
---|
2872 | The default value is 15. |
---|
2873 | |
---|
2874 | DESCRIPTION: |
---|
2875 | Defines the read-ahead task priority. |
---|
2876 | |
---|
2877 | NOTES: |
---|
2878 | None. |
---|
2879 | |
---|
2880 | .. index:: CONFIGURE_SWAPOUT_WORKER_TASKS |
---|
2881 | |
---|
2882 | .. _CONFIGURE_SWAPOUT_WORKER_TASKS: |
---|
2883 | |
---|
2884 | CONFIGURE_SWAPOUT_WORKER_TASKS |
---|
2885 | ------------------------------ |
---|
2886 | |
---|
2887 | CONSTANT: |
---|
2888 | ``CONFIGURE_SWAPOUT_WORKER_TASKS`` |
---|
2889 | |
---|
2890 | DATA TYPE: |
---|
2891 | Unsigned integer (``size_t``). |
---|
2892 | |
---|
2893 | RANGE: |
---|
2894 | Zero or positive. |
---|
2895 | |
---|
2896 | DEFAULT VALUE: |
---|
2897 | The default value is 0. |
---|
2898 | |
---|
2899 | DESCRIPTION: |
---|
2900 | Defines the swapout worker task count. |
---|
2901 | |
---|
2902 | NOTES: |
---|
2903 | None. |
---|
2904 | |
---|
2905 | .. index:: CONFIGURE_SWAPOUT_WORKER_TASK_PRIORITY |
---|
2906 | |
---|
2907 | .. _CONFIGURE_SWAPOUT_WORKER_TASK_PRIORITY: |
---|
2908 | |
---|
2909 | CONFIGURE_SWAPOUT_WORKER_TASK_PRIORITY |
---|
2910 | -------------------------------------- |
---|
2911 | |
---|
2912 | CONSTANT: |
---|
2913 | ``CONFIGURE_SWAPOUT_WORKER_TASK_PRIORITY`` |
---|
2914 | |
---|
2915 | DATA TYPE: |
---|
2916 | Task priority (``rtems_task_priority``). |
---|
2917 | |
---|
2918 | RANGE: |
---|
2919 | Valid task priority. |
---|
2920 | |
---|
2921 | DEFAULT VALUE: |
---|
2922 | The default value is 15. |
---|
2923 | |
---|
2924 | DESCRIPTION: |
---|
2925 | Defines the swapout worker task priority. |
---|
2926 | |
---|
2927 | NOTES: |
---|
2928 | None. |
---|
2929 | |
---|
2930 | BSP Specific Settings |
---|
2931 | ===================== |
---|
2932 | |
---|
2933 | This section describes BSP specific configuration settings used by |
---|
2934 | ``<rtems/confdefs.h>``. The BSP specific configuration settings are defined in |
---|
2935 | ``<bsp.h>``. |
---|
2936 | |
---|
2937 | .. index:: CONFIGURE_DISABLE_BSP_SETTINGS |
---|
2938 | |
---|
2939 | .. _CONFIGURE_DISABLE_BSP_SETTINGS: |
---|
2940 | |
---|
2941 | CONFIGURE_DISABLE_BSP_SETTINGS |
---|
2942 | ------------------------------ |
---|
2943 | |
---|
2944 | CONSTANT: |
---|
2945 | ``CONFIGURE_DISABLE_BSP_SETTINGS`` |
---|
2946 | |
---|
2947 | DATA TYPE: |
---|
2948 | Boolean feature macro. |
---|
2949 | |
---|
2950 | RANGE: |
---|
2951 | Defined or undefined. |
---|
2952 | |
---|
2953 | DEFAULT VALUE: |
---|
2954 | This is not defined by default. |
---|
2955 | |
---|
2956 | DESCRIPTION: |
---|
2957 | All BSP specific configuration settings can be disabled by the application |
---|
2958 | with the ``CONFIGURE_DISABLE_BSP_SETTINGS`` option. |
---|
2959 | |
---|
2960 | NOTES: |
---|
2961 | None. |
---|
2962 | |
---|
2963 | .. index:: CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK |
---|
2964 | |
---|
2965 | .. _CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK: |
---|
2966 | |
---|
2967 | CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK |
---|
2968 | ---------------------------------- |
---|
2969 | |
---|
2970 | CONSTANT: |
---|
2971 | ``CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK`` |
---|
2972 | |
---|
2973 | DATA TYPE: |
---|
2974 | Boolean feature macro. |
---|
2975 | |
---|
2976 | RANGE: |
---|
2977 | Defined or undefined. |
---|
2978 | |
---|
2979 | DEFAULT VALUE: |
---|
2980 | This option is BSP specific. |
---|
2981 | |
---|
2982 | DESCRIPTION: |
---|
2983 | This configuration parameter is defined by a BSP to indicate that it does |
---|
2984 | not allocate all available memory to the C Program Heap used by the Malloc |
---|
2985 | Family of routines. |
---|
2986 | |
---|
2987 | If defined, when ``malloc()`` is unable to allocate memory, it will call |
---|
2988 | the BSP supplied ``sbrk()`` to obtain more memory. |
---|
2989 | |
---|
2990 | NOTES: |
---|
2991 | This parameter should not be defined by the application. Only the BSP knows |
---|
2992 | how it allocates memory to the C Program Heap. |
---|
2993 | |
---|
2994 | .. index:: BSP_IDLE_TASK_BODY |
---|
2995 | |
---|
2996 | .. _BSP_IDLE_TASK_BODY: |
---|
2997 | |
---|
2998 | BSP_IDLE_TASK_BODY |
---|
2999 | ------------------ |
---|
3000 | |
---|
3001 | CONSTANT: |
---|
3002 | ``BSP_IDLE_TASK_BODY`` |
---|
3003 | |
---|
3004 | DATA TYPE: |
---|
3005 | Function pointer. |
---|
3006 | |
---|
3007 | RANGE: |
---|
3008 | Undefined or valid function pointer. |
---|
3009 | |
---|
3010 | DEFAULT VALUE: |
---|
3011 | This option is BSP specific. |
---|
3012 | |
---|
3013 | DESCRIPTION: |
---|
3014 | If ``BSP_IDLE_TASK_BODY`` is defined by the BSP and |
---|
3015 | ``CONFIGURE_IDLE_TASK_BODY`` is not defined by the application, then this |
---|
3016 | BSP specific idle task body will be used. |
---|
3017 | |
---|
3018 | NOTES: |
---|
3019 | As it has knowledge of the specific CPU model, system controller logic, and |
---|
3020 | peripheral buses, a BSP specific IDLE task may be capable of turning |
---|
3021 | components off to save power during extended periods of no task activity |
---|
3022 | |
---|
3023 | .. index:: BSP_IDLE_TASK_STACK_SIZE |
---|
3024 | |
---|
3025 | .. _BSP_IDLE_TASK_STACK_SIZE: |
---|
3026 | |
---|
3027 | BSP_IDLE_TASK_STACK_SIZE |
---|
3028 | ------------------------ |
---|
3029 | |
---|
3030 | CONSTANT: |
---|
3031 | ``BSP_IDLE_TASK_STACK_SIZE`` |
---|
3032 | |
---|
3033 | DATA TYPE: |
---|
3034 | Unsigned integer (``size_t``). |
---|
3035 | |
---|
3036 | RANGE: |
---|
3037 | Undefined or positive. |
---|
3038 | |
---|
3039 | DEFAULT VALUE: |
---|
3040 | This option is BSP specific. |
---|
3041 | |
---|
3042 | DESCRIPTION: |
---|
3043 | If ``BSP_IDLE_TASK_STACK_SIZE`` is defined by the BSP and |
---|
3044 | ``CONFIGURE_IDLE_TASK_STACK_SIZE`` is not defined by the application, then |
---|
3045 | this BSP suggested idle task stack size will be used. |
---|
3046 | |
---|
3047 | NOTES: |
---|
3048 | The order of precedence for configuring the IDLE task stack size is: |
---|
3049 | |
---|
3050 | - RTEMS default minimum stack size. |
---|
3051 | |
---|
3052 | - If defined, then ``CONFIGURE_MINIMUM_TASK_STACK_SIZE``. |
---|
3053 | |
---|
3054 | - If defined, then the BSP specific ``BSP_IDLE_TASK_SIZE``. |
---|
3055 | |
---|
3056 | - If defined, then the application specified ``CONFIGURE_IDLE_TASK_SIZE``. |
---|
3057 | |
---|
3058 | .. COMMENT: XXX - add cross references to other related values. |
---|
3059 | |
---|
3060 | .. index:: BSP_INITIAL_EXTENSION |
---|
3061 | |
---|
3062 | .. _BSP_INITIAL_EXTENSION: |
---|
3063 | |
---|
3064 | BSP_INITIAL_EXTENSION |
---|
3065 | --------------------- |
---|
3066 | |
---|
3067 | CONSTANT: |
---|
3068 | ``BSP_INITIAL_EXTENSION`` |
---|
3069 | |
---|
3070 | DATA TYPE: |
---|
3071 | List of user extension initializers (``rtems_extensions_table``). |
---|
3072 | |
---|
3073 | RANGE: |
---|
3074 | Undefined or a list of user extension initializers. |
---|
3075 | |
---|
3076 | DEFAULT VALUE: |
---|
3077 | This option is BSP specific. |
---|
3078 | |
---|
3079 | DESCRIPTION: |
---|
3080 | If ``BSP_INITIAL_EXTENSION`` is defined by the BSP, then this BSP specific |
---|
3081 | initial extension will be placed as the last entry in the initial extension |
---|
3082 | table. |
---|
3083 | |
---|
3084 | NOTES: |
---|
3085 | None. |
---|
3086 | |
---|
3087 | .. index:: BSP_INTERRUPT_STACK_SIZE |
---|
3088 | |
---|
3089 | .. _BSP_INTERRUPT_STACK_SIZE: |
---|
3090 | |
---|
3091 | BSP_INTERRUPT_STACK_SIZE |
---|
3092 | ------------------------ |
---|
3093 | |
---|
3094 | CONSTANT: |
---|
3095 | ``BSP_INTERRUPT_STACK_SIZE`` |
---|
3096 | |
---|
3097 | DATA TYPE: |
---|
3098 | Unsigned integer (``size_t``). |
---|
3099 | |
---|
3100 | RANGE: |
---|
3101 | Undefined or positive. |
---|
3102 | |
---|
3103 | DEFAULT VALUE: |
---|
3104 | This option is BSP specific. |
---|
3105 | |
---|
3106 | DESCRIPTION: |
---|
3107 | If ``BSP_INTERRUPT_STACK_SIZE`` is defined by the BSP and |
---|
3108 | ``CONFIGURE_INTERRUPT_STACK_SIZE`` is not defined by the application, then |
---|
3109 | this BSP specific interrupt stack size will be used. |
---|
3110 | |
---|
3111 | NOTES: |
---|
3112 | None. |
---|
3113 | |
---|
3114 | .. index:: BSP_MAXIMUM_DEVICES |
---|
3115 | |
---|
3116 | .. _BSP_MAXIMUM_DEVICES: |
---|
3117 | |
---|
3118 | BSP_MAXIMUM_DEVICES |
---|
3119 | ------------------- |
---|
3120 | |
---|
3121 | CONSTANT: |
---|
3122 | ``BSP_MAXIMUM_DEVICES`` |
---|
3123 | |
---|
3124 | DATA TYPE: |
---|
3125 | Unsigned integer (``size_t``). |
---|
3126 | |
---|
3127 | RANGE: |
---|
3128 | Undefined or positive. |
---|
3129 | |
---|
3130 | DEFAULT VALUE: |
---|
3131 | This option is BSP specific. |
---|
3132 | |
---|
3133 | DESCRIPTION: |
---|
3134 | If ``BSP_MAXIMUM_DEVICES`` is defined by the BSP and |
---|
3135 | ``CONFIGURE_MAXIMUM_DEVICES`` is not defined by the application, then this |
---|
3136 | BSP specific maximum device count will be used. |
---|
3137 | |
---|
3138 | NOTES: |
---|
3139 | This option is specific to the device file system (devFS) and should not be |
---|
3140 | confused with the ``CONFIGURE_MAXIMUM_DRIVERS`` option. This parameter |
---|
3141 | only impacts the devFS and thus is only used by ``<rtems/confdefs.h>`` when |
---|
3142 | ``CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM`` is specified. |
---|
3143 | |
---|
3144 | .. index:: BSP_ZERO_WORKSPACE_AUTOMATICALLY |
---|
3145 | |
---|
3146 | .. _BSP_ZERO_WORKSPACE_AUTOMATICALLY: |
---|
3147 | |
---|
3148 | BSP_ZERO_WORKSPACE_AUTOMATICALLY |
---|
3149 | -------------------------------- |
---|
3150 | |
---|
3151 | CONSTANT: |
---|
3152 | ``BSP_ZERO_WORKSPACE_AUTOMATICALLY`` |
---|
3153 | |
---|
3154 | DATA TYPE: |
---|
3155 | Boolean feature macro. |
---|
3156 | |
---|
3157 | RANGE: |
---|
3158 | Defined or undefined. |
---|
3159 | |
---|
3160 | DEFAULT VALUE: |
---|
3161 | This option is BSP specific. |
---|
3162 | |
---|
3163 | DESCRIPTION: |
---|
3164 | If ``BSP_ZERO_WORKSPACE_AUTOMATICALLY`` is defined by the BSP and |
---|
3165 | ``CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY`` is not defined by the |
---|
3166 | application, then the workspace will be zeroed automatically. |
---|
3167 | |
---|
3168 | NOTES: |
---|
3169 | Zeroing memory can add significantly to system boot time. It is not |
---|
3170 | necessary for RTEMS but is often assumed by support libraries. |
---|
3171 | |
---|
3172 | .. index:: CONFIGURE_BSP_PREREQUISITE_DRIVERS |
---|
3173 | |
---|
3174 | .. _CONFIGURE_BSP_PREREQUISITE_DRIVERS: |
---|
3175 | |
---|
3176 | CONFIGURE_BSP_PREREQUISITE_DRIVERS |
---|
3177 | ---------------------------------- |
---|
3178 | |
---|
3179 | CONSTANT: |
---|
3180 | ``CONFIGURE_BSP_PREREQUISITE_DRIVERS`` |
---|
3181 | |
---|
3182 | DATA TYPE: |
---|
3183 | List of device driver initializers (``rtems_driver_address_table``). |
---|
3184 | |
---|
3185 | RANGE: |
---|
3186 | Undefined or array of device drivers. |
---|
3187 | |
---|
3188 | DEFAULT VALUE: |
---|
3189 | This option is BSP specific. |
---|
3190 | |
---|
3191 | DESCRIPTION: |
---|
3192 | ``CONFIGURE_BSP_PREREQUISITE_DRIVERS`` is defined if the BSP has device |
---|
3193 | drivers it needs to include in the Device Driver Table. This should be |
---|
3194 | defined to the set of device driver entries that will be placed in the |
---|
3195 | table at the *FRONT* of the Device Driver Table and initialized before any |
---|
3196 | other drivers *INCLUDING* any application prerequisite drivers. |
---|
3197 | |
---|
3198 | NOTES: |
---|
3199 | ``CONFIGURE_BSP_PREREQUISITE_DRIVERS`` is typically used by BSPs to |
---|
3200 | configure common infrastructure such as bus controllers or probe for |
---|
3201 | devices. |
---|
3202 | |
---|
3203 | Idle Task Configuration |
---|
3204 | ======================= |
---|
3205 | |
---|
3206 | This section defines the IDLE task related configuration parameters supported |
---|
3207 | by ``<rtems/confdefs.h>``. |
---|
3208 | |
---|
3209 | .. index:: CONFIGURE_IDLE_TASK_BODY |
---|
3210 | |
---|
3211 | .. _CONFIGURE_IDLE_TASK_BODY: |
---|
3212 | |
---|
3213 | CONFIGURE_IDLE_TASK_BODY |
---|
3214 | ------------------------ |
---|
3215 | |
---|
3216 | CONSTANT: |
---|
3217 | ``CONFIGURE_IDLE_TASK_BODY`` |
---|
3218 | |
---|
3219 | DATA TYPE: |
---|
3220 | Function pointer. |
---|
3221 | |
---|
3222 | RANGE: |
---|
3223 | Undefined or valid function pointer. |
---|
3224 | |
---|
3225 | DEFAULT VALUE: |
---|
3226 | This is not defined by default. |
---|
3227 | |
---|
3228 | DESCRIPTION: |
---|
3229 | ``CONFIGURE_IDLE_TASK_BODY`` is set to the function name corresponding to |
---|
3230 | the application specific IDLE thread body. If not specified, the BSP or |
---|
3231 | RTEMS default IDLE thread body will be used. |
---|
3232 | |
---|
3233 | NOTES: |
---|
3234 | None. |
---|
3235 | |
---|
3236 | .. index:: CONFIGURE_IDLE_TASK_STACK_SIZE |
---|
3237 | |
---|
3238 | .. _CONFIGURE_IDLE_TASK_STACK_SIZE: |
---|
3239 | |
---|
3240 | CONFIGURE_IDLE_TASK_STACK_SIZE |
---|
3241 | ------------------------------ |
---|
3242 | |
---|
3243 | CONSTANT: |
---|
3244 | ``CONFIGURE_IDLE_TASK_STACK_SIZE`` |
---|
3245 | |
---|
3246 | DATA TYPE: |
---|
3247 | Unsigned integer (``size_t``). |
---|
3248 | |
---|
3249 | RANGE: |
---|
3250 | Undefined or positive. |
---|
3251 | |
---|
3252 | DEFAULT VALUE: |
---|
3253 | The default value is RTEMS_MINIMUM_STACK_SIZE. |
---|
3254 | |
---|
3255 | DESCRIPTION: |
---|
3256 | ``CONFIGURE_IDLE_TASK_STACK_SIZE`` is set to the desired stack size for the |
---|
3257 | IDLE task. |
---|
3258 | |
---|
3259 | NOTES: |
---|
3260 | None. |
---|
3261 | |
---|
3262 | .. index:: CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION |
---|
3263 | |
---|
3264 | .. _CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION: |
---|
3265 | |
---|
3266 | CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION |
---|
3267 | ------------------------------------------- |
---|
3268 | |
---|
3269 | CONSTANT: |
---|
3270 | ``CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION`` |
---|
3271 | |
---|
3272 | DATA TYPE: |
---|
3273 | Boolean feature macro. |
---|
3274 | |
---|
3275 | RANGE: |
---|
3276 | Defined or undefined. |
---|
3277 | |
---|
3278 | DEFAULT VALUE: |
---|
3279 | This is not defined by default, the user is assumed to provide one or more |
---|
3280 | initialization tasks. |
---|
3281 | |
---|
3282 | DESCRIPTION: |
---|
3283 | ``CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION`` is set to indicate that the |
---|
3284 | user has configured *NO* user initialization tasks or threads and that the |
---|
3285 | user provided IDLE task will perform application initialization and then |
---|
3286 | transform itself into an IDLE task. |
---|
3287 | |
---|
3288 | NOTES: |
---|
3289 | If you use this option be careful, the user IDLE task *CANNOT* block at all |
---|
3290 | during the initialization sequence. Further, once application |
---|
3291 | initialization is complete, it must make itself preemptible and enter an |
---|
3292 | IDLE body loop. |
---|
3293 | |
---|
3294 | The IDLE task must run at the lowest priority of all tasks in the system. |
---|
3295 | |
---|
3296 | General Scheduler Configuration |
---|
3297 | =============================== |
---|
3298 | |
---|
3299 | This section defines the configuration parameters related to selecting a |
---|
3300 | scheduling algorithm for an application. For the :ref:`schedulers built into |
---|
3301 | RTEMS <SchedulingConcepts>`, the configuration is straightforward. All that is |
---|
3302 | required is to define the configuration macro which specifies which scheduler |
---|
3303 | you want for in your application. |
---|
3304 | |
---|
3305 | The pluggable scheduler interface also enables the user to provide their own |
---|
3306 | scheduling algorithm. If you choose to do this, you must define multiple |
---|
3307 | configuration macros. |
---|
3308 | |
---|
3309 | .. index:: CONFIGURE_SCHEDULER_PRIORITY |
---|
3310 | |
---|
3311 | .. _CONFIGURE_SCHEDULER_PRIORITY: |
---|
3312 | |
---|
3313 | CONFIGURE_SCHEDULER_PRIORITY |
---|
3314 | ---------------------------- |
---|
3315 | |
---|
3316 | CONSTANT: |
---|
3317 | ``CONFIGURE_SCHEDULER_PRIORITY`` |
---|
3318 | |
---|
3319 | DATA TYPE: |
---|
3320 | Boolean feature macro. |
---|
3321 | |
---|
3322 | RANGE: |
---|
3323 | Defined or undefined. |
---|
3324 | |
---|
3325 | DEFAULT VALUE: |
---|
3326 | This is defined by default. This is the default scheduler and specifying |
---|
3327 | this configuration parameter is redundant. |
---|
3328 | |
---|
3329 | DESCRIPTION: |
---|
3330 | The Deterministic Priority Scheduler is the default scheduler in RTEMS for |
---|
3331 | uni-processor applications and is designed for predictable performance |
---|
3332 | under the highest loads. It can block or unblock a thread in a constant |
---|
3333 | amount of time. This scheduler requires a variable amount of memory based |
---|
3334 | upon the number of priorities configured in the system. |
---|
3335 | |
---|
3336 | NOTES: |
---|
3337 | This scheduler may be explicitly selected by defining |
---|
3338 | ``CONFIGURE_SCHEDULER_PRIORITY`` although this is equivalent to the default |
---|
3339 | behavior. |
---|
3340 | |
---|
3341 | .. index:: CONFIGURE_SCHEDULER_SIMPLE |
---|
3342 | |
---|
3343 | .. _CONFIGURE_SCHEDULER_SIMPLE: |
---|
3344 | |
---|
3345 | CONFIGURE_SCHEDULER_SIMPLE |
---|
3346 | -------------------------- |
---|
3347 | |
---|
3348 | CONSTANT: |
---|
3349 | ``CONFIGURE_SCHEDULER_SIMPLE`` |
---|
3350 | |
---|
3351 | DATA TYPE: |
---|
3352 | Boolean feature macro. |
---|
3353 | |
---|
3354 | RANGE: |
---|
3355 | Defined or undefined. |
---|
3356 | |
---|
3357 | DEFAULT VALUE: |
---|
3358 | This is not defined by default. |
---|
3359 | |
---|
3360 | DESCRIPTION: |
---|
3361 | When defined, the Simple Priority Scheduler is used at the thread |
---|
3362 | scheduling algorithm. This is an alternative scheduler in RTEMS. It is |
---|
3363 | designed to provide the same task scheduling behaviour as the Deterministic |
---|
3364 | Priority Scheduler while being simpler in implementation and uses less |
---|
3365 | memory for data management. It maintains a single sorted list of all ready |
---|
3366 | threads. Thus blocking or unblocking a thread is not a constant time |
---|
3367 | operation with this scheduler. |
---|
3368 | |
---|
3369 | This scheduler may be explicitly selected by defining |
---|
3370 | ``CONFIGURE_SCHEDULER_SIMPLE``. |
---|
3371 | |
---|
3372 | NOTES: |
---|
3373 | This scheduler is appropriate for use in small systems where RAM is limited. |
---|
3374 | |
---|
3375 | .. index:: CONFIGURE_SCHEDULER_EDF |
---|
3376 | |
---|
3377 | .. _CONFIGURE_SCHEDULER_EDF: |
---|
3378 | |
---|
3379 | CONFIGURE_SCHEDULER_EDF |
---|
3380 | ----------------------- |
---|
3381 | |
---|
3382 | CONSTANT: |
---|
3383 | ``CONFIGURE_SCHEDULER_EDF`` |
---|
3384 | |
---|
3385 | DATA TYPE: |
---|
3386 | Boolean feature macro. |
---|
3387 | |
---|
3388 | RANGE: |
---|
3389 | Defined or undefined. |
---|
3390 | |
---|
3391 | DEFAULT VALUE: |
---|
3392 | This is not defined by default. |
---|
3393 | |
---|
3394 | DESCRIPTION: |
---|
3395 | The Earliest Deadline First Scheduler (EDF) is an alternative scheduler in |
---|
3396 | RTEMS for uni-processor applications. The EDF schedules tasks with dynamic |
---|
3397 | priorities equal to deadlines. The deadlines are declared using only Rate |
---|
3398 | Monotonic manager which handles periodic behavior. Period is always equal |
---|
3399 | to deadline. If a task does not have any deadline declared or the deadline |
---|
3400 | is cancelled, the task is considered a background task which is scheduled |
---|
3401 | in case no deadline-driven tasks are ready to run. Moreover, multiple |
---|
3402 | background tasks are scheduled according their priority assigned upon |
---|
3403 | initialization. All ready tasks reside in a single ready queue. |
---|
3404 | |
---|
3405 | This scheduler may be explicitly selected by defining |
---|
3406 | ``CONFIGURE_SCHEDULER_EDF``. |
---|
3407 | |
---|
3408 | NOTES: |
---|
3409 | None. |
---|
3410 | |
---|
3411 | .. index:: CONFIGURE_SCHEDULER_EDF_SMP |
---|
3412 | |
---|
3413 | .. _CONFIGURE_SCHEDULER_EDF_SMP: |
---|
3414 | |
---|
3415 | CONFIGURE_SCHEDULER_EDF_SMP |
---|
3416 | --------------------------- |
---|
3417 | |
---|
3418 | CONSTANT: |
---|
3419 | ``CONFIGURE_SCHEDULER_EDF_SMP`` |
---|
3420 | |
---|
3421 | DATA TYPE: |
---|
3422 | Boolean feature macro. |
---|
3423 | |
---|
3424 | RANGE: |
---|
3425 | Defined or undefined. |
---|
3426 | |
---|
3427 | DEFAULT VALUE: |
---|
3428 | This is not defined by default. |
---|
3429 | |
---|
3430 | DESCRIPTION: |
---|
3431 | If defined, then the Earliest Deadline First (EDF) SMP Scheduler is |
---|
3432 | selected as the default scheduler. |
---|
3433 | |
---|
3434 | NOTES: |
---|
3435 | None. |
---|
3436 | |
---|
3437 | .. index:: CONFIGURE_SCHEDULER_CBS |
---|
3438 | |
---|
3439 | .. _CONFIGURE_SCHEDULER_CBS: |
---|
3440 | |
---|
3441 | CONFIGURE_SCHEDULER_CBS |
---|
3442 | ----------------------- |
---|
3443 | |
---|
3444 | CONSTANT: |
---|
3445 | ``CONFIGURE_SCHEDULER_CBS`` |
---|
3446 | |
---|
3447 | DATA TYPE: |
---|
3448 | Boolean feature macro. |
---|
3449 | |
---|
3450 | RANGE: |
---|
3451 | Defined or undefined. |
---|
3452 | |
---|
3453 | DEFAULT VALUE: |
---|
3454 | This is not defined by default. |
---|
3455 | |
---|
3456 | DESCRIPTION: |
---|
3457 | The Constant Bandwidth Server Scheduler (CBS) is an alternative scheduler |
---|
3458 | in RTEMS for uni-processor applications. The CBS is a budget aware |
---|
3459 | extension of EDF scheduler. The goal of this scheduler is to ensure |
---|
3460 | temporal isolation of tasks. The CBS is equipped with a set of additional |
---|
3461 | rules and provides with an extensive API. |
---|
3462 | |
---|
3463 | This scheduler may be explicitly selected by defining |
---|
3464 | ``CONFIGURE_SCHEDULER_CBS``. |
---|
3465 | |
---|
3466 | NOTES: |
---|
3467 | None. |
---|
3468 | |
---|
3469 | .. index:: CONFIGURE_SCHEDULER_PRIORITY_SMP |
---|
3470 | |
---|
3471 | .. _CONFIGURE_SCHEDULER_PRIORITY_SMP: |
---|
3472 | |
---|
3473 | CONFIGURE_SCHEDULER_PRIORITY_SMP |
---|
3474 | -------------------------------- |
---|
3475 | |
---|
3476 | CONSTANT: |
---|
3477 | ``CONFIGURE_SCHEDULER_PRIORITY_SMP`` |
---|
3478 | |
---|
3479 | DATA TYPE: |
---|
3480 | Boolean feature macro. |
---|
3481 | |
---|
3482 | RANGE: |
---|
3483 | Defined or undefined. |
---|
3484 | |
---|
3485 | DEFAULT VALUE: |
---|
3486 | This is not defined by default. |
---|
3487 | |
---|
3488 | DESCRIPTION: |
---|
3489 | The Deterministic Priority SMP Scheduler is derived from the Deterministic |
---|
3490 | Priority Scheduler but is capable of scheduling threads across multiple |
---|
3491 | processors. |
---|
3492 | |
---|
3493 | In a configuration with SMP enabled at configure time, it may be explicitly |
---|
3494 | selected by defining ``CONFIGURE_SCHEDULER_PRIORITY_SMP``. |
---|
3495 | |
---|
3496 | NOTES: |
---|
3497 | This scheduler is only available when RTEMS is configured with SMP support |
---|
3498 | enabled. |
---|
3499 | |
---|
3500 | This scheduler is currently the default in SMP configurations and is only |
---|
3501 | selected when ``CONFIGURE_MAXIMUM_PROCESSORS`` is greater than one. |
---|
3502 | |
---|
3503 | .. index:: CONFIGURE_SCHEDULER_SIMPLE_SMP |
---|
3504 | |
---|
3505 | .. _CONFIGURE_SCHEDULER_SIMPLE_SMP: |
---|
3506 | |
---|
3507 | CONFIGURE_SCHEDULER_SIMPLE_SMP |
---|
3508 | ------------------------------ |
---|
3509 | |
---|
3510 | CONSTANT: |
---|
3511 | ``CONFIGURE_SCHEDULER_SIMPLE_SMP`` |
---|
3512 | |
---|
3513 | DATA TYPE: |
---|
3514 | Boolean feature macro. |
---|
3515 | |
---|
3516 | RANGE: |
---|
3517 | Defined or undefined. |
---|
3518 | |
---|
3519 | DEFAULT VALUE: |
---|
3520 | This is not defined by default. |
---|
3521 | |
---|
3522 | DESCRIPTION: |
---|
3523 | The Simple SMP Priority Scheduler is derived from the Simple Priority |
---|
3524 | Scheduler but is capable of scheduling threads across multiple processors. |
---|
3525 | It is designed to provide the same task scheduling behaviour as the |
---|
3526 | Deterministic Priority Scheduler while distributing threads across multiple |
---|
3527 | processors. Being based upon the Simple Priority Scheduler, it also |
---|
3528 | maintains a single sorted list of all ready threads. Thus blocking or |
---|
3529 | unblocking a thread is not a constant time operation with this scheduler. |
---|
3530 | |
---|
3531 | In addition, when allocating threads to processors, the algorithm is not |
---|
3532 | constant time. This algorithm was not designed with efficiency as a primary |
---|
3533 | design goal. Its primary design goal was to provide an SMP-aware |
---|
3534 | scheduling algorithm that is simple to understand. |
---|
3535 | |
---|
3536 | In a configuration with SMP enabled at configure time, it may be explicitly |
---|
3537 | selected by defining ``CONFIGURE_SCHEDULER_SIMPLE_SMP``. |
---|
3538 | |
---|
3539 | NOTES: |
---|
3540 | This scheduler is only available when RTEMS is configured with SMP support |
---|
3541 | enabled. |
---|
3542 | |
---|
3543 | .. index:: CONFIGURE_SCHEDULER_NAME |
---|
3544 | |
---|
3545 | .. _CONFIGURE_SCHEDULER_NAME: |
---|
3546 | |
---|
3547 | CONFIGURE_SCHEDULER_NAME |
---|
3548 | ------------------------ |
---|
3549 | |
---|
3550 | CONSTANT: |
---|
3551 | ``CONFIGURE_SCHEDULER_NAME`` |
---|
3552 | |
---|
3553 | DATA TYPE: |
---|
3554 | RTEMS Name (``rtems_name``). |
---|
3555 | |
---|
3556 | RANGE: |
---|
3557 | Any value. |
---|
3558 | |
---|
3559 | DEFAULT VALUE: |
---|
3560 | The default name is |
---|
3561 | |
---|
3562 | - ``"MEDF"`` for the :ref:`EDF SMP Scheduler <SchedulerSMPEDF>`, |
---|
3563 | - ``"MPA "`` for the :ref:`Aribitary Processor Affinity Priority SMP Scheduler <SchedulerSMPPriorityAffinity>`, |
---|
3564 | - ``"MPD "`` for the :ref:`Deterministic Priority SMP Scheduler <SchedulerSMPPriority>`, |
---|
3565 | - ``"MPS "`` for the :ref:`Simple Priority SMP Scheduler <SchedulerSMPPrioritySimple>`, |
---|
3566 | - ``"UCBS"`` for the :ref:`Uniprocessor CBS Scheduler <SchedulerCBS>`, |
---|
3567 | - ``"UEDF"`` for the :ref:`Uniprocessor EDF Scheduler <SchedulerEDF>`, |
---|
3568 | - ``"UPD "`` for the :ref:`Uniprocessor Deterministic Priority Scheduler <SchedulerPriority>`, and |
---|
3569 | - ``"UPS "`` for the :ref:`Uniprocessor Simple Priority Scheduler <SchedulerPrioritySimple>`. |
---|
3570 | |
---|
3571 | DESCRIPTION: |
---|
3572 | Schedulers can be identified via ``rtems_scheduler_ident``. The name of |
---|
3573 | the scheduler is determined by the configuration. |
---|
3574 | |
---|
3575 | NOTES: |
---|
3576 | None. |
---|
3577 | |
---|
3578 | .. index:: CONFIGURE_SCHEDULER_USER |
---|
3579 | |
---|
3580 | .. _CONFIGURE_SCHEDULER_USER: |
---|
3581 | |
---|
3582 | CONFIGURE_SCHEDULER_USER |
---|
3583 | ------------------------ |
---|
3584 | |
---|
3585 | CONSTANT: |
---|
3586 | ``CONFIGURE_SCHEDULER_USER`` |
---|
3587 | |
---|
3588 | DATA TYPE: |
---|
3589 | Boolean feature macro. |
---|
3590 | |
---|
3591 | RANGE: |
---|
3592 | Defined or undefined. |
---|
3593 | |
---|
3594 | DEFAULT VALUE: |
---|
3595 | This is not defined by default. |
---|
3596 | |
---|
3597 | DESCRIPTION: |
---|
3598 | RTEMS allows the application to provide its own task/thread scheduling |
---|
3599 | algorithm. In order to do this, one must define |
---|
3600 | ``CONFIGURE_SCHEDULER_USER`` to indicate the application provides its own |
---|
3601 | scheduling algorithm. If ``CONFIGURE_SCHEDULER_USER`` is defined then the |
---|
3602 | following additional macros must be defined: |
---|
3603 | |
---|
3604 | - ``CONFIGURE_SCHEDULER_CONTEXT`` must be defined to a static definition of |
---|
3605 | the scheduler context of the user scheduler. |
---|
3606 | |
---|
3607 | - ``CONFIGURE_SCHEDULER_CONTROLS`` must be defined to a scheduler control |
---|
3608 | initializer for the user scheduler. |
---|
3609 | |
---|
3610 | - ``CONFIGURE_SCHEDULER_USER_PER_THREAD`` must be defined to the type of |
---|
3611 | the per-thread information of the user scheduler. |
---|
3612 | |
---|
3613 | NOTES: |
---|
3614 | At this time, the mechanics and requirements for writing a new scheduler |
---|
3615 | are evolving and not fully documented. It is recommended that you look at |
---|
3616 | the existing Deterministic Priority Scheduler in |
---|
3617 | ``cpukit/score/src/schedulerpriority*.c`` for guidance. For guidance on |
---|
3618 | the configuration macros, please examine ``cpukit/sapi/include/confdefs.h`` |
---|
3619 | for how these are defined for the Deterministic Priority Scheduler. |
---|
3620 | |
---|
3621 | .. _ConfigurationSchedulersClustered: |
---|
3622 | |
---|
3623 | Clustered Scheduler Configuration |
---|
3624 | ================================= |
---|
3625 | |
---|
3626 | Clustered scheduling helps to control the worst-case latencies in a |
---|
3627 | multi-processor system. The goal is to reduce the amount of shared state in |
---|
3628 | the system and thus prevention of lock contention. Modern multi-processor |
---|
3629 | systems tend to have several layers of data and instruction caches. With |
---|
3630 | clustered scheduling it is possible to honour the cache topology of a system |
---|
3631 | and thus avoid expensive cache synchronization traffic. |
---|
3632 | |
---|
3633 | We have clustered scheduling in case the set of processors of a system is |
---|
3634 | partitioned into non-empty pairwise-disjoint subsets. These subsets are called |
---|
3635 | clusters. Clusters with a cardinality of one are partitions. Each cluster is |
---|
3636 | owned by exactly one scheduler instance. In order to use clustered scheduling |
---|
3637 | the application designer has to answer two questions. |
---|
3638 | |
---|
3639 | #. How is the set of processors partitioned into clusters? |
---|
3640 | |
---|
3641 | #. Which scheduler is used for which cluster? |
---|
3642 | |
---|
3643 | CONFIGURATION: |
---|
3644 | The schedulers in an SMP system are statically configured on RTEMS. |
---|
3645 | Firstly the application must select which scheduling algorithms are |
---|
3646 | available with the following defines |
---|
3647 | |
---|
3648 | - ``CONFIGURE_SCHEDULER_PRIORITY_SMP``, |
---|
3649 | |
---|
3650 | - ``CONFIGURE_SCHEDULER_SIMPLE_SMP``, and |
---|
3651 | |
---|
3652 | - ``CONFIGURE_SCHEDULER_PRIORITY_AFFINITY_SMP``. |
---|
3653 | |
---|
3654 | This is necessary to calculate the per-thread overhead introduced by the |
---|
3655 | schedulers. After these definitions the configuration file must ``#include |
---|
3656 | <rtems/scheduler.h>`` to have access to scheduler specific configuration |
---|
3657 | macros. Each scheduler needs a context to store state information at |
---|
3658 | run-time. To provide a context for each scheduler is the next step. Use |
---|
3659 | the following macros to create scheduler contexts |
---|
3660 | |
---|
3661 | - ``RTEMS_SCHEDULER_CONTEXT_PRIORITY_SMP(name, prio_count)``, |
---|
3662 | |
---|
3663 | - ``RTEMS_SCHEDULER_CONTEXT_SIMPLE_SMP(name)``, and |
---|
3664 | |
---|
3665 | - ``RTEMS_SCHEDULER_CONTEXT_PRIORITY_AFFINITY_SMP(name, prio_count)``. |
---|
3666 | |
---|
3667 | The ``name`` parameter is used as part of a designator for a global |
---|
3668 | variable, so the usual C/C++ designator rules apply. Additional parameters |
---|
3669 | are scheduler specific. The schedulers are registered in the system via |
---|
3670 | the scheduler table. To create the scheduler table define |
---|
3671 | ``CONFIGURE_SCHEDULER_CONTROLS`` to a list of the following scheduler |
---|
3672 | control initializers |
---|
3673 | |
---|
3674 | - ``RTEMS_SCHEDULER_CONTROL_PRIORITY_SMP(name, obj_name)``, |
---|
3675 | |
---|
3676 | - ``RTEMS_SCHEDULER_CONTROL_SIMPLE_SMP(name, obj_name)``, and |
---|
3677 | |
---|
3678 | - ``RTEMS_SCHEDULER_CONTROL_PRIORITY_AFFINITY_SMP(name, obj_name)``. |
---|
3679 | |
---|
3680 | The ``name`` parameter must correspond to the parameter defining the |
---|
3681 | scheduler context. The ``obj_name`` determines the scheduler object name |
---|
3682 | and can be used in ``rtems_scheduler_ident()`` to get the scheduler object |
---|
3683 | identifier. |
---|
3684 | |
---|
3685 | The last step is to define which processor uses which scheduler. For this |
---|
3686 | purpose a scheduler assignment table must be defined. The entry count of |
---|
3687 | this table must be equal to the configured maximum processors |
---|
3688 | (``CONFIGURE_MAXIMUM_PROCESSORS``). A processor assignment to a |
---|
3689 | scheduler can be optional or mandatory. The boot processor must have a |
---|
3690 | scheduler assigned. In case the system needs more mandatory processors |
---|
3691 | than available then a fatal run-time error will occur. To specify the |
---|
3692 | scheduler assignments define ``CONFIGURE_SMP_SCHEDULER_ASSIGNMENTS`` to a |
---|
3693 | list of ``RTEMS_SCHEDULER_ASSIGN(index, attr)`` and |
---|
3694 | ``RTEMS_SCHEDULER_ASSIGN_NO_SCHEDULER`` macros. The ``index`` parameter |
---|
3695 | must be a valid index into the scheduler table. The ``attr`` parameter |
---|
3696 | defines the scheduler assignment attributes. By default a scheduler |
---|
3697 | assignment to a processor is optional. For the scheduler assignment |
---|
3698 | attribute use one of the mutually exclusive variants |
---|
3699 | |
---|
3700 | - ``RTEMS_SCHEDULER_ASSIGN_DEFAULT``, |
---|
3701 | |
---|
3702 | - ``RTEMS_SCHEDULER_ASSIGN_PROCESSOR_MANDATORY``, and |
---|
3703 | |
---|
3704 | - ``RTEMS_SCHEDULER_ASSIGN_PROCESSOR_OPTIONAL``. |
---|
3705 | |
---|
3706 | It is possible to add/remove processors to/from scheduler instances at |
---|
3707 | run-time, see :ref:`rtems_scheduler_add_processor` and |
---|
3708 | :ref:`rtems_scheduler_remove_processor`. |
---|
3709 | |
---|
3710 | ERRORS: |
---|
3711 | In case one of the scheduler indices |
---|
3712 | in``CONFIGURE_SMP_SCHEDULER_ASSIGNMENTS`` is invalid a link-time error will |
---|
3713 | occur with an undefined reference to ``RTEMS_SCHEDULER_INVALID_INDEX``. |
---|
3714 | |
---|
3715 | Some fatal errors may occur in case of scheduler configuration |
---|
3716 | inconsistencies or a lack of processors on the system. The fatal source is |
---|
3717 | ``RTEMS_FATAL_SOURCE_SMP``. None of the errors is internal. |
---|
3718 | |
---|
3719 | - ``SMP_FATAL_BOOT_PROCESSOR_NOT_ASSIGNED_TO_SCHEDULER`` - the boot |
---|
3720 | processor must have a scheduler assigned. |
---|
3721 | |
---|
3722 | - ``SMP_FATAL_MANDATORY_PROCESSOR_NOT_PRESENT`` - there exists a mandatory |
---|
3723 | processor beyond the range of physically or virtually available |
---|
3724 | processors. The processor demand must be reduced for this system. |
---|
3725 | |
---|
3726 | - ``SMP_FATAL_START_OF_MANDATORY_PROCESSOR_FAILED`` - the start of a |
---|
3727 | mandatory processor failed during system initialization. The system may |
---|
3728 | not have this processor at all or it could be a problem with a boot |
---|
3729 | loader for example. Check the ``CONFIGURE_SMP_SCHEDULER_ASSIGNMENTS`` |
---|
3730 | definition. |
---|
3731 | |
---|
3732 | - ``SMP_FATAL_MULTITASKING_START_ON_UNASSIGNED_PROCESSOR`` - it is not |
---|
3733 | allowed to start multitasking on a processor with no scheduler assigned. |
---|
3734 | |
---|
3735 | EXAMPLE: |
---|
3736 | The following example shows a scheduler configuration for a hypothetical |
---|
3737 | product using two chip variants. One variant has four processors which is |
---|
3738 | used for the normal product line and another provides eight processors for |
---|
3739 | the high-performance product line. The first processor performs hard-real |
---|
3740 | time control of actuators and sensors. The second processor is not used by |
---|
3741 | RTEMS at all and runs a Linux instance to provide a graphical user |
---|
3742 | interface. The additional processors are used for a worker thread pool to |
---|
3743 | perform data processing operations. |
---|
3744 | |
---|
3745 | The processors managed by RTEMS use two Deterministic Priority scheduler |
---|
3746 | instances capable of dealing with 256 priority levels. The scheduler with |
---|
3747 | index zero has the name ``"IO "``. The scheduler with index one has the |
---|
3748 | name ``"WORK"``. The scheduler assignments of the first, third and fourth |
---|
3749 | processor are mandatory, so the system must have at least four processors, |
---|
3750 | otherwise a fatal run-time error will occur during system startup. The |
---|
3751 | processor assignments for the fifth up to the eighth processor are optional |
---|
3752 | so that the same application can be used for the normal and |
---|
3753 | high-performance product lines. The second processor has no scheduler |
---|
3754 | assigned and runs Linux. A hypervisor will ensure that the two systems |
---|
3755 | cannot interfere in an undesirable way. |
---|
3756 | |
---|
3757 | .. code-block:: c |
---|
3758 | |
---|
3759 | #define CONFIGURE_MAXIMUM_PROCESSORS 8 |
---|
3760 | #define CONFIGURE_MAXIMUM_PRIORITY 255 |
---|
3761 | |
---|
3762 | /* Make the scheduler algorithm available */ |
---|
3763 | #define CONFIGURE_SCHEDULER_PRIORITY_SMP |
---|
3764 | #include <rtems/scheduler.h> |
---|
3765 | |
---|
3766 | /* Create contexts for the two scheduler instances */ |
---|
3767 | RTEMS_SCHEDULER_CONTEXT_PRIORITY_SMP(io, CONFIGURE_MAXIMUM_PRIORITY + 1); |
---|
3768 | RTEMS_SCHEDULER_CONTEXT_PRIORITY_SMP(work, CONFIGURE_MAXIMUM_PRIORITY + 1); |
---|
3769 | |
---|
3770 | /* Define the scheduler table */ |
---|
3771 | #define CONFIGURE_SCHEDULER_CONTROLS \\ |
---|
3772 | RTEMS_SCHEDULER_CONTROL_PRIORITY_SMP( \ |
---|
3773 | io, \ |
---|
3774 | rtems_build_name('I', 'O', ' ', ' ') \ |
---|
3775 | ), \ |
---|
3776 | RTEMS_SCHEDULER_CONTROL_PRIORITY_SMP( \ |
---|
3777 | work, \ |
---|
3778 | rtems_build_name('W', 'O', 'R', 'K') \ |
---|
3779 | ) |
---|
3780 | |
---|
3781 | /* Define the initial processor to scheduler assignments */ |
---|
3782 | #define CONFIGURE_SMP_SCHEDULER_ASSIGNMENTS \ |
---|
3783 | RTEMS_SCHEDULER_ASSIGN(0, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_MANDATORY), \ |
---|
3784 | RTEMS_SCHEDULER_ASSIGN_NO_SCHEDULER, \ |
---|
3785 | RTEMS_SCHEDULER_ASSIGN(1, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_MANDATORY), \ |
---|
3786 | RTEMS_SCHEDULER_ASSIGN(1, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_MANDATORY), \ |
---|
3787 | RTEMS_SCHEDULER_ASSIGN(1, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_OPTIONAL), \ |
---|
3788 | RTEMS_SCHEDULER_ASSIGN(1, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_OPTIONAL), \ |
---|
3789 | RTEMS_SCHEDULER_ASSIGN(1, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_OPTIONAL), \ |
---|
3790 | RTEMS_SCHEDULER_ASSIGN(1, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_OPTIONAL) |
---|
3791 | |
---|
3792 | Device Driver Table |
---|
3793 | =================== |
---|
3794 | |
---|
3795 | This section defines the configuration parameters related to the automatic |
---|
3796 | generation of a Device Driver Table. As ``<rtems/confdefs.h>`` only is aware |
---|
3797 | of a small set of standard device drivers, the generated Device Driver Table is |
---|
3798 | suitable for simple applications with no custom device drivers. |
---|
3799 | |
---|
3800 | Note that network device drivers are not configured in the Device Driver Table. |
---|
3801 | |
---|
3802 | .. index:: CONFIGURE_MAXIMUM_DRIVERS |
---|
3803 | |
---|
3804 | .. _CONFIGURE_MAXIMUM_DRIVERS: |
---|
3805 | |
---|
3806 | CONFIGURE_MAXIMUM_DRIVERS |
---|
3807 | ------------------------- |
---|
3808 | |
---|
3809 | CONSTANT: |
---|
3810 | |
---|
3811 | ``CONFIGURE_MAXIMUM_DRIVERS`` |
---|
3812 | |
---|
3813 | DATA TYPE: |
---|
3814 | Unsigned integer (``uint32_t``). |
---|
3815 | |
---|
3816 | RANGE: |
---|
3817 | Zero or positive. |
---|
3818 | |
---|
3819 | DEFAULT VALUE: |
---|
3820 | This is computed by default, and is set to the number of device drivers |
---|
3821 | configured using the ``CONFIGURE_APPLICATIONS_NEEDS_XXX_DRIVER`` |
---|
3822 | configuration parameters. |
---|
3823 | |
---|
3824 | DESCRIPTION: |
---|
3825 | ``CONFIGURE_MAXIMUM_DRIVERS`` is defined as the number of device drivers |
---|
3826 | per node. |
---|
3827 | |
---|
3828 | NOTES: |
---|
3829 | If the application will dynamically install device drivers, then this |
---|
3830 | configuration parameter must be larger than the number of statically |
---|
3831 | configured device drivers. Drivers configured using the |
---|
3832 | ``CONFIGURE_APPLICATIONS_NEEDS_XXX_DRIVER`` configuration parameters are |
---|
3833 | statically installed. |
---|
3834 | |
---|
3835 | .. index:: CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER |
---|
3836 | |
---|
3837 | .. _CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER: |
---|
3838 | |
---|
3839 | CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER |
---|
3840 | ------------------------------------------ |
---|
3841 | |
---|
3842 | CONSTANT: |
---|
3843 | ``CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER`` |
---|
3844 | |
---|
3845 | DATA TYPE: |
---|
3846 | Boolean feature macro. |
---|
3847 | |
---|
3848 | RANGE: |
---|
3849 | Defined or undefined. |
---|
3850 | |
---|
3851 | DEFAULT VALUE: |
---|
3852 | This is not defined by default. |
---|
3853 | |
---|
3854 | DESCRIPTION: |
---|
3855 | ``CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER`` is defined if the |
---|
3856 | application wishes to include the Console Device Driver. |
---|
3857 | |
---|
3858 | NOTES: |
---|
3859 | This device driver is responsible for providing the :file:`/dev/console` |
---|
3860 | device file. This device is used to initialize the standard input, output, |
---|
3861 | and error file descriptors. |
---|
3862 | |
---|
3863 | BSPs should be constructed in a manner that allows ``printk()`` to work |
---|
3864 | properly without the need for the console driver to be configured. |
---|
3865 | |
---|
3866 | The |
---|
3867 | |
---|
3868 | * ``CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER``, |
---|
3869 | |
---|
3870 | * ``CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER``, and |
---|
3871 | |
---|
3872 | * ``CONFIGURE_APPLICATION_NEEDS_SIMPLE_TASK_CONSOLE_DRIVER`` |
---|
3873 | |
---|
3874 | configuration options are mutually exclusive. |
---|
3875 | |
---|
3876 | .. index:: CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER |
---|
3877 | |
---|
3878 | .. _CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER: |
---|
3879 | |
---|
3880 | CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER |
---|
3881 | ------------------------------------------------- |
---|
3882 | |
---|
3883 | CONSTANT: |
---|
3884 | ``CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER`` |
---|
3885 | |
---|
3886 | DATA TYPE: |
---|
3887 | Boolean feature macro. |
---|
3888 | |
---|
3889 | RANGE: |
---|
3890 | Defined or undefined. |
---|
3891 | |
---|
3892 | DEFAULT VALUE: |
---|
3893 | This is not defined by default. |
---|
3894 | |
---|
3895 | DESCRIPTION: |
---|
3896 | ``CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER`` is defined if the |
---|
3897 | application wishes to include the Simple Console Device Driver. |
---|
3898 | |
---|
3899 | NOTES: |
---|
3900 | This device driver is responsible for providing the :file:`/dev/console` |
---|
3901 | device file. This device is used to initialize the standard input, output, |
---|
3902 | and error file descriptors. |
---|
3903 | |
---|
3904 | This device driver reads via ``getchark()``. |
---|
3905 | |
---|
3906 | This device driver writes via ``rtems_putc()``. |
---|
3907 | |
---|
3908 | The Termios framework is not used. There is no support to change device |
---|
3909 | settings, e.g. baud, stop bits, parity, etc. |
---|
3910 | |
---|
3911 | The |
---|
3912 | |
---|
3913 | * ``CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER``, |
---|
3914 | |
---|
3915 | * ``CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER``, and |
---|
3916 | |
---|
3917 | * ``CONFIGURE_APPLICATION_NEEDS_SIMPLE_TASK_CONSOLE_DRIVER`` |
---|
3918 | |
---|
3919 | configuration options are mutually exclusive. |
---|
3920 | |
---|
3921 | .. index:: CONFIGURE_APPLICATION_NEEDS_SIMPLE_TASK_CONSOLE_DRIVER |
---|
3922 | |
---|
3923 | .. _CONFIGURE_APPLICATION_NEEDS_SIMPLE_TASK_CONSOLE_DRIVER: |
---|
3924 | |
---|
3925 | CONFIGURE_APPLICATION_NEEDS_SIMPLE_TASK_CONSOLE_DRIVER |
---|
3926 | ------------------------------------------------------ |
---|
3927 | |
---|
3928 | CONSTANT: |
---|
3929 | ``CONFIGURE_APPLICATION_NEEDS_SIMPLE_TASK_CONSOLE_DRIVER`` |
---|
3930 | |
---|
3931 | DATA TYPE: |
---|
3932 | Boolean feature macro. |
---|
3933 | |
---|
3934 | RANGE: |
---|
3935 | Defined or undefined. |
---|
3936 | |
---|
3937 | DEFAULT VALUE: |
---|
3938 | This is not defined by default. |
---|
3939 | |
---|
3940 | DESCRIPTION: |
---|
3941 | ``CONFIGURE_APPLICATION_NEEDS_SIMPLE_TASK_CONSOLE_DRIVER`` is defined if |
---|
3942 | the application wishes to include the Simple Task Console Device Driver. |
---|
3943 | |
---|
3944 | NOTES: |
---|
3945 | This device driver is responsible for providing the :file:`/dev/console` |
---|
3946 | device file. This device is used to initialize the standard input, output, |
---|
3947 | and error file descriptors. |
---|
3948 | |
---|
3949 | This device driver reads via ``getchark()``. |
---|
3950 | |
---|
3951 | This device driver writes into a write buffer. The count of characters |
---|
3952 | written into the write buffer is returned. It might be less than the |
---|
3953 | requested count, in case the write buffer is full. The write is |
---|
3954 | non-blocking and may be called from interrupt context. A dedicated task |
---|
3955 | reads from the write buffer and outputs the characters via |
---|
3956 | ``rtems_putc()``. This task runs with the least important priority. The |
---|
3957 | write buffer size is 2047 characters and it is not configurable. |
---|
3958 | |
---|
3959 | Use ``fsync(STDOUT_FILENO)`` or ``fdatasync(STDOUT_FILENO)`` to drain the |
---|
3960 | write buffer. |
---|
3961 | |
---|
3962 | The Termios framework is not used. There is no support to change device |
---|
3963 | settings, e.g. baud, stop bits, parity, etc. |
---|
3964 | |
---|
3965 | The |
---|
3966 | |
---|
3967 | * ``CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER``, |
---|
3968 | |
---|
3969 | * ``CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER``, and |
---|
3970 | |
---|
3971 | * ``CONFIGURE_APPLICATION_NEEDS_SIMPLE_TASK_CONSOLE_DRIVER`` |
---|
3972 | |
---|
3973 | configuration options are mutually exclusive. |
---|
3974 | |
---|
3975 | .. index:: CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER |
---|
3976 | |
---|
3977 | .. _CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER: |
---|
3978 | |
---|
3979 | CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER |
---|
3980 | ---------------------------------------- |
---|
3981 | |
---|
3982 | CONSTANT: |
---|
3983 | ``CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER`` |
---|
3984 | |
---|
3985 | DATA TYPE: |
---|
3986 | Boolean feature macro. |
---|
3987 | |
---|
3988 | RANGE: |
---|
3989 | Defined or undefined. |
---|
3990 | |
---|
3991 | DEFAULT VALUE: |
---|
3992 | This is not defined by default. |
---|
3993 | |
---|
3994 | DESCRIPTION: |
---|
3995 | ``CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER`` is defined if the application |
---|
3996 | wishes to include the Clock Device Driver. |
---|
3997 | |
---|
3998 | NOTES: |
---|
3999 | This device driver is responsible for providing a regular interrupt which |
---|
4000 | invokes a clock tick directive. |
---|
4001 | |
---|
4002 | If neither the Clock Driver not Benchmark Timer is enabled and the |
---|
4003 | configuration parameter |
---|
4004 | ``CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER`` is not defined, then a |
---|
4005 | compile time error will occur. |
---|
4006 | |
---|
4007 | .. index:: CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER |
---|
4008 | |
---|
4009 | .. _CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER: |
---|
4010 | |
---|
4011 | CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER |
---|
4012 | ---------------------------------------- |
---|
4013 | |
---|
4014 | CONSTANT: |
---|
4015 | ``CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER`` |
---|
4016 | |
---|
4017 | DATA TYPE: |
---|
4018 | Boolean feature macro. |
---|
4019 | |
---|
4020 | RANGE: |
---|
4021 | Defined or undefined. |
---|
4022 | |
---|
4023 | DEFAULT VALUE: |
---|
4024 | This is not defined by default. |
---|
4025 | |
---|
4026 | DESCRIPTION: |
---|
4027 | ``CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER`` is defined if the application |
---|
4028 | wishes to include the Timer Driver. This device driver is used to |
---|
4029 | benchmark execution times by the RTEMS Timing Test Suites. |
---|
4030 | |
---|
4031 | NOTES: |
---|
4032 | If neither the Clock Driver not Benchmark Timer is enabled and the |
---|
4033 | configuration parameter |
---|
4034 | ``CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER`` is not defined, then a |
---|
4035 | compile time error will occur. |
---|
4036 | |
---|
4037 | .. index:: CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER |
---|
4038 | |
---|
4039 | .. _CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER: |
---|
4040 | |
---|
4041 | CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER |
---|
4042 | ------------------------------------------------ |
---|
4043 | |
---|
4044 | CONSTANT: |
---|
4045 | ``CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER`` |
---|
4046 | |
---|
4047 | DATA TYPE: |
---|
4048 | Boolean feature macro. |
---|
4049 | |
---|
4050 | RANGE: |
---|
4051 | Defined or undefined. |
---|
4052 | |
---|
4053 | DEFAULT VALUE: |
---|
4054 | This is not defined by default. |
---|
4055 | |
---|
4056 | DESCRIPTION: |
---|
4057 | ``CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER`` is defined when the |
---|
4058 | application does *NOT* want the Clock Device Driver and is *NOT* using the |
---|
4059 | Timer Driver. The inclusion or exclusion of the Clock Driver must be |
---|
4060 | explicit in user applications. |
---|
4061 | |
---|
4062 | NOTES: |
---|
4063 | This configuration parameter is intended to prevent the common user error |
---|
4064 | of using the Hello World example as the baseline for an application and |
---|
4065 | leaving out a clock tick source. |
---|
4066 | |
---|
4067 | .. index:: CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER |
---|
4068 | |
---|
4069 | .. _CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER: |
---|
4070 | |
---|
4071 | CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER |
---|
4072 | -------------------------------------- |
---|
4073 | |
---|
4074 | CONSTANT: |
---|
4075 | ``CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER`` |
---|
4076 | |
---|
4077 | DATA TYPE: |
---|
4078 | Boolean feature macro. |
---|
4079 | |
---|
4080 | RANGE: |
---|
4081 | Defined or undefined. |
---|
4082 | |
---|
4083 | DEFAULT VALUE: |
---|
4084 | This is not defined by default. |
---|
4085 | |
---|
4086 | DESCRIPTION: |
---|
4087 | ``CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER`` is defined if the application |
---|
4088 | wishes to include the Real-Time Clock Driver. |
---|
4089 | |
---|
4090 | NOTES: |
---|
4091 | Most BSPs do not include support for a real-time clock. This is because |
---|
4092 | many boards do not include the required hardware. |
---|
4093 | |
---|
4094 | If this is defined and the BSP does not have this device driver, then the |
---|
4095 | user will get a link time error for an undefined symbol. |
---|
4096 | |
---|
4097 | .. index:: CONFIGURE_APPLICATION_NEEDS_WATCHDOG_DRIVER |
---|
4098 | |
---|
4099 | .. _CONFIGURE_APPLICATION_NEEDS_WATCHDOG_DRIVER: |
---|
4100 | |
---|
4101 | CONFIGURE_APPLICATION_NEEDS_WATCHDOG_DRIVER |
---|
4102 | ------------------------------------------- |
---|
4103 | |
---|
4104 | CONSTANT: |
---|
4105 | ``CONFIGURE_APPLICATION_NEEDS_WATCHDOG_DRIVER`` |
---|
4106 | |
---|
4107 | DATA TYPE: |
---|
4108 | Boolean feature macro. |
---|
4109 | |
---|
4110 | RANGE: |
---|
4111 | Defined or undefined. |
---|
4112 | |
---|
4113 | DEFAULT VALUE: |
---|
4114 | This is not defined by default. |
---|
4115 | |
---|
4116 | DESCRIPTION: |
---|
4117 | ``CONFIGURE_APPLICATION_NEEDS_WATCHDOG_DRIVER`` is defined if the |
---|
4118 | application wishes to include the Watchdog Driver. |
---|
4119 | |
---|
4120 | NOTES: |
---|
4121 | Most BSPs do not include support for a watchdog device driver. This is |
---|
4122 | because many boards do not include the required hardware. |
---|
4123 | |
---|
4124 | If this is defined and the BSP does not have this device driver, then the |
---|
4125 | user will get a link time error for an undefined symbol. |
---|
4126 | |
---|
4127 | .. index:: CONFIGURE_APPLICATION_NEEDS_FRAME_BUFFER_DRIVER |
---|
4128 | |
---|
4129 | .. _CONFIGURE_APPLICATION_NEEDS_FRAME_BUFFER_DRIVER: |
---|
4130 | |
---|
4131 | CONFIGURE_APPLICATION_NEEDS_FRAME_BUFFER_DRIVER |
---|
4132 | ----------------------------------------------- |
---|
4133 | |
---|
4134 | CONSTANT: |
---|
4135 | ``CONFIGURE_APPLICATION_NEEDS_FRAME_BUFFER_DRIVER`` |
---|
4136 | |
---|
4137 | DATA TYPE: |
---|
4138 | Boolean feature macro. |
---|
4139 | |
---|
4140 | RANGE: |
---|
4141 | Defined or undefined. |
---|
4142 | |
---|
4143 | DEFAULT VALUE: |
---|
4144 | This is not defined by default. |
---|
4145 | |
---|
4146 | DESCRIPTION: |
---|
4147 | ``CONFIGURE_APPLICATION_NEEDS_FRAME_BUFFER_DRIVER`` is defined if the |
---|
4148 | application wishes to include the BSP's Frame Buffer Device Driver. |
---|
4149 | |
---|
4150 | NOTES: |
---|
4151 | Most BSPs do not include support for a Frame Buffer Device Driver. This is |
---|
4152 | because many boards do not include the required hardware. |
---|
4153 | |
---|
4154 | If this is defined and the BSP does not have this device driver, then the |
---|
4155 | user will get a link time error for an undefined symbol. |
---|
4156 | |
---|
4157 | .. index:: CONFIGURE_APPLICATION_NEEDS_STUB_DRIVER |
---|
4158 | |
---|
4159 | .. _CONFIGURE_APPLICATION_NEEDS_STUB_DRIVER: |
---|
4160 | |
---|
4161 | CONFIGURE_APPLICATION_NEEDS_STUB_DRIVER |
---|
4162 | --------------------------------------- |
---|
4163 | |
---|
4164 | CONSTANT: |
---|
4165 | ``CONFIGURE_APPLICATION_NEEDS_STUB_DRIVER`` |
---|
4166 | |
---|
4167 | DATA TYPE: |
---|
4168 | Boolean feature macro. |
---|
4169 | |
---|
4170 | RANGE: |
---|
4171 | Defined or undefined. |
---|
4172 | |
---|
4173 | DEFAULT VALUE: |
---|
4174 | This is not defined by default. |
---|
4175 | |
---|
4176 | DESCRIPTION: |
---|
4177 | ``CONFIGURE_APPLICATION_NEEDS_STUB_DRIVER`` is defined if the application |
---|
4178 | wishes to include the Stub Device Driver. |
---|
4179 | |
---|
4180 | NOTES: |
---|
4181 | This device driver simply provides entry points that return successful and |
---|
4182 | is primarily a test fixture. It is supported by all BSPs. |
---|
4183 | |
---|
4184 | .. index:: CONFIGURE_APPLICATION_PREREQUISITE_DRIVERS |
---|
4185 | |
---|
4186 | .. _CONFIGURE_APPLICATION_PREREQUISITE_DRIVERS: |
---|
4187 | |
---|
4188 | CONFIGURE_APPLICATION_PREREQUISITE_DRIVERS |
---|
4189 | ------------------------------------------ |
---|
4190 | |
---|
4191 | CONSTANT: |
---|
4192 | ``CONFIGURE_APPLICATION_PREREQUISITE_DRIVERS`` |
---|
4193 | |
---|
4194 | DATA TYPE: |
---|
4195 | device driver entry structures |
---|
4196 | |
---|
4197 | RANGE: |
---|
4198 | Undefined or set of device driver entry structures |
---|
4199 | |
---|
4200 | DEFAULT VALUE: |
---|
4201 | This is not defined by default. |
---|
4202 | |
---|
4203 | DESCRIPTION: |
---|
4204 | ``CONFIGURE_APPLICATION_PREREQUISITE_DRIVERS`` is defined if the |
---|
4205 | application has device drivers it needs to include in the Device Driver |
---|
4206 | Table. This should be defined to the set of device driver entries that |
---|
4207 | will be placed in the table at the *FRONT* of the Device Driver Table and |
---|
4208 | initialized before any other drivers *EXCEPT* any BSP prerequisite drivers. |
---|
4209 | |
---|
4210 | NOTES: |
---|
4211 | In some cases, it is used by System On Chip BSPs to support peripheral |
---|
4212 | buses beyond those normally found on the System On Chip. For example, this |
---|
4213 | is used by one RTEMS system which has implemented a SPARC/ERC32 based board |
---|
4214 | with VMEBus. The VMEBus Controller initialization is performed by a device |
---|
4215 | driver configured via this configuration parameter. |
---|
4216 | |
---|
4217 | .. COMMENT: XXX Add example |
---|
4218 | |
---|
4219 | .. index:: CONFIGURE_APPLICATION_EXTRA_DRIVERS |
---|
4220 | |
---|
4221 | .. _CONFIGURE_APPLICATION_EXTRA_DRIVERS: |
---|
4222 | |
---|
4223 | CONFIGURE_APPLICATION_EXTRA_DRIVERS |
---|
4224 | ----------------------------------- |
---|
4225 | |
---|
4226 | CONSTANT: |
---|
4227 | ``CONFIGURE_APPLICATION_EXTRA_DRIVERS`` |
---|
4228 | |
---|
4229 | DATA TYPE: |
---|
4230 | device driver entry structures |
---|
4231 | |
---|
4232 | RANGE: |
---|
4233 | Undefined or set of device driver entry structures |
---|
4234 | |
---|
4235 | DEFAULT VALUE: |
---|
4236 | This is not defined by default. |
---|
4237 | |
---|
4238 | DESCRIPTION: |
---|
4239 | ``CONFIGURE_APPLICATION_EXTRA_DRIVERS`` is defined if the application has |
---|
4240 | device drivers it needs to include in the Device Driver Table. This should |
---|
4241 | be defined to the set of device driver entries that will be placed in the |
---|
4242 | table at the *END* of the Device Driver Table. |
---|
4243 | |
---|
4244 | NOTES: |
---|
4245 | None. |
---|
4246 | |
---|
4247 | .. index:: CONFIGURE_APPLICATION_NEEDS_NULL_DRIVER |
---|
4248 | .. index:: /dev/null |
---|
4249 | |
---|
4250 | .. _CONFIGURE_APPLICATION_NEEDS_NULL_DRIVER: |
---|
4251 | |
---|
4252 | CONFIGURE_APPLICATION_NEEDS_NULL_DRIVER |
---|
4253 | --------------------------------------- |
---|
4254 | |
---|
4255 | CONSTANT: |
---|
4256 | ``CONFIGURE_APPLICATION_NEEDS_NULL_DRIVER`` |
---|
4257 | |
---|
4258 | DATA TYPE: |
---|
4259 | Boolean feature macro. |
---|
4260 | |
---|
4261 | RANGE: |
---|
4262 | Defined or undefined. |
---|
4263 | |
---|
4264 | DEFAULT VALUE: |
---|
4265 | This is not defined by default. |
---|
4266 | |
---|
4267 | DESCRIPTION: |
---|
4268 | This configuration variable is specified to enable ``/dev/null`` device driver. |
---|
4269 | |
---|
4270 | NOTES: |
---|
4271 | This device driver is supported by all BSPs. |
---|
4272 | |
---|
4273 | .. index:: CONFIGURE_APPLICATION_NEEDS_ZERO_DRIVER |
---|
4274 | .. index:: /dev/zero |
---|
4275 | |
---|
4276 | .. _CONFIGURE_APPLICATION_NEEDS_ZERO_DRIVER: |
---|
4277 | |
---|
4278 | CONFIGURE_APPLICATION_NEEDS_ZERO_DRIVER |
---|
4279 | --------------------------------------- |
---|
4280 | |
---|
4281 | CONSTANT: |
---|
4282 | ``CONFIGURE_APPLICATION_NEEDS_ZERO_DRIVER`` |
---|
4283 | |
---|
4284 | DATA TYPE: |
---|
4285 | Boolean feature macro. |
---|
4286 | |
---|
4287 | RANGE: |
---|
4288 | Defined or undefined. |
---|
4289 | |
---|
4290 | DEFAULT VALUE: |
---|
4291 | This is not defined by default. |
---|
4292 | |
---|
4293 | DESCRIPTION: |
---|
4294 | This configuration variable is specified to enable ``/dev/zero`` device driver. |
---|
4295 | |
---|
4296 | NOTES: |
---|
4297 | This device driver is supported by all BSPs. |
---|
4298 | |
---|
4299 | .. index:: CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE |
---|
4300 | |
---|
4301 | .. _CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE: |
---|
4302 | |
---|
4303 | CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE |
---|
4304 | ------------------------------------- |
---|
4305 | |
---|
4306 | CONSTANT: |
---|
4307 | ``CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE`` |
---|
4308 | |
---|
4309 | DATA TYPE: |
---|
4310 | Boolean feature macro. |
---|
4311 | |
---|
4312 | RANGE: |
---|
4313 | Defined or undefined. |
---|
4314 | |
---|
4315 | DEFAULT VALUE: |
---|
4316 | This is not defined by default, indicating the ``<rtems/confdefs.h>`` is |
---|
4317 | providing the device driver table. |
---|
4318 | |
---|
4319 | DESCRIPTION: |
---|
4320 | ``CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE`` is defined if the application |
---|
4321 | wishes to provide their own Device Driver Table. |
---|
4322 | |
---|
4323 | The table must be an array of ``rtems_driver_address_table`` entries |
---|
4324 | named`` _IO_Driver_address_table``. The application must also provide a |
---|
4325 | const variable ``_IO_Number_of_drivers`` of type ``size_t`` indicating the |
---|
4326 | number of entries in the ``_IO_Driver_address_table``. |
---|
4327 | |
---|
4328 | NOTES: |
---|
4329 | It is expected that there the application would only rarely need to do this. |
---|
4330 | |
---|
4331 | Multiprocessing Configuration |
---|
4332 | ============================= |
---|
4333 | |
---|
4334 | This section defines the multiprocessing related system configuration |
---|
4335 | parameters supported by ``<rtems/confdefs.h>``. They are only used if the |
---|
4336 | Multiprocessing Support (distinct from the SMP support) is enabled at configure |
---|
4337 | time using the ``--enable-multiprocessing`` option. |
---|
4338 | |
---|
4339 | Additionally, this class of Configuration Constants are only applicable if |
---|
4340 | ``CONFIGURE_MP_APPLICATION`` is defined. |
---|
4341 | |
---|
4342 | .. index:: CONFIGURE_MP_APPLICATION |
---|
4343 | |
---|
4344 | .. _CONFIGURE_MP_APPLICATION: |
---|
4345 | |
---|
4346 | CONFIGURE_MP_APPLICATION |
---|
4347 | ------------------------ |
---|
4348 | |
---|
4349 | CONSTANT: |
---|
4350 | ``CONFIGURE_MP_APPLICATION`` |
---|
4351 | |
---|
4352 | DATA TYPE: |
---|
4353 | Boolean feature macro. |
---|
4354 | |
---|
4355 | RANGE: |
---|
4356 | Defined or undefined. |
---|
4357 | |
---|
4358 | DEFAULT VALUE: |
---|
4359 | This is not defined by default. |
---|
4360 | |
---|
4361 | DESCRIPTION: |
---|
4362 | This configuration parameter must be defined to indicate that the |
---|
4363 | application intends to be part of a multiprocessing |
---|
4364 | configuration. Additional configuration parameters are assumed to be |
---|
4365 | provided. |
---|
4366 | |
---|
4367 | NOTES: |
---|
4368 | This has no impact unless RTEMS was configured and built using the |
---|
4369 | ``--enable-multiprocessing`` option. |
---|
4370 | |
---|
4371 | .. index:: CONFIGURE_MP_NODE_NUMBER |
---|
4372 | |
---|
4373 | .. _CONFIGURE_MP_NODE_NUMBER: |
---|
4374 | |
---|
4375 | CONFIGURE_MP_NODE_NUMBER |
---|
4376 | ------------------------ |
---|
4377 | |
---|
4378 | CONSTANT: |
---|
4379 | ``CONFIGURE_MP_NODE_NUMBER`` |
---|
4380 | |
---|
4381 | DATA TYPE: |
---|
4382 | Unsigned integer (``uint32_t``). |
---|
4383 | |
---|
4384 | RANGE: |
---|
4385 | Positive. |
---|
4386 | |
---|
4387 | DEFAULT VALUE: |
---|
4388 | The default value is ``NODE_NUMBER``, which is assumed to be set by the |
---|
4389 | compilation environment. |
---|
4390 | |
---|
4391 | DESCRIPTION: |
---|
4392 | ``CONFIGURE_MP_NODE_NUMBER`` is the node number of this node in a |
---|
4393 | multiprocessor system. |
---|
4394 | |
---|
4395 | NOTES: |
---|
4396 | In the RTEMS Multiprocessing Test Suite, the node number is derived from |
---|
4397 | the Makefile variable ``NODE_NUMBER``. The same code is compiled with the |
---|
4398 | ``NODE_NUMBER`` set to different values. The test programs behave |
---|
4399 | differently based upon their node number. |
---|
4400 | |
---|
4401 | .. index:: CONFIGURE_MP_MAXIMUM_NODES |
---|
4402 | |
---|
4403 | .. _CONFIGURE_MP_MAXIMUM_NODES: |
---|
4404 | |
---|
4405 | CONFIGURE_MP_MAXIMUM_NODES |
---|
4406 | -------------------------- |
---|
4407 | |
---|
4408 | CONSTANT: |
---|
4409 | ``CONFIGURE_MP_MAXIMUM_NODES`` |
---|
4410 | |
---|
4411 | DATA TYPE: |
---|
4412 | Unsigned integer (``uint32_t``). |
---|
4413 | |
---|
4414 | RANGE: |
---|
4415 | Positive. |
---|
4416 | |
---|
4417 | DEFAULT VALUE: |
---|
4418 | The default value is 2. |
---|
4419 | |
---|
4420 | DESCRIPTION: |
---|
4421 | ``CONFIGURE_MP_MAXIMUM_NODES`` is the maximum number of nodes in a |
---|
4422 | multiprocessor system. |
---|
4423 | |
---|
4424 | NOTES: |
---|
4425 | None. |
---|
4426 | |
---|
4427 | .. index:: CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS |
---|
4428 | |
---|
4429 | .. _CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS: |
---|
4430 | |
---|
4431 | CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS |
---|
4432 | ----------------------------------- |
---|
4433 | |
---|
4434 | CONSTANT: |
---|
4435 | ``CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS`` |
---|
4436 | |
---|
4437 | DATA TYPE: |
---|
4438 | Unsigned integer (``uint32_t``). |
---|
4439 | |
---|
4440 | RANGE: |
---|
4441 | Positive. |
---|
4442 | |
---|
4443 | DEFAULT VALUE: |
---|
4444 | The default value is 32. |
---|
4445 | |
---|
4446 | DESCRIPTION: |
---|
4447 | ``CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS`` is the maximum number of |
---|
4448 | concurrently active global objects in a multiprocessor system. |
---|
4449 | |
---|
4450 | NOTES: |
---|
4451 | This value corresponds to the total number of objects which can be created |
---|
4452 | with the ``RTEMS_GLOBAL`` attribute. |
---|
4453 | |
---|
4454 | .. index:: CONFIGURE_MP_MAXIMUM_PROXIES |
---|
4455 | |
---|
4456 | .. _CONFIGURE_MP_MAXIMUM_PROXIES: |
---|
4457 | |
---|
4458 | CONFIGURE_MP_MAXIMUM_PROXIES |
---|
4459 | ---------------------------- |
---|
4460 | |
---|
4461 | CONSTANT: |
---|
4462 | ``CONFIGURE_MP_MAXIMUM_PROXIES`` |
---|
4463 | |
---|
4464 | DATA TYPE: |
---|
4465 | Unsigned integer (``uint32_t``). |
---|
4466 | |
---|
4467 | RANGE: |
---|
4468 | Undefined or positive. |
---|
4469 | |
---|
4470 | DEFAULT VALUE: |
---|
4471 | The default value is 32. |
---|
4472 | |
---|
4473 | DESCRIPTION: |
---|
4474 | ``CONFIGURE_MP_MAXIMUM_PROXIES`` is the maximum number of concurrently |
---|
4475 | active thread/task proxies on this node in a multiprocessor system. |
---|
4476 | |
---|
4477 | NOTES: |
---|
4478 | Since a proxy is used to represent a remote task/thread which is blocking |
---|
4479 | on this node. This configuration parameter reflects the maximum number of |
---|
4480 | remote tasks/threads which can be blocked on objects on this node. |
---|
4481 | |
---|
4482 | .. COMMENT: XXX - add xref to proxy discussion in MP chapter |
---|
4483 | |
---|
4484 | .. index:: CONFIGURE_MP_MPCI_TABLE_POINTER |
---|
4485 | |
---|
4486 | .. _CONFIGURE_MP_MPCI_TABLE_POINTER: |
---|
4487 | |
---|
4488 | CONFIGURE_MP_MPCI_TABLE_POINTER |
---|
4489 | ------------------------------- |
---|
4490 | |
---|
4491 | CONSTANT: |
---|
4492 | ``CONFIGURE_MP_MPCI_TABLE_POINTER`` |
---|
4493 | |
---|
4494 | DATA TYPE: |
---|
4495 | pointer to ``rtems_mpci_table`` |
---|
4496 | |
---|
4497 | RANGE: |
---|
4498 | undefined or valid pointer |
---|
4499 | |
---|
4500 | DEFAULT VALUE: |
---|
4501 | This is not defined by default. |
---|
4502 | |
---|
4503 | DESCRIPTION: |
---|
4504 | ``CONFIGURE_MP_MPCI_TABLE_POINTER`` is the pointer to the MPCI |
---|
4505 | Configuration Table. The default value of this field is``&MPCI_table``. |
---|
4506 | |
---|
4507 | NOTES: |
---|
4508 | RTEMS provides a Shared Memory MPCI Device Driver which can be used on any |
---|
4509 | Multiprocessor System assuming the BSP provides the proper set of |
---|
4510 | supporting methods. |
---|
4511 | |
---|
4512 | .. index:: CONFIGURE_HAS_OWN_MULTIPROCESSING_TABLE |
---|
4513 | |
---|
4514 | .. _CONFIGURE_HAS_OWN_MULTIPROCESSING_TABLE: |
---|
4515 | |
---|
4516 | CONFIGURE_HAS_OWN_MULTIPROCESSING_TABLE |
---|
4517 | --------------------------------------- |
---|
4518 | |
---|
4519 | CONSTANT: |
---|
4520 | ``CONFIGURE_HAS_OWN_MULTIPROCESSING_TABLE`` |
---|
4521 | |
---|
4522 | DATA TYPE: |
---|
4523 | Boolean feature macro. |
---|
4524 | |
---|
4525 | RANGE: |
---|
4526 | Defined or undefined. |
---|
4527 | |
---|
4528 | DEFAULT VALUE: |
---|
4529 | This is not defined by default. |
---|
4530 | |
---|
4531 | DESCRIPTION: |
---|
4532 | ``CONFIGURE_HAS_OWN_MULTIPROCESSING_TABLE`` is defined if the application |
---|
4533 | wishes to provide their own Multiprocessing Configuration Table. The |
---|
4534 | generated table is named ``Multiprocessing_configuration``. |
---|
4535 | |
---|
4536 | NOTES: |
---|
4537 | This is a configuration parameter which is very unlikely to be used by an |
---|
4538 | application. If you find yourself wanting to use it in an application, |
---|
4539 | please reconsider and discuss this on the RTEMS Users mailing list. |
---|
4540 | |
---|
4541 | Ada Tasks |
---|
4542 | ========= |
---|
4543 | |
---|
4544 | This section defines the system configuration parameters supported by |
---|
4545 | ``<rtems/confdefs.h>`` related to configuring RTEMS to support a task using Ada |
---|
4546 | tasking with GNAT/RTEMS. |
---|
4547 | |
---|
4548 | These configuration parameters are only available when RTEMS is built with the |
---|
4549 | ``--enable-ada`` configure option and the application specifies |
---|
4550 | ``CONFIGURE_GNAT_RTEMS``. |
---|
4551 | |
---|
4552 | Additionally RTEMS includes an Ada language binding to the Classic API which |
---|
4553 | has a test suite. This test suite is enabled only when``--enable-tests`` and |
---|
4554 | ``--enable-expada`` are specified on the configure command. |
---|
4555 | |
---|
4556 | .. index:: CONFIGURE_GNAT_RTEMS |
---|
4557 | |
---|
4558 | .. _CONFIGURE_GNAT_RTEMS: |
---|
4559 | |
---|
4560 | CONFIGURE_GNAT_RTEMS |
---|
4561 | -------------------- |
---|
4562 | |
---|
4563 | CONSTANT: |
---|
4564 | ``CONFIGURE_GNAT_RTEMS`` |
---|
4565 | |
---|
4566 | DATA TYPE: |
---|
4567 | Boolean feature macro. |
---|
4568 | |
---|
4569 | RANGE: |
---|
4570 | Defined or undefined. |
---|
4571 | |
---|
4572 | DEFAULT VALUE: |
---|
4573 | This is not defined by default. |
---|
4574 | |
---|
4575 | DESCRIPTION: |
---|
4576 | ``CONFIGURE_GNAT_RTEMS`` is defined to inform RTEMS that the GNAT Ada |
---|
4577 | run-time is to be used by the application. |
---|
4578 | |
---|
4579 | NOTES: |
---|
4580 | This configuration parameter is critical as it makes``<rtems/confdefs.h>`` |
---|
4581 | configure the resources (POSIX API Threads, Mutexes, Condition Variables, |
---|
4582 | and Keys) used implicitly by the GNAT run-time. |
---|
4583 | |
---|
4584 | .. index:: CONFIGURE_MAXIMUM_ADA_TASKS |
---|
4585 | |
---|
4586 | .. _CONFIGURE_MAXIMUM_ADA_TASKS: |
---|
4587 | |
---|
4588 | CONFIGURE_MAXIMUM_ADA_TASKS |
---|
4589 | --------------------------- |
---|
4590 | |
---|
4591 | CONSTANT: |
---|
4592 | ``CONFIGURE_MAXIMUM_ADA_TASKS`` |
---|
4593 | |
---|
4594 | DATA TYPE: |
---|
4595 | Unsigned integer (``uint32_t``). |
---|
4596 | |
---|
4597 | RANGE: |
---|
4598 | Undefined or positive. |
---|
4599 | |
---|
4600 | DEFAULT VALUE: |
---|
4601 | If ``CONFIGURE_GNAT_RTEMS`` is defined, then the default value is 20, |
---|
4602 | otherwise the default value is 0. |
---|
4603 | |
---|
4604 | DESCRIPTION: |
---|
4605 | ``CONFIGURE_MAXIMUM_ADA_TASKS`` is the number of Ada tasks that can be |
---|
4606 | concurrently active in the system. |
---|
4607 | |
---|
4608 | NOTES: |
---|
4609 | None. |
---|
4610 | |
---|
4611 | .. index:: CONFIGURE_MAXIMUM_FAKE_ADA_TASKS |
---|
4612 | |
---|
4613 | .. _CONFIGURE_MAXIMUM_FAKE_ADA_TASKS: |
---|
4614 | |
---|
4615 | CONFIGURE_MAXIMUM_FAKE_ADA_TASKS |
---|
4616 | -------------------------------- |
---|
4617 | |
---|
4618 | CONSTANT: |
---|
4619 | ``CONFIGURE_MAXIMUM_FAKE_ADA_TASKS`` |
---|
4620 | |
---|
4621 | DATA TYPE: |
---|
4622 | Unsigned integer (``uint32_t``). |
---|
4623 | |
---|
4624 | RANGE: |
---|
4625 | Zero or positive. |
---|
4626 | |
---|
4627 | DEFAULT VALUE: |
---|
4628 | The default value is 0. |
---|
4629 | |
---|
4630 | DESCRIPTION: |
---|
4631 | ``CONFIGURE_MAXIMUM_FAKE_ADA_TASKS`` is the number of *fake* Ada tasks that |
---|
4632 | can be concurrently active in the system. A *fake* Ada task is a non-Ada |
---|
4633 | task that makes calls back into Ada code and thus implicitly uses the Ada |
---|
4634 | run-time. |
---|
4635 | |
---|
4636 | NOTES: |
---|
4637 | None. |
---|
4638 | |
---|
4639 | PCI Library |
---|
4640 | =========== |
---|
4641 | |
---|
4642 | This section defines the system configuration parameters supported by |
---|
4643 | ``rtems/confdefs.h`` related to configuring the PCI Library for RTEMS. |
---|
4644 | |
---|
4645 | The PCI Library startup behaviour can be configured in four different ways |
---|
4646 | depending on how ``CONFIGURE_PCI_CONFIG_LIB`` is defined: |
---|
4647 | |
---|
4648 | .. index:: PCI_LIB_AUTO |
---|
4649 | |
---|
4650 | ``PCI_LIB_AUTO`` |
---|
4651 | Used to enable the PCI auto configuration software. PCI will be automatically |
---|
4652 | probed, PCI buses enumerated, all devices and bridges will be initialized |
---|
4653 | using Plug & Play software routines. The PCI device tree will be populated |
---|
4654 | based on the PCI devices found in the system, PCI devices will be configured |
---|
4655 | by allocating address region resources automatically in PCI space according |
---|
4656 | to the BSP or host bridge driver set up. |
---|
4657 | |
---|
4658 | .. index:: PCI_LIB_READ |
---|
4659 | |
---|
4660 | ``PCI_LIB_READ`` |
---|
4661 | Used to enable the PCI read configuration software. The current PCI |
---|
4662 | configuration is read to create the RAM representation (the PCI device tree) |
---|
4663 | of the PCI devices present. PCI devices are assumed to already have been |
---|
4664 | initialized and PCI buses enumerated, it is therefore required that a BIOS or |
---|
4665 | a boot loader has set up configuration space prior to booting into RTEMS. |
---|
4666 | |
---|
4667 | .. index:: PCI_LIB_STATIC |
---|
4668 | |
---|
4669 | ``PCI_LIB_STATIC`` |
---|
4670 | Used to enable the PCI static configuration software. The user provides a PCI |
---|
4671 | tree with information how all PCI devices are to be configured at compile |
---|
4672 | time by linking in a custom ``struct pci_bus pci_hb`` tree. The static PCI |
---|
4673 | library will not probe PCI for devices, instead it will assume that all |
---|
4674 | devices defined by the user are present, it will enumerate the PCI buses and |
---|
4675 | configure all PCI devices in static configuration accordingly. Since probe |
---|
4676 | and allocation software is not needed the startup is faster, has smaller |
---|
4677 | footprint and does not require dynamic memory allocation. |
---|
4678 | |
---|
4679 | .. index:: PCI_LIB_PERIPHERAL |
---|
4680 | |
---|
4681 | ``PCI_LIB_PERIPHERAL`` |
---|
4682 | Used to enable the PCI peripheral configuration. It is similar to |
---|
4683 | ``PCI_LIB_STATIC``, but it will never write the configuration to the PCI |
---|
4684 | devices since PCI peripherals are not allowed to access PCI configuration |
---|
4685 | space. |
---|
4686 | |
---|
4687 | Note that selecting ``PCI_LIB_STATIC`` or ``PCI_LIB_PERIPHERAL`` but not |
---|
4688 | defining ``pci_hb`` will reuslt in link errors. Note also that in these modes |
---|
4689 | Plug & Play is not performed. |
---|
4690 | |
---|
4691 | Go Tasks |
---|
4692 | ======== |
---|
4693 | |
---|
4694 | .. index:: CONFIGURE_ENABLE_GO |
---|
4695 | |
---|
4696 | .. _CONFIGURE_ENABLE_GO: |
---|
4697 | |
---|
4698 | CONFIGURE_ENABLE_GO |
---|
4699 | ------------------- |
---|
4700 | |
---|
4701 | CONSTANT: |
---|
4702 | ``CONFIGURE_ENABLE_GO`` |
---|
4703 | |
---|
4704 | DATA TYPE: |
---|
4705 | Boolean feature macro. |
---|
4706 | |
---|
4707 | RANGE: |
---|
4708 | Defined or undefined. |
---|
4709 | |
---|
4710 | DEFAULT VALUE: |
---|
4711 | This is not defined by default. |
---|
4712 | |
---|
4713 | DESCRIPTION: |
---|
4714 | ``CONFIGURE_ENABLE_GO`` is defined to inform RTEMS that the Go run-time is |
---|
4715 | to be used by the application. |
---|
4716 | |
---|
4717 | NOTES: |
---|
4718 | The Go language support is experimental |
---|
4719 | |
---|
4720 | .. index:: CONFIGURE_MAXIMUM_GOROUTINES |
---|
4721 | |
---|
4722 | .. _CONFIGURE_MAXIMUM_GOROUTINES: |
---|
4723 | |
---|
4724 | CONFIGURE_MAXIMUM_GOROUTINES |
---|
4725 | ---------------------------- |
---|
4726 | |
---|
4727 | CONSTANT: |
---|
4728 | ``CONFIGURE_MAXIMUM_GOROUTINES`` |
---|
4729 | |
---|
4730 | DATA TYPE: |
---|
4731 | Unsigned integer (``uint32_t``). |
---|
4732 | |
---|
4733 | RANGE: |
---|
4734 | Zero or positive. |
---|
4735 | |
---|
4736 | DEFAULT VALUE: |
---|
4737 | The default value is 400 |
---|
4738 | |
---|
4739 | DESCRIPTION: |
---|
4740 | ``CONFIGURE_MAXIMUM_GOROUTINES`` is defined to specify the maximum number |
---|
4741 | of Go routines. |
---|
4742 | |
---|
4743 | NOTES: |
---|
4744 | The Go language support is experimental |
---|
4745 | |
---|
4746 | .. index:: CONFIGURE_MAXIMUM_GO_CHANNELS |
---|
4747 | |
---|
4748 | .. _CONFIGURE_MAXIMUM_GO_CHANNELS: |
---|
4749 | |
---|
4750 | CONFIGURE_MAXIMUM_GO_CHANNELS |
---|
4751 | ----------------------------- |
---|
4752 | |
---|
4753 | CONSTANT: |
---|
4754 | ``CONFIGURE_MAXIMUM_GO_CHANNELS`` |
---|
4755 | |
---|
4756 | DATA TYPE: |
---|
4757 | Unsigned integer (``uint32_t``). |
---|
4758 | |
---|
4759 | RANGE: |
---|
4760 | Zero or positive. |
---|
4761 | |
---|
4762 | DEFAULT VALUE: |
---|
4763 | The default value is 500 |
---|
4764 | |
---|
4765 | DESCRIPTION: |
---|
4766 | ``CONFIGURE_MAXIMUM_GO_CHANNELS`` is defined to specify the maximum number |
---|
4767 | of Go channels. |
---|
4768 | |
---|
4769 | NOTES: |
---|
4770 | The Go language support is experimental |
---|
4771 | |
---|
4772 | Obsolete Configuration Options |
---|
4773 | ============================== |
---|
4774 | |
---|
4775 | .. index:: CONFIGURE_BDBUF_BUFFER_COUNT |
---|
4776 | |
---|
4777 | CONFIGURE_BDBUF_BUFFER_COUNT |
---|
4778 | ---------------------------- |
---|
4779 | |
---|
4780 | This configuration option was introduced in RTEMS 4.7.0 and is obsolete since |
---|
4781 | RTEMS 4.10.0. |
---|
4782 | |
---|
4783 | .. index:: CONFIGURE_BDBUF_BUFFER_SIZE |
---|
4784 | |
---|
4785 | CONFIGURE_BDBUF_BUFFER_SIZE |
---|
4786 | --------------------------- |
---|
4787 | |
---|
4788 | This configuration option was introduced in RTEMS 4.7.0 and is obsolete since |
---|
4789 | RTEMS 4.10.0. |
---|
4790 | |
---|
4791 | .. index:: CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS |
---|
4792 | |
---|
4793 | CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS |
---|
4794 | -------------------------------------- |
---|
4795 | |
---|
4796 | This configuration option was introduced in RTEMS 4.9.0 and is obsolete since |
---|
4797 | RTEMS 5.1. |
---|
4798 | |
---|
4799 | .. index:: CONFIGURE_HAS_OWN_BDBUF_TABLE |
---|
4800 | |
---|
4801 | CONFIGURE_HAS_OWN_BDBUF_TABLE |
---|
4802 | ----------------------------- |
---|
4803 | |
---|
4804 | This configuration option was introduced in RTEMS 4.7.0 and is obsolete since |
---|
4805 | RTEMS 4.10.0. |
---|
4806 | |
---|
4807 | .. index:: CONFIGURE_NUMBER_OF_TERMIOS_PORTS |
---|
4808 | |
---|
4809 | CONFIGURE_NUMBER_OF_TERMIOS_PORTS |
---|
4810 | --------------------------------- |
---|
4811 | |
---|
4812 | This configuration option is obsolete since RTEMS 5.1. |
---|
4813 | |
---|
4814 | .. index:: CONFIGURE_MAXIMUM_POSIX_BARRIERS |
---|
4815 | |
---|
4816 | CONFIGURE_MAXIMUM_POSIX_BARRIERS |
---|
4817 | -------------------------------- |
---|
4818 | |
---|
4819 | This configuration option is obsolete since RTEMS 5.1. |
---|
4820 | |
---|
4821 | .. index:: CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES |
---|
4822 | |
---|
4823 | CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES |
---|
4824 | ------------------------------------------- |
---|
4825 | |
---|
4826 | This configuration option is obsolete since RTEMS 5.1. |
---|
4827 | |
---|
4828 | .. index:: CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUE_DESCRIPTORS |
---|
4829 | |
---|
4830 | CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUE_DESCRIPTORS |
---|
4831 | ------------------------------- |
---|
4832 | |
---|
4833 | This configuration option was introduced in RTEMS 4.10.0 and is obsolete since |
---|
4834 | RTEMS 5.1. |
---|
4835 | |
---|
4836 | .. index:: CONFIGURE_MAXIMUM_POSIX_MUTEXES |
---|
4837 | |
---|
4838 | CONFIGURE_MAXIMUM_POSIX_MUTEXES |
---|
4839 | ------------------------------- |
---|
4840 | |
---|
4841 | This configuration option is obsolete since RTEMS 5.1. |
---|
4842 | |
---|
4843 | .. index:: CONFIGURE_MAXIMUM_POSIX_RWLOCKS |
---|
4844 | |
---|
4845 | CONFIGURE_MAXIMUM_POSIX_RWLOCKS |
---|
4846 | ------------------------------- |
---|
4847 | |
---|
4848 | This configuration option is obsolete since RTEMS 5.1. |
---|
4849 | |
---|
4850 | .. index:: CONFIGURE_MAXIMUM_POSIX_SPINLOCKS |
---|
4851 | |
---|
4852 | CONFIGURE_MAXIMUM_POSIX_SPINLOCKS |
---|
4853 | --------------------------------- |
---|
4854 | |
---|
4855 | This configuration option is obsolete since RTEMS 5.1. |
---|
4856 | |
---|
4857 | .. index:: CONFIGURE_TERMIOS_DISABLED |
---|
4858 | |
---|
4859 | CONFIGURE_TERMIOS_DISABLED |
---|
4860 | -------------------------- |
---|
4861 | |
---|
4862 | This configuration option is obsolete since RTEMS 5.1. |
---|
4863 | |
---|
4864 | .. index:: CONFIGURE_SMP_APPLICATION |
---|
4865 | |
---|
4866 | CONFIGURE_SMP_APPLICATION |
---|
4867 | ------------------------- |
---|
4868 | |
---|
4869 | This configuration option was introduced in RTEMS 4.11.0 and is obsolete since |
---|
4870 | RTEMS 5.1. |
---|
4871 | |
---|
4872 | .. index:: CONFIGURE_SMP_MAXIMUM_PROCESSORS |
---|
4873 | |
---|
4874 | CONFIGURE_SMP_MAXIMUM_PROCESSORS |
---|
4875 | -------------------------------- |
---|
4876 | |
---|
4877 | This configuration option was introduced in RTEMS 4.11.0 and is obsolete since |
---|
4878 | RTEMS 5.1. See also :ref:`CONFIGURE_MAXIMUM_PROCESSORS`. |
---|