source: rtems-docs/c-user/configuring_a_system.rst @ c078afb

5
Last change on this file since c078afb was c078afb, checked in by Sebastian Huber <sebastian.huber@…>, on 03/06/20 at 19:25:04

c-user: Minor format fixes

Update #3836.

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