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

5
Last change on this file since a174ae4 was a174ae4, checked in by Sebastian Huber <sebastian.huber@…>, on 03/06/20 at 12:43:56

c-user: Clarify BSP related configuration options

Sort options alphabetically.

Update #3836.

  • Property mode set to 100644
File size: 135.3 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_TASKS
1064
1065.. _CONFIGURE_MAXIMUM_TASKS:
1066
1067CONFIGURE_MAXIMUM_TASKS
1068-----------------------
1069
1070CONSTANT:
1071    ``CONFIGURE_MAXIMUM_TASKS``
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_TASKS`` is the maximum number of Classic API Tasks that
1084    can be concurrently active.
1085
1086NOTES:
1087    This object class can be configured in unlimited allocation mode.
1088
1089    The calculations for the required memory in the RTEMS Workspace for tasks
1090    assume that each task has a minimum stack size and has floating point
1091    support enabled.  The configuration parameter
1092    ``CONFIGURE_EXTRA_TASK_STACKS`` is used to specify task stack requirements
1093    *ABOVE* the minimum size required.  See :ref:`Reserve Task/Thread Stack
1094    Memory Above Minimum` for more information about
1095    ``CONFIGURE_EXTRA_TASK_STACKS``.
1096
1097    The maximum number of POSIX threads is specified by
1098    :ref:`CONFIGURE_MAXIMUM_POSIX_THREADS <CONFIGURE_MAXIMUM_POSIX_THREADS>`.
1099
1100    A future enhancement to ``<rtems/confdefs.h>`` could be to eliminate the
1101    assumption that all tasks have floating point enabled. This would require
1102    the addition of a new configuration parameter to specify the number of
1103    tasks which enable floating point support.
1104
1105.. COMMENT: XXX - Add xref to CONFIGURE_MAXIMUM_POSIX_THREADS.
1106
1107.. index:: CONFIGURE_MAXIMUM_TIMERS
1108
1109.. _CONFIGURE_MAXIMUM_TIMERS:
1110
1111CONFIGURE_MAXIMUM_TIMERS
1112------------------------
1113
1114CONSTANT:
1115    ``CONFIGURE_MAXIMUM_TIMERS``
1116
1117DATA TYPE:
1118    Unsigned integer (``uint32_t``).
1119
1120RANGE:
1121    Zero or positive.
1122
1123DEFAULT VALUE:
1124    The default value is 0.
1125
1126DESCRIPTION:
1127    ``CONFIGURE_MAXIMUM_TIMERS`` is the maximum number of Classic API Timers
1128    that can be concurrently active.
1129
1130NOTES:
1131    This object class can be configured in unlimited allocation mode.
1132
1133.. index:: CONFIGURE_MAXIMUM_SEMAPHORES
1134
1135.. _CONFIGURE_MAXIMUM_SEMAPHORES:
1136
1137CONFIGURE_MAXIMUM_SEMAPHORES
1138----------------------------
1139
1140CONSTANT:
1141    ``CONFIGURE_MAXIMUM_SEMAPHORES``
1142
1143DATA TYPE:
1144    Unsigned integer (``uint32_t``).
1145
1146RANGE:
1147    Zero or positive.
1148
1149DEFAULT VALUE:
1150    The default value is 0.
1151
1152DESCRIPTION:
1153    ``CONFIGURE_MAXIMUM_SEMAPHORES`` is the maximum number of Classic API
1154    Semaphores that can be concurrently active.
1155
1156NOTES:
1157    This object class can be configured in unlimited allocation mode.
1158
1159    In SMP configurations, the size of a Semaphore Control Block depends on the
1160    scheduler count (see :ref:`ConfigurationSchedulerTable`).  The semaphores
1161    using the :ref:`MrsP` need a ceiling priority per scheduler.
1162
1163.. index:: CONFIGURE_MAXIMUM_MESSAGE_QUEUES
1164
1165.. _CONFIGURE_MAXIMUM_MESSAGE_QUEUES:
1166
1167CONFIGURE_MAXIMUM_MESSAGE_QUEUES
1168--------------------------------
1169
1170CONSTANT:
1171    ``CONFIGURE_MAXIMUM_MESSAGE_QUEUES``
1172
1173DATA TYPE:
1174    Unsigned integer (``uint32_t``).
1175
1176RANGE:
1177    Zero or positive.
1178
1179DEFAULT VALUE:
1180    The default value is 0.
1181
1182DESCRIPTION:
1183    ``CONFIGURE_MAXIMUM_MESSAGE_QUEUES`` is the maximum number of Classic API
1184    Message Queues that can be concurrently active.
1185
1186NOTES:
1187    This object class can be configured in unlimited allocation mode.
1188
1189.. index:: CONFIGURE_MAXIMUM_BARRIERS
1190
1191.. _CONFIGURE_MAXIMUM_BARRIERS:
1192
1193CONFIGURE_MAXIMUM_BARRIERS
1194--------------------------
1195
1196CONSTANT:
1197    ``CONFIGURE_MAXIMUM_BARRIERS``
1198
1199DATA TYPE:
1200    Unsigned integer (``uint32_t``).
1201
1202RANGE:
1203    Zero or positive.
1204
1205DEFAULT VALUE:
1206    The default value is 0.
1207
1208DESCRIPTION:
1209    ``CONFIGURE_MAXIMUM_BARRIERS`` is the maximum number of Classic API
1210    Barriers that can be concurrently active.
1211
1212NOTES:
1213    This object class can be configured in unlimited allocation mode.
1214
1215.. index:: CONFIGURE_MAXIMUM_PERIODS
1216
1217.. _CONFIGURE_MAXIMUM_PERIODS:
1218
1219CONFIGURE_MAXIMUM_PERIODS
1220-------------------------
1221
1222CONSTANT:
1223    ``CONFIGURE_MAXIMUM_PERIODS``
1224
1225DATA TYPE:
1226    Unsigned integer (``uint32_t``).
1227
1228RANGE:
1229    Zero or positive.
1230
1231DEFAULT VALUE:
1232    The default value is 0.
1233
1234DESCRIPTION:
1235    ``CONFIGURE_MAXIMUM_PERIODS`` is the maximum number of Classic API Periods
1236    that can be concurrently active.
1237
1238NOTES:
1239    This object class can be configured in unlimited allocation mode.
1240
1241.. index:: CONFIGURE_MAXIMUM_PARTITIONS
1242
1243.. _CONFIGURE_MAXIMUM_PARTITIONS:
1244
1245CONFIGURE_MAXIMUM_PARTITIONS
1246----------------------------
1247
1248CONSTANT:
1249    ``CONFIGURE_MAXIMUM_PARTITIONS``
1250
1251DATA TYPE:
1252    Unsigned integer (``uint32_t``).
1253
1254RANGE:
1255    Zero or positive.
1256
1257DEFAULT VALUE:
1258    The default value is 0.
1259
1260DESCRIPTION:
1261    ``CONFIGURE_MAXIMUM_PARTITIONS`` is the maximum number of Classic API
1262    Partitions that can be concurrently active.
1263
1264NOTES:
1265    This object class can be configured in unlimited allocation mode.
1266
1267.. index:: CONFIGURE_MAXIMUM_REGIONS
1268
1269.. _CONFIGURE_MAXIMUM_REGIONS:
1270
1271CONFIGURE_MAXIMUM_REGIONS
1272-------------------------
1273
1274CONSTANT:
1275    ``CONFIGURE_MAXIMUM_REGIONS``
1276
1277DATA TYPE:
1278    Unsigned integer (``uint32_t``).
1279
1280RANGE:
1281    Zero or positive.
1282
1283DEFAULT VALUE:
1284    The default value is 0.
1285
1286DESCRIPTION:
1287    ``CONFIGURE_MAXIMUM_REGIONS`` is the maximum number of Classic API Regions
1288    that can be concurrently active.
1289
1290NOTES:
1291    None.
1292
1293.. index:: CONFIGURE_MAXIMUM_PORTS
1294
1295.. _CONFIGURE_MAXIMUM_PORTS:
1296
1297CONFIGURE_MAXIMUM_PORTS
1298-----------------------
1299
1300CONSTANT:
1301    ``CONFIGURE_MAXIMUM_PORTS``
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_PORTS`` is the maximum number of Classic API Ports that
1314    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 Tasks Table 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_RTEMS_INIT_TASKS_TABLE
1353
1354.. _CONFIGURE_RTEMS_INIT_TASKS_TABLE:
1355
1356CONFIGURE_RTEMS_INIT_TASKS_TABLE
1357--------------------------------
1358
1359CONSTANT:
1360    ``CONFIGURE_RTEMS_INIT_TASKS_TABLE``
1361
1362DATA TYPE:
1363    Boolean feature macro.
1364
1365RANGE:
1366    Defined or undefined.
1367
1368DEFAULT VALUE:
1369    This is not defined by default.
1370
1371DESCRIPTION:
1372    ``CONFIGURE_RTEMS_INIT_TASKS_TABLE`` is defined if the user wishes to use a
1373    Classic RTEMS API Initialization Task Table. The table built by
1374    ``<rtems/confdefs.h>`` specifies the parameters for a single task. This is
1375    sufficient for applications which initialization the system from a single
1376    task.
1377
1378    By default, this field is not defined as the user MUST select their own API
1379    for initialization tasks.
1380
1381NOTES:
1382    The application may choose to use the initialization tasks or threads table
1383    from another API.
1384
1385    A compile time error will be generated if the user does not configure any
1386    initialization tasks or threads.
1387
1388.. index:: CONFIGURE_INIT_TASK_ENTRY_POINT
1389
1390.. _CONFIGURE_INIT_TASK_ENTRY_POINT:
1391
1392CONFIGURE_INIT_TASK_ENTRY_POINT
1393-------------------------------
1394
1395CONSTANT:
1396    ``CONFIGURE_INIT_TASK_ENTRY_POINT``
1397
1398DATA TYPE:
1399    Task entry function pointer (``rtems_task_entry``).
1400
1401RANGE:
1402    Valid task entry function pointer.
1403
1404DEFAULT VALUE:
1405    The default value is ``Init``.
1406
1407DESCRIPTION:
1408    ``CONFIGURE_INIT_TASK_ENTRY_POINT`` is the entry point (a.k.a. function
1409    name) of the single initialization task defined by the Classic API
1410    Initialization Tasks Table.
1411
1412NOTES:
1413    The user must implement the function ``Init`` or the function name provided
1414    in this configuration parameter.
1415
1416.. index:: CONFIGURE_INIT_TASK_NAME
1417
1418.. _CONFIGURE_INIT_TASK_NAME:
1419
1420CONFIGURE_INIT_TASK_NAME
1421------------------------
1422
1423CONSTANT:
1424    ``CONFIGURE_INIT_TASK_NAME``
1425
1426DATA TYPE:
1427    RTEMS Name (``rtems_name``).
1428
1429RANGE:
1430    Any value.
1431
1432DEFAULT VALUE:
1433    The default value is ``rtems_build_name( 'U', 'I', '1', ' ' )``.
1434
1435DESCRIPTION:
1436    ``CONFIGURE_INIT_TASK_NAME`` is the name of the single initialization task
1437    defined by the Classic API Initialization Tasks Table.
1438
1439NOTES:
1440    None.
1441
1442.. index:: CONFIGURE_INIT_TASK_STACK_SIZE
1443
1444.. _CONFIGURE_INIT_TASK_STACK_SIZE:
1445
1446CONFIGURE_INIT_TASK_STACK_SIZE
1447------------------------------
1448
1449CONSTANT:
1450    ``CONFIGURE_INIT_TASK_STACK_SIZE``
1451
1452DATA TYPE:
1453    Unsigned integer (``size_t``).
1454
1455RANGE:
1456    Zero or positive.
1457
1458DEFAULT VALUE:
1459    The default value is RTEMS_MINIMUM_STACK_SIZE.
1460
1461DESCRIPTION:
1462    ``CONFIGURE_INIT_TASK_STACK_SIZE`` is the stack size of the single
1463    initialization task defined by the Classic API Initialization Tasks Table.
1464
1465NOTES:
1466    If the stack size specified is greater than the configured minimum, it must
1467    be accounted for in ``CONFIGURE_EXTRA_TASK_STACKS``.  See :ref:`Reserve
1468    Task/Thread Stack Memory Above Minimum` for more information about
1469    ``CONFIGURE_EXTRA_TASK_STACKS``.
1470
1471.. index:: CONFIGURE_INIT_TASK_PRIORITY
1472
1473.. _CONFIGURE_INIT_TASK_PRIORITY:
1474
1475CONFIGURE_INIT_TASK_PRIORITY
1476----------------------------
1477
1478CONSTANT:
1479    ``CONFIGURE_INIT_TASK_PRIORITY``
1480
1481DATA TYPE:
1482    RTEMS Task Priority (``rtems_task_priority``).
1483
1484RANGE:
1485    One (1) to the maximum user priority value of the scheduler.
1486
1487DEFAULT VALUE:
1488    The default value is 1, which is the highest priority in the Classic API.
1489
1490DESCRIPTION:
1491    ``CONFIGURE_INIT_TASK_PRIORITY`` is the initial priority of the single
1492    initialization task defined by the Classic API Initialization Tasks Table.
1493
1494NOTES:
1495    None.
1496
1497
1498.. index:: CONFIGURE_INIT_TASK_ATTRIBUTES
1499
1500.. _CONFIGURE_INIT_TASK_ATTRIBUTES:
1501
1502CONFIGURE_INIT_TASK_ATTRIBUTES
1503------------------------------
1504
1505CONSTANT:
1506    ``CONFIGURE_INIT_TASK_ATTRIBUTES``
1507
1508DATA TYPE:
1509    RTEMS Attributes (``rtems_attribute``).
1510
1511RANGE:
1512    Valid task attribute sets.
1513
1514DEFAULT VALUE:
1515    The default value is ``RTEMS_DEFAULT_ATTRIBUTES``.
1516
1517DESCRIPTION:
1518    ``CONFIGURE_INIT_TASK_ATTRIBUTES`` is the task attributes of the single
1519    initialization task defined by the Classic API Initialization Tasks Table.
1520
1521NOTES:
1522    None.
1523
1524.. index:: CONFIGURE_INIT_TASK_INITIAL_MODES
1525
1526.. _CONFIGURE_INIT_TASK_INITIAL_MODES:
1527
1528CONFIGURE_INIT_TASK_INITIAL_MODES
1529---------------------------------
1530
1531CONSTANT:
1532    ``CONFIGURE_INIT_TASK_INITIAL_MODES``
1533
1534DATA TYPE:
1535    RTEMS Mode (``rtems_mode``).
1536
1537RANGE:
1538    Valid task mode sets.
1539
1540DEFAULT VALUE:
1541    The default value is ``RTEMS_NO_PREEMPT``.
1542
1543DESCRIPTION:
1544    ``CONFIGURE_INIT_TASK_INITIAL_MODES`` is the initial execution mode of the
1545    single initialization task defined by the Classic API Initialization Tasks
1546    Table.
1547
1548NOTES:
1549    None.
1550
1551.. index:: CONFIGURE_INIT_TASK_ARGUMENTS
1552
1553.. _CONFIGURE_INIT_TASK_ARGUMENTS:
1554
1555CONFIGURE_INIT_TASK_ARGUMENTS
1556-----------------------------
1557
1558CONSTANT:
1559    ``CONFIGURE_INIT_TASK_ARGUMENTS``
1560
1561DATA TYPE:
1562    RTEMS Task Argument (``rtems_task_argument``).
1563
1564RANGE:
1565    Complete range of the type.
1566
1567DEFAULT VALUE:
1568    The default value is 0.
1569
1570DESCRIPTION:
1571    ``CONFIGURE_INIT_TASK_ARGUMENTS`` is the task argument of the single
1572    initialization task defined by the Classic API Initialization Tasks Table.
1573
1574NOTES:
1575    None.
1576
1577POSIX API Configuration
1578=======================
1579
1580The parameters in this section are used to configure resources for the POSIX
1581API supported by RTEMS.  Most POSIX API objects are available by default since
1582RTEMS 5.1.  The queued signals and timers are only available if RTEMS was built
1583with the ``--enable-posix`` build configuration option.
1584
1585.. index:: CONFIGURE_MAXIMUM_POSIX_KEYS
1586
1587.. _CONFIGURE_MAXIMUM_POSIX_KEYS:
1588
1589CONFIGURE_MAXIMUM_POSIX_KEYS
1590----------------------------
1591
1592CONSTANT:
1593    ``CONFIGURE_MAXIMUM_POSIX_KEYS``
1594
1595DATA TYPE:
1596    Unsigned integer (``uint32_t``).
1597
1598RANGE:
1599    Zero or positive.
1600
1601DEFAULT VALUE:
1602    The default value is 0.
1603
1604DESCRIPTION:
1605    ``CONFIGURE_MAXIMUM_POSIX_KEYS`` is the maximum number of POSIX API Keys
1606    that can be concurrently active.
1607
1608NOTES:
1609    This object class can be configured in unlimited allocation mode.
1610
1611.. index:: CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS
1612
1613.. _CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS
1614
1615CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS
1616---------------------------------------
1617
1618CONSTANT:
1619    ``CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS``
1620
1621DATA TYPE:
1622    Unsigned integer (``uint32_t``).
1623
1624RANGE:
1625    Zero or positive.
1626
1627DEFAULT VALUE:
1628    The default value is
1629    :ref:`CONFIGURE_MAXIMUM_POSIX_KEYS <CONFIGURE_MAXIMUM_POSIX_KEYS>` *
1630    :ref:`CONFIGURE_MAXIMUM_TASKS <CONFIGURE_MAXIMUM_TASKS>` +
1631    :ref:`CONFIGURE_MAXIMUM_POSIX_THREADS <CONFIGURE_MAXIMUM_POSIX_THREADS>`.
1632
1633DESCRIPTION:
1634    ``CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS`` is the maximum number of key
1635    value pairs used by POSIX API Keys that can be concurrently active.
1636
1637NOTES:
1638    This object class can be configured in unlimited allocation mode.
1639
1640    A key value pair is created by :c:func:`pthread_setspecific` if the value
1641    is not :c:macro:`NULL`, otherwise it is deleted.
1642
1643.. index:: CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES
1644
1645.. _CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES:
1646
1647CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES
1648--------------------------------------
1649
1650CONSTANT:
1651    ``CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES``
1652
1653DATA TYPE:
1654    Unsigned integer (``uint32_t``).
1655
1656RANGE:
1657    Zero or positive.
1658
1659DEFAULT VALUE:
1660    The default value is 0.
1661
1662DESCRIPTION:
1663    ``CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES`` is the maximum number of POSIX
1664    API Message Queues that can be concurrently active.
1665
1666NOTES:
1667    This object class can be configured in unlimited allocation mode.
1668
1669.. index:: CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS
1670
1671.. _CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS:
1672
1673CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS
1674--------------------------------------
1675
1676CONSTANT:
1677    ``CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS``
1678
1679DATA TYPE:
1680    Unsigned integer (``uint32_t``).
1681
1682RANGE:
1683    Zero or positive.
1684
1685DEFAULT VALUE:
1686    The default value is 0.
1687
1688DESCRIPTION:
1689    ``CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS`` is the maximum number of POSIX
1690    API Queued Signals that can be concurrently active.
1691
1692NOTES:
1693    Unlimited objects are not available for queued signals.
1694
1695    Queued signals are only available if RTEMS was built with the
1696    ``--enable-posix`` build configuration option.
1697
1698.. index:: CONFIGURE_MAXIMUM_POSIX_SEMAPHORES
1699
1700.. _CONFIGURE_MAXIMUM_POSIX_SEMAPHORES:
1701
1702CONFIGURE_MAXIMUM_POSIX_SEMAPHORES
1703----------------------------------
1704
1705CONSTANT:
1706    ``CONFIGURE_MAXIMUM_POSIX_SEMAPHORES``
1707
1708DATA TYPE:
1709    Unsigned integer (``uint32_t``).
1710
1711RANGE:
1712    Zero or positive.
1713
1714DEFAULT VALUE:
1715    The default value is 0.
1716
1717DESCRIPTION:
1718    ``CONFIGURE_MAXIMUM_POSIX_SEMAPHORES`` is the maximum number of POSIX API
1719    Named Semaphores that can be concurrently active.
1720
1721NOTES:
1722    This object class can be configured in unlimited allocation mode.
1723
1724    Named semaphores are created with ``sem_open()``.  Semaphores initialized
1725    with ``sem_init()`` are not affected by this configuration option since the
1726    storage space for these semaphores is user-provided.
1727
1728.. index:: CONFIGURE_MAXIMUM_POSIX_TIMERS
1729
1730.. _CONFIGURE_MAXIMUM_POSIX_TIMERS:
1731
1732CONFIGURE_MAXIMUM_POSIX_TIMERS
1733------------------------------
1734
1735CONSTANT:
1736    ``CONFIGURE_MAXIMUM_POSIX_TIMERS``
1737
1738DATA TYPE:
1739    Unsigned integer (``uint32_t``).
1740
1741RANGE:
1742    Zero or positive.
1743
1744DEFAULT VALUE:
1745    The default value is 0.
1746
1747DESCRIPTION:
1748    ``CONFIGURE_MAXIMUM_POSIX_TIMERS`` is the maximum number of POSIX API
1749    Timers that can be concurrently active.
1750
1751NOTES:
1752    This object class can be configured in unlimited allocation mode.
1753
1754    Timers are only available if RTEMS was built with the
1755    ``--enable-posix`` build configuration option.
1756
1757.. index:: CONFIGURE_MAXIMUM_POSIX_THREADS
1758
1759.. _CONFIGURE_MAXIMUM_POSIX_THREADS:
1760
1761CONFIGURE_MAXIMUM_POSIX_THREADS
1762-------------------------------
1763
1764CONSTANT:
1765    ``CONFIGURE_MAXIMUM_POSIX_THREADS``
1766
1767DATA TYPE:
1768    Unsigned integer (``uint32_t``).
1769
1770RANGE:
1771    Zero or positive.
1772
1773DEFAULT VALUE:
1774    The default value is 0.
1775
1776DESCRIPTION:
1777    ``CONFIGURE_MAXIMUM_POSIX_THREADS`` is the maximum number of POSIX API
1778    Threads that can be concurrently active.
1779
1780NOTES:
1781    This object class can be configured in unlimited allocation mode.
1782
1783    This calculations for the required memory in the RTEMS Workspace for
1784    threads assume that each thread has a minimum stack size and has floating
1785    point support enabled.  The configuration parameter
1786    ``CONFIGURE_EXTRA_TASK_STACKS`` is used to specify thread stack
1787    requirements *ABOVE* the minimum size required.  See :ref:`Reserve
1788    Task/Thread Stack Memory Above Minimum` for more information about
1789    ``CONFIGURE_EXTRA_TASK_STACKS``.
1790
1791    The maximum number of Classic API Tasks is specified by
1792    :ref:`CONFIGURE_MAXIMUM_TASKS <CONFIGURE_MAXIMUM_TASKS>`.
1793
1794    All POSIX threads have floating point enabled.
1795
1796.. index:: CONFIGURE_MINIMUM_POSIX_THREAD_STACK_SIZE
1797.. index:: minimum POSIX thread stack size
1798
1799.. _CONFIGURE_MINIMUM_POSIX_THREAD_STACK_SIZE:
1800
1801CONFIGURE_MINIMUM_POSIX_THREAD_STACK_SIZE
1802-----------------------------------------
1803
1804CONSTANT:
1805    ``CONFIGURE_MINIMUM_POSIX_THREAD_STACK_SIZE``
1806
1807DATA TYPE:
1808    Unsigned integer (``size_t``).
1809
1810RANGE:
1811    Positive.
1812
1813DEFAULT VALUE:
1814    The default value is two times the value of
1815    :ref:`CONFIGURE_MINIMUM_TASK_STACK_SIZE <CONFIGURE_MINIMUM_TASK_STACK_SIZE>`.
1816
1817DESCRIPTION:
1818    This configuration parameter defines the minimum stack size in bytes for
1819    every POSIX thread in the system.
1820
1821NOTES:
1822    None.
1823
1824POSIX Initialization Threads Table Configuration
1825================================================
1826
1827The ``<rtems/confdefs.h>`` configuration system can automatically generate a
1828POSIX Initialization Threads Table named ``POSIX_Initialization_threads`` with
1829a single entry.  The following parameters control the generation of that table.
1830
1831.. index:: CONFIGURE_POSIX_INIT_THREAD_TABLE
1832
1833.. _CONFIGURE_POSIX_INIT_THREAD_TABLE:
1834
1835CONFIGURE_POSIX_INIT_THREAD_TABLE
1836---------------------------------
1837
1838CONSTANT:
1839
1840    ``CONFIGURE_POSIX_INIT_THREAD_TABLE``
1841
1842DATA TYPE:
1843    Boolean feature macro.
1844
1845RANGE:
1846    Defined or undefined.
1847
1848DEFAULT VALUE:
1849    This field is not defined by default, as the user MUST select their own API
1850    for initialization tasks.
1851
1852DESCRIPTION:
1853    ``CONFIGURE_POSIX_INIT_THREAD_TABLE`` is defined if the user wishes to use
1854    a POSIX API Initialization Threads Table.  The table built by
1855    ``<rtems/confdefs.h>`` specifies the parameters for a single thread. This
1856    is sufficient for applications which initialization the system from a
1857    single task.
1858
1859    By default, this field is not defined as the user MUST select their own API
1860    for initialization tasks.
1861
1862NOTES:
1863    The application may choose to use the initialization tasks or threads table
1864    from another API.
1865
1866    A compile time error will be generated if the user does not configure any
1867    initialization tasks or threads.
1868
1869.. index:: CONFIGURE_POSIX_INIT_THREAD_ENTRY_POINT
1870
1871.. _CONFIGURE_POSIX_INIT_THREAD_ENTRY_POINT:
1872
1873CONFIGURE_POSIX_INIT_THREAD_ENTRY_POINT
1874---------------------------------------
1875
1876CONSTANT:
1877    ``CONFIGURE_POSIX_INIT_THREAD_ENTRY_POINT``
1878
1879DATA TYPE:
1880    POSIX thread function pointer (``void *(*entry_point)(void *)``).
1881
1882RANGE:
1883    Undefined or a valid POSIX thread function pointer.
1884
1885DEFAULT VALUE:
1886    The default value is ``POSIX_Init``.
1887
1888DESCRIPTION:
1889    ``CONFIGURE_POSIX_INIT_THREAD_ENTRY_POINT`` is the entry point
1890    (a.k.a. function name) of the single initialization thread defined by the
1891    POSIX API Initialization Threads Table.
1892
1893NOTES:
1894    The user must implement the function ``POSIX_Init`` or the function name
1895    provided in this configuration parameter.
1896
1897.. index:: CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE
1898
1899.. _CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE:
1900
1901CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE
1902--------------------------------------
1903
1904CONSTANT:
1905    ``CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE``
1906
1907DATA TYPE:
1908    Unsigned integer (``size_t``).
1909
1910RANGE:
1911    Zero or positive.
1912
1913DEFAULT VALUE:
1914    The default value is 2 \* RTEMS_MINIMUM_STACK_SIZE.
1915
1916DESCRIPTION:
1917    ``CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE`` is the stack size of the single
1918    initialization thread defined by the POSIX API Initialization Threads
1919    Table.
1920
1921NOTES:
1922    If the stack size specified is greater than the configured minimum, it must
1923    be accounted for in ``CONFIGURE_EXTRA_TASK_STACKS``.  See :ref:`Reserve
1924    Task/Thread Stack Memory Above Minimum` for more information about
1925    ``CONFIGURE_EXTRA_TASK_STACKS``.
1926
1927Configuring Custom Task Stack Allocation
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_INIT
1936
1937.. _CONFIGURE_TASK_STACK_ALLOCATOR_INIT:
1938
1939CONFIGURE_TASK_STACK_ALLOCATOR_INIT
1940-----------------------------------
1941
1942CONSTANT:
1943    ``CONFIGURE_TASK_STACK_ALLOCATOR_INIT``
1944
1945DATA TYPE:
1946    Function pointer.
1947
1948RANGE:
1949    Undefined, NULL or valid function pointer.
1950
1951DEFAULT VALUE:
1952    The default value is NULL, which indicates that task stacks will be
1953    allocated from the RTEMS Workspace.
1954
1955DESCRIPTION:
1956    ``CONFIGURE_TASK_STACK_ALLOCATOR_INIT`` configures the initialization
1957    method for an application or BSP specific task stack allocation
1958    implementation.
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
1970.. index:: task stack allocator
1971
1972.. _CONFIGURE_TASK_STACK_ALLOCATOR:
1973
1974CONFIGURE_TASK_STACK_ALLOCATOR
1975------------------------------
1976
1977CONSTANT:
1978    ``CONFIGURE_TASK_STACK_ALLOCATOR``
1979
1980DATA TYPE:
1981    Function pointer.
1982
1983RANGE:
1984    Undefined or valid function pointer.
1985
1986DEFAULT VALUE:
1987    The default value is ``_Workspace_Allocate``, which indicates that task
1988    stacks will be allocated from the RTEMS Workspace.
1989
1990DESCRIPTION:
1991    ``CONFIGURE_TASK_STACK_ALLOCATOR`` may point to a user provided routine to
1992    allocate task stacks.
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
2037Configuring Memory for Classic API Message Buffers
2038==================================================
2039
2040This section describes the configuration parameters related to specifying the
2041amount of memory reserved for Classic API Message Buffers.
2042
2043.. index:: CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE
2044.. index:: memory for a single message queue's buffers
2045
2046.. _CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE:
2047
2048CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE
2049-----------------------------------
2050
2051CONSTANT:
2052    ``CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE(max_messages, size_per)``
2053
2054DATA TYPE:
2055    Unsigned integer (``size_t``).
2056
2057RANGE:
2058    Positive.
2059
2060DEFAULT VALUE:
2061    The default value is None.
2062
2063DESCRIPTION:
2064    This is a helper macro which is used to assist in computing the total
2065    amount of memory required for message buffers.  Each message queue will
2066    have its own configuration with maximum message size and maximum number of
2067    pending messages.
2068
2069    The interface for this macro is as follows:
2070
2071    .. code-block:: c
2072
2073        CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE(max_messages, size_per)
2074
2075    Where ``max_messages`` is the maximum number of pending messages and
2076    ``size_per`` is the size in bytes of the user message.
2077
2078NOTES:
2079
2080    This macro is only used in support of ``CONFIGURE_MESSAGE_BUFFER_MEMORY``.
2081
2082.. index:: CONFIGURE_MESSAGE_BUFFER_MEMORY
2083.. index:: configure message queue buffer memory
2084
2085.. _CONFIGURE_MESSAGE_BUFFER_MEMORY:
2086
2087CONFIGURE_MESSAGE_BUFFER_MEMORY
2088-------------------------------
2089
2090CONSTANT:
2091    ``CONFIGURE_MESSAGE_BUFFER_MEMORY``
2092
2093DATA TYPE:
2094    integer summation macro
2095
2096RANGE:
2097    undefined (zero) or calculation resulting in a positive integer
2098
2099DEFAULT VALUE:
2100    This is not defined by default, and zero (0) memory is reserved.
2101
2102DESCRIPTION:
2103    This macro is set to the number of bytes the application requires to be
2104    reserved for pending Classic API Message Queue buffers.
2105
2106NOTES:
2107    The following illustrates how the help macro
2108    ``CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE`` can be used to assist in
2109    calculating the message buffer memory required.  In this example, there are
2110    two message queues used in this application.  The first message queue has
2111    maximum of 24 pending messages with the message structure defined by the
2112    type ``one_message_type``.  The other message queue has maximum of 500
2113    pending messages with the message structure defined by the type
2114    ``other_message_type``.
2115
2116    .. code-block:: c
2117
2118        #define CONFIGURE_MESSAGE_BUFFER_MEMORY \
2119                    (CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE( \
2120                         24, sizeof(one_message_type) \
2121                     ) + \
2122                     CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE( \
2123                         500, sizeof(other_message_type) \
2124                     )
2125
2126Filesystem Configuration
2127========================
2128
2129By default, the In-Memory Filesystem (IMFS) is used as the base filesystem (also
2130known as root filesystem).  In order to save some memory for your application,
2131you can disable the filesystem support with the
2132:ref:`CONFIGURE_APPLICATION_DISABLE_FILESYSTEM` configuration option.
2133Alternatively, you can strip down the features of the base filesystem with the
2134:ref:`CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM` and
2135:ref:`CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM` configuration options.  These
2136three configuration options are mutually exclusive.  They are intended for an
2137advanced application configuration.
2138
2139Features of the IMFS can be disabled and enabled with the following
2140configuration options:
2141
2142* :ref:`CONFIGURE_IMFS_DISABLE_CHMOD`
2143
2144* :ref:`CONFIGURE_IMFS_DISABLE_CHOWN`
2145
2146* :ref:`CONFIGURE_IMFS_DISABLE_LINK`
2147
2148* :ref:`CONFIGURE_IMFS_DISABLE_MKNOD`
2149
2150* :ref:`CONFIGURE_IMFS_DISABLE_MKNOD_FILE`
2151
2152* :ref:`CONFIGURE_IMFS_DISABLE_MOUNT`
2153
2154* :ref:`CONFIGURE_IMFS_DISABLE_READDIR`
2155
2156* :ref:`CONFIGURE_IMFS_DISABLE_READLINK`
2157
2158* :ref:`CONFIGURE_IMFS_DISABLE_RENAME`
2159
2160* :ref:`CONFIGURE_IMFS_DISABLE_RMNOD`
2161
2162* :ref:`CONFIGURE_IMFS_DISABLE_SYMLINK`
2163
2164* :ref:`CONFIGURE_IMFS_DISABLE_UNMOUNT`
2165
2166* :ref:`CONFIGURE_IMFS_DISABLE_UTIME`
2167
2168* :ref:`CONFIGURE_IMFS_ENABLE_MKFIFO`
2169
2170.. index:: CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM
2171
2172.. _CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM:
2173
2174CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM
2175--------------------------------------
2176
2177CONSTANT:
2178    ``CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM``
2179
2180DATA TYPE:
2181    Boolean feature macro.
2182
2183RANGE:
2184    Defined or undefined.
2185
2186DEFAULT VALUE:
2187    This is not defined by default. If no other root file system configuration
2188    parameters are specified, the IMFS will be used as the root file system.
2189
2190DESCRIPTION:
2191    This configuration parameter is defined if the application wishes to use
2192    the device-only filesytem as the root file system.
2193
2194NOTES:
2195    The device-only filesystem supports only device nodes and is smaller in
2196    executable code size than the full IMFS and miniIMFS.
2197
2198    The devFS is comparable in functionality to the pseudo-filesystem name
2199    space provided before RTEMS release 4.5.0.
2200
2201.. index:: CONFIGURE_MAXIMUM_DEVICES
2202
2203.. _CONFIGURE_MAXIMUM_DEVICES:
2204
2205CONFIGURE_MAXIMUM_DEVICES
2206-------------------------
2207
2208CONSTANT:
2209    ``CONFIGURE_MAXIMUM_DEVICES``
2210
2211DATA TYPE:
2212    Unsigned integer (``uint32_t``).
2213
2214RANGE:
2215    Positive.
2216
2217DEFAULT VALUE:
2218    If ``BSP_MAXIMUM_DEVICES`` is defined, then the default value is
2219    ``BSP_MAXIMUM_DEVICES``, otherwise the default value is 4.
2220
2221DESCRIPTION:
2222    ``CONFIGURE_MAXIMUM_DEVICES`` is defined to the number of individual
2223    devices that may be registered in the device file system (devFS).
2224
2225NOTES:
2226    This option is specific to the device file system (devFS) and should not be
2227    confused with the ``CONFIGURE_MAXIMUM_DRIVERS`` option.  This parameter
2228    only impacts the devFS and thus is only used by ``<rtems/confdefs.h>`` when
2229    ``CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM`` is specified.
2230
2231.. index:: CONFIGURE_APPLICATION_DISABLE_FILESYSTEM
2232
2233.. _CONFIGURE_APPLICATION_DISABLE_FILESYSTEM:
2234
2235CONFIGURE_APPLICATION_DISABLE_FILESYSTEM
2236----------------------------------------
2237
2238CONSTANT:
2239    ``CONFIGURE_APPLICATION_DISABLE_FILESYSTEM``
2240
2241DATA TYPE:
2242    Boolean feature macro.
2243
2244RANGE:
2245    Defined or undefined.
2246
2247DEFAULT VALUE:
2248    This is not defined by default. If no other root file system configuration
2249    parameters are specified, the IMFS will be used as the root file system.
2250
2251DESCRIPTION:
2252    This configuration parameter is defined if the application dose not intend
2253    to use any kind of filesystem support. This include the device
2254    infrastructure necessary to support ``printf()``.
2255
2256NOTES:
2257    None.
2258
2259.. index:: CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM
2260
2261.. _CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM:
2262
2263CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM
2264-----------------------------------------
2265
2266CONSTANT:
2267    ``CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM``
2268
2269DATA TYPE:
2270    Boolean feature macro.
2271
2272RANGE:
2273    Defined or undefined.
2274
2275DEFAULT VALUE:
2276    This is not defined by default.
2277
2278DESCRIPTION:
2279    In case this configuration option is defined, then the following
2280    configuration options will be defined as well
2281
2282    - ``CONFIGURE_IMFS_DISABLE_CHMOD``,
2283
2284    - ``CONFIGURE_IMFS_DISABLE_CHOWN``,
2285
2286    - ``CONFIGURE_IMFS_DISABLE_UTIME``,
2287
2288    - ``CONFIGURE_IMFS_DISABLE_LINK``,
2289
2290    - ``CONFIGURE_IMFS_DISABLE_SYMLINK``,
2291
2292    - ``CONFIGURE_IMFS_DISABLE_READLINK``,
2293
2294    - ``CONFIGURE_IMFS_DISABLE_RENAME``, and
2295
2296    - ``CONFIGURE_IMFS_DISABLE_UNMOUNT``.
2297
2298.. index:: CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK
2299
2300.. _CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK:
2301
2302CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK
2303--------------------------------------
2304
2305CONSTANT:
2306    ``CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK``
2307
2308DATA TYPE:
2309    Boolean feature macro.
2310
2311RANGE:
2312    Valid values for this configuration parameter are a power of two (2)
2313    between 16 and 512 inclusive.  In other words, valid values are 16, 32, 64,
2314    128, 256,and 512.
2315
2316DEFAULT VALUE:
2317    The default IMFS block size is 128 bytes.
2318
2319DESCRIPTION:
2320    This configuration parameter specifies the block size for in-memory files
2321    managed by the IMFS. The configured block size has two impacts. The first
2322    is the average amount of unused memory in the last block of each file. For
2323    example, when the block size is 512, on average one-half of the last block
2324    of each file will remain unused and the memory is wasted. In contrast, when
2325    the block size is 16, the average unused memory per file is only 8
2326    bytes. However, it requires more allocations for the same size file and
2327    thus more overhead per block for the dynamic memory management.
2328
2329    Second, the block size has an impact on the maximum size file that can be
2330    stored in the IMFS. With smaller block size, the maximum file size is
2331    correspondingly smaller. The following shows the maximum file size possible
2332    based on the configured block size:
2333
2334    - when the block size is 16 bytes, the maximum file size is 1,328 bytes.
2335
2336    - when the block size is 32 bytes, the maximum file size is 18,656 bytes.
2337
2338    - when the block size is 64 bytes, the maximum file size is 279,488 bytes.
2339
2340    - when the block size is 128 bytes, the maximum file size is 4,329,344 bytes.
2341
2342    - when the block size is 256 bytes, the maximum file size is 68,173,568 bytes.
2343
2344    - when the block size is 512 bytes, the maximum file size is 1,082,195,456
2345      bytes.
2346
2347.. index:: CONFIGURE_IMFS_DISABLE_CHOWN
2348
2349.. _CONFIGURE_IMFS_DISABLE_CHOWN:
2350
2351CONFIGURE_IMFS_DISABLE_CHOWN
2352----------------------------
2353
2354CONSTANT:
2355    ``CONFIGURE_IMFS_DISABLE_CHOWN``
2356
2357DATA TYPE:
2358    Boolean feature macro.
2359
2360RANGE:
2361    Defined or undefined.
2362
2363DEFAULT VALUE:
2364    This is not defined by default.
2365
2366DESCRIPTION:
2367    In case this configuration option is defined, then the support to change
2368    the owner is disabled in the root IMFS.
2369
2370.. index:: CONFIGURE_IMFS_DISABLE_CHMOD
2371
2372.. _CONFIGURE_IMFS_DISABLE_CHMOD:
2373
2374CONFIGURE_IMFS_DISABLE_CHMOD
2375----------------------------
2376
2377CONSTANT:
2378    ``CONFIGURE_IMFS_DISABLE_CHMOD``
2379
2380DATA TYPE:
2381    Boolean feature macro.
2382
2383RANGE:
2384    Defined or undefined.
2385
2386DEFAULT VALUE:
2387    This is not defined by default.
2388
2389DESCRIPTION:
2390    In case this configuration option is defined, then the support to change
2391    the mode is disabled in the root IMFS.
2392
2393.. index:: CONFIGURE_IMFS_DISABLE_UTIME
2394
2395.. _CONFIGURE_IMFS_DISABLE_UTIME:
2396
2397CONFIGURE_IMFS_DISABLE_UTIME
2398----------------------------
2399
2400CONSTANT:
2401    ``CONFIGURE_IMFS_DISABLE_UTIME``
2402
2403DATA TYPE:
2404    Boolean feature macro.
2405
2406RANGE:
2407    Defined or undefined.
2408
2409DEFAULT VALUE:
2410    This is not defined by default.
2411
2412DESCRIPTION:
2413    In case this configuration option is defined, then the support to change
2414    times is disabled in the root IMFS.
2415
2416.. index:: CONFIGURE_IMFS_DISABLE_LINK
2417
2418.. _CONFIGURE_IMFS_DISABLE_LINK:
2419
2420CONFIGURE_IMFS_DISABLE_LINK
2421---------------------------
2422
2423CONSTANT:
2424    ``CONFIGURE_IMFS_DISABLE_LINK``
2425
2426DATA TYPE:
2427    Boolean feature macro.
2428
2429RANGE:
2430    Defined or undefined.
2431
2432DEFAULT VALUE:
2433    This is not defined by default.
2434
2435DESCRIPTION:
2436    In case this configuration option is defined, then the support to create
2437    hard links is disabled in the root IMFS.
2438
2439.. index:: CONFIGURE_IMFS_DISABLE_SYMLINK
2440
2441.. _CONFIGURE_IMFS_DISABLE_SYMLINK:
2442
2443CONFIGURE_IMFS_DISABLE_SYMLINK
2444------------------------------
2445
2446CONSTANT:
2447    ``CONFIGURE_IMFS_DISABLE_SYMLINK``
2448
2449DATA TYPE:
2450    Boolean feature macro.
2451
2452RANGE:
2453    Defined or undefined.
2454
2455DEFAULT VALUE:
2456    This is not defined by default.
2457
2458DESCRIPTION:
2459    In case this configuration option is defined, then the support to create
2460    symbolic links is disabled in the root IMFS.
2461
2462.. index:: CONFIGURE_IMFS_DISABLE_READLINK
2463
2464.. _CONFIGURE_IMFS_DISABLE_READLINK:
2465
2466CONFIGURE_IMFS_DISABLE_READLINK
2467-------------------------------
2468
2469CONSTANT:
2470    ``CONFIGURE_IMFS_DISABLE_READLINK``
2471
2472DATA TYPE:
2473    Boolean feature macro.
2474
2475RANGE:
2476    Defined or undefined.
2477
2478DEFAULT VALUE:
2479    This is not defined by default.
2480
2481DESCRIPTION:
2482    In case this configuration option is defined, then the support to read
2483    symbolic links is disabled in the root IMFS.
2484
2485.. index:: CONFIGURE_IMFS_DISABLE_RENAME
2486
2487.. _CONFIGURE_IMFS_DISABLE_RENAME:
2488
2489CONFIGURE_IMFS_DISABLE_RENAME
2490-----------------------------
2491
2492CONSTANT:
2493    ``CONFIGURE_IMFS_DISABLE_RENAME``
2494
2495DATA TYPE:
2496    Boolean feature macro.
2497
2498RANGE:
2499    Defined or undefined.
2500
2501DEFAULT VALUE:
2502    This is not defined by default.
2503
2504DESCRIPTION:
2505    In case this configuration option is defined, then the support to rename
2506    nodes is disabled in the root IMFS.
2507
2508.. index:: CONFIGURE_IMFS_DISABLE_READDIR
2509
2510.. _CONFIGURE_IMFS_DISABLE_READDIR:
2511
2512CONFIGURE_IMFS_DISABLE_READDIR
2513------------------------------
2514
2515CONSTANT:
2516    ``CONFIGURE_IMFS_DISABLE_READDIR``
2517
2518DATA TYPE:
2519    Boolean feature macro.
2520
2521RANGE:
2522    Defined or undefined.
2523
2524DEFAULT VALUE:
2525    This is not defined by default.
2526
2527DESCRIPTION:
2528    In case this configuration option is defined, then the support to read a
2529    directory is disabled in the root IMFS.  It is still possible to open nodes
2530    in a directory.
2531
2532.. index:: CONFIGURE_IMFS_DISABLE_MOUNT
2533
2534.. _CONFIGURE_IMFS_DISABLE_MOUNT:
2535
2536CONFIGURE_IMFS_DISABLE_MOUNT
2537----------------------------
2538
2539CONSTANT:
2540    ``CONFIGURE_IMFS_DISABLE_MOUNT``
2541
2542DATA TYPE:
2543    Boolean feature macro.
2544
2545RANGE:
2546    Defined or undefined.
2547
2548DEFAULT VALUE:
2549    This is not defined by default.
2550
2551DESCRIPTION:
2552    In case this configuration option is defined, then the support to mount
2553    other file systems is disabled in the root IMFS.
2554
2555.. index:: CONFIGURE_IMFS_DISABLE_UNMOUNT
2556
2557.. _CONFIGURE_IMFS_DISABLE_UNMOUNT:
2558
2559CONFIGURE_IMFS_DISABLE_UNMOUNT
2560------------------------------
2561
2562CONSTANT:
2563    ``CONFIGURE_IMFS_DISABLE_UNMOUNT``
2564
2565DATA TYPE:
2566    Boolean feature macro.
2567
2568RANGE:
2569    Defined or undefined.
2570
2571DEFAULT VALUE:
2572    This is not defined by default.
2573
2574DESCRIPTION:
2575    In case this configuration option is defined, then the support to unmount
2576    file systems is disabled in the root IMFS.
2577
2578.. index:: CONFIGURE_IMFS_DISABLE_MKNOD
2579
2580.. _CONFIGURE_IMFS_DISABLE_MKNOD:
2581
2582CONFIGURE_IMFS_DISABLE_MKNOD
2583----------------------------
2584
2585CONSTANT:
2586    ``CONFIGURE_IMFS_DISABLE_MKNOD``
2587
2588DATA TYPE:
2589    Boolean feature macro.
2590
2591RANGE:
2592    Defined or undefined.
2593
2594DEFAULT VALUE:
2595    This is not defined by default.
2596
2597DESCRIPTION:
2598    In case this configuration option is defined, then the support to make
2599    directories, devices, regular files and FIFOs is disabled in the root IMFS.
2600
2601.. index:: CONFIGURE_IMFS_DISABLE_MKNOD_FILE
2602
2603.. _CONFIGURE_IMFS_DISABLE_MKNOD_FILE:
2604
2605CONFIGURE_IMFS_DISABLE_MKNOD_FILE
2606---------------------------------
2607
2608CONSTANT:
2609    ``CONFIGURE_IMFS_DISABLE_MKNOD_FILE``
2610
2611DATA TYPE:
2612    Boolean feature macro.
2613
2614RANGE:
2615    Defined or undefined.
2616
2617DEFAULT VALUE:
2618    This is not defined by default.
2619
2620DESCRIPTION:
2621    In case this configuration option is defined, then the support to make
2622    regular files is disabled in the root IMFS.
2623
2624.. index:: CONFIGURE_IMFS_DISABLE_RMNOD
2625
2626.. _CONFIGURE_IMFS_DISABLE_RMNOD:
2627
2628CONFIGURE_IMFS_DISABLE_RMNOD
2629----------------------------
2630
2631CONSTANT:
2632    ``CONFIGURE_IMFS_DISABLE_RMNOD``
2633
2634DATA TYPE:
2635    Boolean feature macro.
2636
2637RANGE:
2638    Defined or undefined.
2639
2640DEFAULT VALUE:
2641    This is not defined by default.
2642
2643DESCRIPTION:
2644    In case this configuration option is defined, then the support to remove
2645    nodes is disabled in the root IMFS.
2646
2647.. index:: CONFIGURE_IMFS_ENABLE_MKFIFO
2648
2649.. _CONFIGURE_IMFS_ENABLE_MKFIFO:
2650
2651CONFIGURE_IMFS_ENABLE_MKFIFO
2652----------------------------
2653
2654CONSTANT:
2655    ``CONFIGURE_IMFS_ENABLE_MKFIFO``
2656
2657DATA TYPE:
2658    Boolean feature macro.
2659
2660RANGE:
2661    Defined or undefined.
2662
2663DEFAULT VALUE:
2664    This is not defined by default.
2665
2666DESCRIPTION:
2667    In case this configuration option is defined, then the support to make FIFOs
2668    is enabled in the root IMFS.
2669
2670Block Device Cache Configuration
2671================================
2672
2673This section defines Block Device Cache (bdbuf) related configuration
2674parameters.
2675
2676.. index:: CONFIGURE_APPLICATION_NEEDS_LIBBLOCK
2677
2678.. _CONFIGURE_APPLICATION_NEEDS_LIBBLOCK:
2679
2680CONFIGURE_APPLICATION_NEEDS_LIBBLOCK
2681------------------------------------
2682
2683CONSTANT:
2684    ``CONFIGURE_APPLICATION_NEEDS_LIBBLOCK``
2685
2686DATA TYPE:
2687    Boolean feature macro.
2688
2689RANGE:
2690    Defined or undefined.
2691
2692DEFAULT VALUE:
2693    This is not defined by default.
2694
2695DESCRIPTION:
2696    Provides a Block Device Cache configuration.
2697
2698NOTES:
2699    Each option of the Block Device Cache configuration can be explicitly set
2700    by the user with the configuration options below.  The Block Device Cache
2701    is used for example by the RFS and DOSFS file systems.
2702
2703.. index:: CONFIGURE_BDBUF_CACHE_MEMORY_SIZE
2704
2705.. _CONFIGURE_BDBUF_CACHE_MEMORY_SIZE:
2706
2707CONFIGURE_BDBUF_CACHE_MEMORY_SIZE
2708---------------------------------
2709
2710CONSTANT:
2711    ``CONFIGURE_BDBUF_CACHE_MEMORY_SIZE``
2712
2713DATA TYPE:
2714    Unsigned integer (``size_t``).
2715
2716RANGE:
2717    Positive.
2718
2719DEFAULT VALUE:
2720    The default value is 32768 bytes.
2721
2722DESCRIPTION:
2723    Size of the cache memory in bytes.
2724
2725NOTES:
2726    None.
2727
2728.. index:: CONFIGURE_BDBUF_BUFFER_MIN_SIZE
2729
2730.. _CONFIGURE_BDBUF_BUFFER_MIN_SIZE:
2731
2732CONFIGURE_BDBUF_BUFFER_MIN_SIZE
2733-------------------------------
2734
2735CONSTANT:
2736    ``CONFIGURE_BDBUF_BUFFER_MIN_SIZE``
2737
2738DATA TYPE:
2739    Unsigned integer (``uint32_t``).
2740
2741RANGE:
2742    Positive.
2743
2744DEFAULT VALUE:
2745    The default value is 512 bytes.
2746
2747DESCRIPTION:
2748    Defines the minimum size of a buffer in bytes.
2749
2750NOTES:
2751    None.
2752
2753.. index:: CONFIGURE_BDBUF_BUFFER_MAX_SIZE
2754
2755.. _CONFIGURE_BDBUF_BUFFER_MAX_SIZE:
2756
2757CONFIGURE_BDBUF_BUFFER_MAX_SIZE
2758-------------------------------
2759
2760CONSTANT:
2761    ``CONFIGURE_BDBUF_BUFFER_MAX_SIZE``
2762
2763DATA TYPE:
2764    Unsigned integer (``uint32_t``).
2765
2766RANGE:
2767    It must be positive and an integral multiple of the buffer minimum size.
2768
2769DEFAULT VALUE:
2770    The default value is 4096 bytes.
2771
2772DESCRIPTION:
2773    Defines the maximum size of a buffer in bytes.
2774
2775NOTES:
2776    None.
2777
2778.. index:: CONFIGURE_SWAPOUT_SWAP_PERIOD
2779
2780.. _CONFIGURE_SWAPOUT_SWAP_PERIOD:
2781
2782CONFIGURE_SWAPOUT_SWAP_PERIOD
2783-----------------------------
2784
2785CONSTANT:
2786    ``CONFIGURE_SWAPOUT_SWAP_PERIOD``
2787
2788DATA TYPE:
2789    Unsigned integer (``uint32_t``).
2790
2791RANGE:
2792    Positive.
2793
2794DEFAULT VALUE:
2795    The default value is 250 milliseconds.
2796
2797DESCRIPTION:
2798    Defines the swapout task swap period in milliseconds.
2799
2800NOTES:
2801    None.
2802
2803.. index:: CONFIGURE_SWAPOUT_BLOCK_HOLD
2804
2805.. _CONFIGURE_SWAPOUT_BLOCK_HOLD:
2806
2807CONFIGURE_SWAPOUT_BLOCK_HOLD
2808----------------------------
2809
2810CONSTANT:
2811    ``CONFIGURE_SWAPOUT_BLOCK_HOLD``
2812
2813DATA TYPE:
2814    Unsigned integer (``uint32_t``).
2815
2816RANGE:
2817    Positive.
2818
2819DEFAULT VALUE:
2820    The default value is 1000 milliseconds.
2821
2822DESCRIPTION:
2823    Defines the swapout task maximum block hold time in milliseconds.
2824
2825NOTES:
2826    None.
2827
2828.. index:: CONFIGURE_SWAPOUT_TASK_PRIORITY
2829
2830.. _CONFIGURE_SWAPOUT_TASK_PRIORITY:
2831
2832CONFIGURE_SWAPOUT_TASK_PRIORITY
2833-------------------------------
2834
2835CONSTANT:
2836    ``CONFIGURE_SWAPOUT_TASK_PRIORITY``
2837
2838DATA TYPE:
2839    Task priority (``rtems_task_priority``).
2840
2841RANGE:
2842    Valid task priority.
2843
2844DEFAULT VALUE:
2845    The default value is 15.
2846
2847DESCRIPTION:
2848    Defines the swapout task priority.
2849
2850NOTES:
2851    None.
2852
2853.. index:: CONFIGURE_BDBUF_MAX_READ_AHEAD_BLOCKS
2854
2855.. _CONFIGURE_BDBUF_MAX_READ_AHEAD_BLOCKS:
2856
2857CONFIGURE_BDBUF_MAX_READ_AHEAD_BLOCKS
2858-------------------------------------
2859
2860CONSTANT:
2861    ``CONFIGURE_BDBUF_MAX_READ_AHEAD_BLOCKS``
2862
2863DATA TYPE:
2864    Unsigned integer (``uint32_t``).
2865
2866RANGE:
2867    Positive.
2868
2869DEFAULT VALUE:
2870    The default value is 0.
2871
2872DESCRIPTION:
2873    Defines the maximum blocks per read-ahead request.
2874
2875NOTES:
2876    A value of 0 disables the read-ahead task (default).  The read-ahead task
2877    will issue speculative read transfers if a sequential access pattern is
2878    detected.  This can improve the performance on some systems.
2879
2880.. index:: CONFIGURE_BDBUF_MAX_WRITE_BLOCKS
2881
2882.. _CONFIGURE_BDBUF_MAX_WRITE_BLOCKS:
2883
2884CONFIGURE_BDBUF_MAX_WRITE_BLOCKS
2885--------------------------------
2886
2887CONSTANT:
2888    ``CONFIGURE_BDBUF_MAX_WRITE_BLOCKS``
2889
2890DATA TYPE:
2891    Unsigned integer (``uint32_t``).
2892
2893RANGE:
2894    Positive.
2895
2896DEFAULT VALUE:
2897    The default value is 16.
2898
2899DESCRIPTION:
2900    Defines the maximum blocks per write request.
2901
2902NOTES:
2903    None.
2904
2905.. index:: CONFIGURE_BDBUF_TASK_STACK_SIZE
2906
2907.. _CONFIGURE_BDBUF_TASK_STACK_SIZE:
2908
2909CONFIGURE_BDBUF_TASK_STACK_SIZE
2910-------------------------------
2911
2912CONSTANT:
2913    ``CONFIGURE_BDBUF_TASK_STACK_SIZE``
2914
2915DATA TYPE:
2916    Unsigned integer (``size_t``).
2917
2918RANGE:
2919    Zero or positive.
2920
2921DEFAULT VALUE:
2922    The default value is RTEMS_MINIMUM_STACK_SIZE.
2923
2924DESCRIPTION:
2925    Defines the task stack size of the Block Device Cache tasks in bytes.
2926
2927NOTES:
2928    None.
2929
2930.. index:: CONFIGURE_BDBUF_READ_AHEAD_TASK_PRIORITY
2931
2932.. _CONFIGURE_BDBUF_READ_AHEAD_TASK_PRIORITY:
2933
2934CONFIGURE_BDBUF_READ_AHEAD_TASK_PRIORITY
2935----------------------------------------
2936
2937CONSTANT:
2938    ``CONFIGURE_BDBUF_READ_AHEAD_TASK_PRIORITY``
2939
2940DATA TYPE:
2941    Task priority (``rtems_task_priority``).
2942
2943RANGE:
2944    Valid task priority.
2945
2946DEFAULT VALUE:
2947    The default value is 15.
2948
2949DESCRIPTION:
2950    Defines the read-ahead task priority.
2951
2952NOTES:
2953    None.
2954
2955.. index:: CONFIGURE_SWAPOUT_WORKER_TASKS
2956
2957.. _CONFIGURE_SWAPOUT_WORKER_TASKS:
2958
2959CONFIGURE_SWAPOUT_WORKER_TASKS
2960------------------------------
2961
2962CONSTANT:
2963    ``CONFIGURE_SWAPOUT_WORKER_TASKS``
2964
2965DATA TYPE:
2966    Unsigned integer (``size_t``).
2967
2968RANGE:
2969    Zero or positive.
2970
2971DEFAULT VALUE:
2972    The default value is 0.
2973
2974DESCRIPTION:
2975    Defines the swapout worker task count.
2976
2977NOTES:
2978    None.
2979
2980.. index:: CONFIGURE_SWAPOUT_WORKER_TASK_PRIORITY
2981
2982.. _CONFIGURE_SWAPOUT_WORKER_TASK_PRIORITY:
2983
2984CONFIGURE_SWAPOUT_WORKER_TASK_PRIORITY
2985--------------------------------------
2986
2987CONSTANT:
2988    ``CONFIGURE_SWAPOUT_WORKER_TASK_PRIORITY``
2989
2990DATA TYPE:
2991    Task priority (``rtems_task_priority``).
2992
2993RANGE:
2994    Valid task priority.
2995
2996DEFAULT VALUE:
2997    The default value is 15.
2998
2999DESCRIPTION:
3000    Defines the swapout worker task priority.
3001
3002NOTES:
3003    None.
3004
3005BSP Related Configuration Options
3006=================================
3007
3008This section describes configuration options related to the BSP.  Some
3009configuration options may have a BSP-specific setting which is defined by
3010``<bsp.h>``.  The BSP-specific settings can be disabled by the
3011:ref:`CONFIGURE_DISABLE_BSP_SETTINGS` configuration option.
3012
3013.. index:: BSP_IDLE_TASK_BODY
3014
3015.. _BSP_IDLE_TASK_BODY:
3016
3017BSP_IDLE_TASK_BODY
3018------------------
3019
3020CONSTANT:
3021    ``BSP_IDLE_TASK_BODY``
3022
3023DATA TYPE:
3024    Function pointer.
3025
3026RANGE:
3027    Undefined or valid function pointer.
3028
3029DEFAULT VALUE:
3030    This option is BSP specific.
3031
3032DESCRIPTION:
3033    If ``BSP_IDLE_TASK_BODY`` is defined by the BSP and
3034    ``CONFIGURE_IDLE_TASK_BODY`` is not defined by the application, then this
3035    BSP specific idle task body will be used.
3036
3037NOTES:
3038    As it has knowledge of the specific CPU model, system controller logic, and
3039    peripheral buses, a BSP specific IDLE task may be capable of turning
3040    components off to save power during extended periods of no task activity
3041
3042.. index:: BSP_IDLE_TASK_STACK_SIZE
3043
3044.. _BSP_IDLE_TASK_STACK_SIZE:
3045
3046BSP_IDLE_TASK_STACK_SIZE
3047------------------------
3048
3049CONSTANT:
3050    ``BSP_IDLE_TASK_STACK_SIZE``
3051
3052DATA TYPE:
3053    Unsigned integer (``size_t``).
3054
3055RANGE:
3056    Undefined or positive.
3057
3058DEFAULT VALUE:
3059    This option is BSP specific.
3060
3061DESCRIPTION:
3062    If ``BSP_IDLE_TASK_STACK_SIZE`` is defined by the BSP and
3063    ``CONFIGURE_IDLE_TASK_STACK_SIZE`` is not defined by the application, then
3064    this BSP suggested idle task stack size will be used.
3065
3066NOTES:
3067    The order of precedence for configuring the IDLE task stack size is:
3068
3069    - RTEMS default minimum stack size.
3070
3071    - If defined, then ``CONFIGURE_MINIMUM_TASK_STACK_SIZE``.
3072
3073    - If defined, then the BSP specific ``BSP_IDLE_TASK_SIZE``.
3074
3075    - If defined, then the application specified ``CONFIGURE_IDLE_TASK_SIZE``.
3076
3077.. index:: BSP_INITIAL_EXTENSION
3078
3079.. _BSP_INITIAL_EXTENSION:
3080
3081BSP_INITIAL_EXTENSION
3082---------------------
3083
3084CONSTANT:
3085    ``BSP_INITIAL_EXTENSION``
3086
3087DATA TYPE:
3088    List of user extension initializers (``rtems_extensions_table``).
3089
3090RANGE:
3091    Undefined or a list of user extension initializers.
3092
3093DEFAULT VALUE:
3094    This option is BSP specific.
3095
3096DESCRIPTION:
3097    If ``BSP_INITIAL_EXTENSION`` is defined by the BSP, then this BSP specific
3098    initial extension will be placed as the last entry in the initial extension
3099    table.
3100
3101NOTES:
3102    None.
3103
3104.. index:: BSP_INTERRUPT_STACK_SIZE
3105
3106.. _BSP_INTERRUPT_STACK_SIZE:
3107
3108BSP_INTERRUPT_STACK_SIZE
3109------------------------
3110
3111CONSTANT:
3112    ``BSP_INTERRUPT_STACK_SIZE``
3113
3114DATA TYPE:
3115    Unsigned integer (``size_t``).
3116
3117RANGE:
3118    Undefined or positive.
3119
3120DEFAULT VALUE:
3121    This option is BSP specific.
3122
3123DESCRIPTION:
3124    If ``BSP_INTERRUPT_STACK_SIZE`` is defined by the BSP and
3125    ``CONFIGURE_INTERRUPT_STACK_SIZE`` is not defined by the application, then
3126    this BSP specific interrupt stack size will be used.
3127
3128NOTES:
3129    None.
3130
3131.. index:: BSP_MAXIMUM_DEVICES
3132
3133.. _BSP_MAXIMUM_DEVICES:
3134
3135BSP_MAXIMUM_DEVICES
3136-------------------
3137
3138CONSTANT:
3139    ``BSP_MAXIMUM_DEVICES``
3140
3141DATA TYPE:
3142    Unsigned integer (``size_t``).
3143
3144RANGE:
3145    Undefined or positive.
3146
3147DEFAULT VALUE:
3148    This option is BSP specific.
3149
3150DESCRIPTION:
3151    If ``BSP_MAXIMUM_DEVICES`` is defined by the BSP and
3152    ``CONFIGURE_MAXIMUM_DEVICES`` is not defined by the application, then this
3153    BSP specific maximum device count will be used.
3154
3155NOTES:
3156    This option is specific to the device file system (devFS) and should not be
3157    confused with the ``CONFIGURE_MAXIMUM_DRIVERS`` option.  This parameter
3158    only impacts the devFS and thus is only used by ``<rtems/confdefs.h>`` when
3159    ``CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM`` is specified.
3160
3161.. index:: CONFIGURE_BSP_PREREQUISITE_DRIVERS
3162
3163.. _CONFIGURE_BSP_PREREQUISITE_DRIVERS:
3164
3165CONFIGURE_BSP_PREREQUISITE_DRIVERS
3166----------------------------------
3167
3168CONSTANT:
3169    ``CONFIGURE_BSP_PREREQUISITE_DRIVERS``
3170
3171DATA TYPE:
3172    List of device driver initializers (``rtems_driver_address_table``).
3173
3174RANGE:
3175    Undefined or array of device drivers.
3176
3177DEFAULT VALUE:
3178    This option is BSP specific.
3179
3180DESCRIPTION:
3181    ``CONFIGURE_BSP_PREREQUISITE_DRIVERS`` is defined if the BSP has device
3182    drivers it needs to include in the Device Driver Table.  This should be
3183    defined to the set of device driver entries that will be placed in the
3184    table at the *FRONT* of the Device Driver Table and initialized before any
3185    other drivers *INCLUDING* any application prerequisite drivers.
3186
3187NOTES:
3188    ``CONFIGURE_BSP_PREREQUISITE_DRIVERS`` is typically used by BSPs to
3189    configure common infrastructure such as bus controllers or probe for
3190    devices.
3191
3192.. index:: CONFIGURE_DISABLE_BSP_SETTINGS
3193
3194.. _CONFIGURE_DISABLE_BSP_SETTINGS:
3195
3196CONFIGURE_DISABLE_BSP_SETTINGS
3197------------------------------
3198
3199CONSTANT:
3200    ``CONFIGURE_DISABLE_BSP_SETTINGS``
3201
3202DATA TYPE:
3203    Boolean feature macro.
3204
3205RANGE:
3206    Defined or undefined.
3207
3208DEFAULT VALUE:
3209    This is not defined by default.
3210
3211DESCRIPTION:
3212    All BSP specific configuration settings can be disabled by the application
3213    with the ``CONFIGURE_DISABLE_BSP_SETTINGS`` option.
3214
3215NOTES:
3216    None.
3217
3218.. index:: CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK
3219
3220.. _CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK:
3221
3222CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK
3223----------------------------------
3224
3225CONSTANT:
3226    ``CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK``
3227
3228DATA TYPE:
3229    Boolean feature macro.
3230
3231RANGE:
3232    Defined or undefined.
3233
3234DEFAULT VALUE:
3235    This option is BSP specific.
3236
3237DESCRIPTION:
3238    This configuration parameter is defined by a BSP to indicate that it does
3239    not allocate all available memory to the C Program Heap used by the Malloc
3240    Family of routines.
3241
3242    If defined, when ``malloc()`` is unable to allocate memory, it will call
3243    the BSP supplied ``sbrk()`` to obtain more memory.
3244
3245NOTES:
3246    This parameter should not be defined by the application. Only the BSP knows
3247    how it allocates memory to the C Program Heap.
3248
3249Idle Task Configuration
3250=======================
3251
3252This section defines the IDLE task related configuration parameters supported
3253by ``<rtems/confdefs.h>``.
3254
3255.. index:: CONFIGURE_IDLE_TASK_BODY
3256
3257.. _CONFIGURE_IDLE_TASK_BODY:
3258
3259CONFIGURE_IDLE_TASK_BODY
3260------------------------
3261
3262CONSTANT:
3263    ``CONFIGURE_IDLE_TASK_BODY``
3264
3265DATA TYPE:
3266    Function pointer.
3267
3268RANGE:
3269    Undefined or valid function pointer.
3270
3271DEFAULT VALUE:
3272    This is not defined by default.
3273
3274DESCRIPTION:
3275    ``CONFIGURE_IDLE_TASK_BODY`` is set to the function name corresponding to
3276    the application specific IDLE thread body.  If not specified, the BSP or
3277    RTEMS default IDLE thread body will be used.
3278
3279NOTES:
3280    None.
3281
3282.. index:: CONFIGURE_IDLE_TASK_STACK_SIZE
3283
3284.. _CONFIGURE_IDLE_TASK_STACK_SIZE:
3285
3286CONFIGURE_IDLE_TASK_STACK_SIZE
3287------------------------------
3288
3289CONSTANT:
3290    ``CONFIGURE_IDLE_TASK_STACK_SIZE``
3291
3292DATA TYPE:
3293    Unsigned integer (``size_t``).
3294
3295RANGE:
3296    Undefined or positive.
3297
3298DEFAULT VALUE:
3299    The default value is RTEMS_MINIMUM_STACK_SIZE.
3300
3301DESCRIPTION:
3302    ``CONFIGURE_IDLE_TASK_STACK_SIZE`` is set to the desired stack size for the
3303    IDLE task.
3304
3305NOTES:
3306    None.
3307
3308.. index:: CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION
3309
3310.. _CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION:
3311
3312CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION
3313-------------------------------------------
3314
3315CONSTANT:
3316    ``CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION``
3317
3318DATA TYPE:
3319    Boolean feature macro.
3320
3321RANGE:
3322    Defined or undefined.
3323
3324DEFAULT VALUE:
3325    This is not defined by default, the user is assumed to provide one or more
3326    initialization tasks.
3327
3328DESCRIPTION:
3329    ``CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION`` is set to indicate that the
3330    user has configured *NO* user initialization tasks or threads and that the
3331    user provided IDLE task will perform application initialization and then
3332    transform itself into an IDLE task.
3333
3334NOTES:
3335    If you use this option be careful, the user IDLE task *CANNOT* block at all
3336    during the initialization sequence.  Further, once application
3337    initialization is complete, it must make itself preemptible and enter an
3338    IDLE body loop.
3339
3340    The IDLE task must run at the lowest priority of all tasks in the system.
3341
3342General Scheduler Configuration
3343===============================
3344
3345This section defines the configuration parameters related to selecting a
3346scheduling algorithm for an application.  A scheduler configuration is optional
3347and only necessary in very specific circumstances.  A normal application
3348configuration does not need any of the configuration options described in this
3349section.  By default, the :ref:`Deterministic Priority Scheduler
3350<SchedulerPriority>` algorithm is used in uniprocessor configurations.  In case
3351SMP is enabled and the configured maximum processors
3352(:ref:`CONFIGURE_MAXIMUM_PROCESSORS <CONFIGURE_MAXIMUM_PROCESSORS>`) is greater
3353than one, then the :ref:`Earliest Deadline First (EDF) SMP Scheduler
3354<SchedulerSMPEDF>` is selected as the default scheduler algorithm.
3355
3356For the :ref:`schedulers built into
3357RTEMS <SchedulingConcepts>`, the configuration is straightforward.  All that is
3358required is to define the configuration macro which specifies which scheduler
3359you want for in your application.
3360
3361The pluggable scheduler interface also enables the user to provide their own
3362scheduling algorithm.  If you choose to do this, you must define multiple
3363configuration macros.
3364
3365.. index:: CONFIGURE_SCHEDULER_CBS
3366
3367.. _CONFIGURE_SCHEDULER_CBS:
3368
3369CONFIGURE_SCHEDULER_CBS
3370-----------------------
3371
3372CONSTANT:
3373    ``CONFIGURE_SCHEDULER_CBS``
3374
3375DATA TYPE:
3376    Boolean feature macro.
3377
3378RANGE:
3379    Defined or undefined.
3380
3381DEFAULT VALUE:
3382    This is not defined by default.
3383
3384DESCRIPTION:
3385    If defined, then the :ref:`Constant Bandwidth Server (CBS) Scheduler
3386    <SchedulerCBS>` algorithm is made available to the application.
3387
3388NOTES:
3389    This scheduler configuration option is an advanced configuration option.
3390    Think twice before you use it.
3391
3392    In case no explicit :ref:`clustered scheduler configuration
3393    <ConfigurationSchedulersClustered>` is present, then it is used as the
3394    scheduler for exactly one processor.
3395
3396.. index:: CONFIGURE_SCHEDULER_EDF
3397
3398.. _CONFIGURE_SCHEDULER_EDF:
3399
3400CONFIGURE_SCHEDULER_EDF
3401-----------------------
3402
3403CONSTANT:
3404    ``CONFIGURE_SCHEDULER_EDF``
3405
3406DATA TYPE:
3407    Boolean feature macro.
3408
3409RANGE:
3410    Defined or undefined.
3411
3412DEFAULT VALUE:
3413    This is not defined by default.
3414
3415DESCRIPTION:
3416    If defined, then the :ref:`Earliest Deadline First (EDF) Scheduler
3417    <SchedulerEDF>` algorithm is made available to the application.
3418
3419NOTES:
3420    This scheduler configuration option is an advanced configuration option.
3421    Think twice before you use it.
3422
3423    In case no explicit :ref:`clustered scheduler configuration
3424    <ConfigurationSchedulersClustered>` is present, then it is used as the
3425    scheduler for exactly one processor.
3426
3427.. index:: CONFIGURE_SCHEDULER_EDF_SMP
3428
3429.. _CONFIGURE_SCHEDULER_EDF_SMP:
3430
3431CONFIGURE_SCHEDULER_EDF_SMP
3432---------------------------
3433
3434CONSTANT:
3435    ``CONFIGURE_SCHEDULER_EDF_SMP``
3436
3437DATA TYPE:
3438    Boolean feature macro.
3439
3440RANGE:
3441    Defined or undefined.
3442
3443DEFAULT VALUE:
3444    This is not defined by default.
3445
3446DESCRIPTION:
3447    If defined, then the :ref:`Earliest Deadline First (EDF) SMP Scheduler
3448    <SchedulerSMPEDF>` algorithm is made available to the application.
3449
3450NOTES:
3451    This scheduler configuration option is an advanced configuration option.
3452    Think twice before you use it.
3453
3454    This scheduler algorithm is only available when RTEMS is built with SMP
3455    support enabled.
3456
3457    In case no explicit :ref:`clustered scheduler configuration
3458    <ConfigurationSchedulersClustered>` is present, then it is used as the
3459    scheduler for up to 32 processors.
3460
3461    This scheduler algorithm is the default in SMP configurations if
3462    :ref:`CONFIGURE_MAXIMUM_PROCESSORS <CONFIGURE_MAXIMUM_PROCESSORS>` is
3463    greater than one.
3464
3465.. index:: CONFIGURE_SCHEDULER_NAME
3466
3467.. _CONFIGURE_SCHEDULER_NAME:
3468
3469CONFIGURE_SCHEDULER_NAME
3470------------------------
3471
3472CONSTANT:
3473    ``CONFIGURE_SCHEDULER_NAME``
3474
3475DATA TYPE:
3476    RTEMS Name (``rtems_name``).
3477
3478RANGE:
3479    Any value.
3480
3481DEFAULT VALUE:
3482    The default name is
3483
3484      - ``"MEDF"`` for the :ref:`EDF SMP Scheduler <SchedulerSMPEDF>`,
3485      - ``"MPA "`` for the :ref:`Arbitrary Processor Affinity Priority SMP Scheduler <SchedulerSMPPriorityAffinity>`,
3486      - ``"MPD "`` for the :ref:`Deterministic Priority SMP Scheduler <SchedulerSMPPriority>`,
3487      - ``"MPS "`` for the :ref:`Simple Priority SMP Scheduler <SchedulerSMPPrioritySimple>`,
3488      - ``"UCBS"`` for the :ref:`Uniprocessor CBS Scheduler <SchedulerCBS>`,
3489      - ``"UEDF"`` for the :ref:`Uniprocessor EDF Scheduler <SchedulerEDF>`,
3490      - ``"UPD "`` for the :ref:`Uniprocessor Deterministic Priority Scheduler <SchedulerPriority>`, and
3491      - ``"UPS "`` for the :ref:`Uniprocessor Simple Priority Scheduler <SchedulerPrioritySimple>`.
3492
3493DESCRIPTION:
3494    Schedulers can be identified via ``rtems_scheduler_ident``.  The name of
3495    the scheduler is determined by the configuration.
3496
3497NOTES:
3498    This scheduler configuration option is an advanced configuration option.
3499    Think twice before you use it.
3500
3501.. index:: CONFIGURE_SCHEDULER_PRIORITY
3502
3503.. _CONFIGURE_SCHEDULER_PRIORITY:
3504
3505CONFIGURE_SCHEDULER_PRIORITY
3506----------------------------
3507
3508CONSTANT:
3509    ``CONFIGURE_SCHEDULER_PRIORITY``
3510
3511DATA TYPE:
3512    Boolean feature macro.
3513
3514RANGE:
3515    Defined or undefined.
3516
3517DEFAULT VALUE:
3518    This is defined by default.  This is the default scheduler and specifying
3519    this configuration parameter is redundant.
3520
3521DESCRIPTION:
3522    If defined, then the :ref:`Deterministic Priority Scheduler
3523    <SchedulerPriority>` algorithm is made available to the application.
3524
3525NOTES:
3526    This scheduler configuration option is an advanced configuration option.
3527    Think twice before you use it.
3528
3529    In case no explicit :ref:`clustered scheduler configuration
3530    <ConfigurationSchedulersClustered>` is present, then it is used as the
3531    scheduler for exactly one processor.
3532
3533    This scheduler algorithm is the default when
3534    :ref:`CONFIGURE_MAXIMUM_PROCESSORS <CONFIGURE_MAXIMUM_PROCESSORS>` is
3535    exactly one.
3536
3537    The memory allocated for this scheduler depends on the
3538    :ref:`CONFIGURE_MAXIMUM_PRIORITY` configuration option.
3539
3540.. index:: CONFIGURE_SCHEDULER_PRIORITY_AFFINITY_SMP
3541
3542.. _CONFIGURE_SCHEDULER_PRIORITY_AFFINITY_SMP:
3543
3544CONFIGURE_SCHEDULER_PRIORITY_AFFINITY_SMP
3545-----------------------------------------
3546
3547CONSTANT:
3548    ``CONFIGURE_SCHEDULER_PRIORITY_AFFINITY_SMP``
3549
3550DATA TYPE:
3551    Boolean feature macro.
3552
3553RANGE:
3554    Defined or undefined.
3555
3556DEFAULT VALUE:
3557    This is not defined by default.
3558
3559DESCRIPTION:
3560    If defined, then the :ref:`Arbitrary Processor Affinity SMP Scheduler
3561    <SchedulerSMPPriorityAffinity>` algorithm is made available to the
3562    application.
3563
3564NOTES:
3565    This scheduler configuration option is an advanced configuration option.
3566    Think twice before you use it.
3567
3568    This scheduler algorithm is only available when RTEMS is built with SMP
3569    support enabled.
3570
3571    In case no explicit :ref:`clustered scheduler configuration
3572    <ConfigurationSchedulersClustered>` is present, then it is used as the
3573    scheduler for up to 32 processors.
3574
3575    The memory allocated for this scheduler depends on the
3576    :ref:`CONFIGURE_MAXIMUM_PRIORITY` configuration option.
3577
3578.. index:: CONFIGURE_SCHEDULER_PRIORITY_SMP
3579
3580.. _CONFIGURE_SCHEDULER_PRIORITY_SMP:
3581
3582CONFIGURE_SCHEDULER_PRIORITY_SMP
3583--------------------------------
3584
3585CONSTANT:
3586    ``CONFIGURE_SCHEDULER_PRIORITY_SMP``
3587
3588DATA TYPE:
3589    Boolean feature macro.
3590
3591RANGE:
3592    Defined or undefined.
3593
3594DEFAULT VALUE:
3595    This is not defined by default.
3596
3597DESCRIPTION:
3598    If defined, then the :ref:`Deterministic Priority SMP Scheduler
3599    <SchedulerSMPPriority>` algorithm is made available to the application.
3600
3601NOTES:
3602    This scheduler configuration option is an advanced configuration option.
3603    Think twice before you use it.
3604
3605    This scheduler algorithm is only available when RTEMS is built with SMP
3606    support enabled.
3607
3608    In case no explicit :ref:`clustered scheduler configuration
3609    <ConfigurationSchedulersClustered>` is present, then it is used as the
3610    scheduler for up to 32 processors.
3611
3612    The memory allocated for this scheduler depends on the
3613    :ref:`CONFIGURE_MAXIMUM_PRIORITY` configuration option.
3614
3615.. index:: CONFIGURE_SCHEDULER_SIMPLE
3616
3617.. _CONFIGURE_SCHEDULER_SIMPLE:
3618
3619CONFIGURE_SCHEDULER_SIMPLE
3620--------------------------
3621
3622CONSTANT:
3623    ``CONFIGURE_SCHEDULER_SIMPLE``
3624
3625DATA TYPE:
3626    Boolean feature macro.
3627
3628RANGE:
3629    Defined or undefined.
3630
3631DEFAULT VALUE:
3632    This is not defined by default.
3633
3634DESCRIPTION:
3635    If defined, then the :ref:`Simple Priority Scheduler
3636    <SchedulerPrioritySimple>` algorithm is made available to the application.
3637
3638NOTES:
3639    This scheduler configuration option is an advanced configuration option.
3640    Think twice before you use it.
3641
3642    In case no explicit :ref:`clustered scheduler configuration
3643    <ConfigurationSchedulersClustered>` is present, then it is used as the
3644    scheduler for exactly one processor.
3645
3646.. index:: CONFIGURE_SCHEDULER_SIMPLE_SMP
3647
3648.. _CONFIGURE_SCHEDULER_SIMPLE_SMP:
3649
3650CONFIGURE_SCHEDULER_SIMPLE_SMP
3651------------------------------
3652
3653CONSTANT:
3654    ``CONFIGURE_SCHEDULER_SIMPLE_SMP``
3655
3656DATA TYPE:
3657    Boolean feature macro.
3658
3659RANGE:
3660    Defined or undefined.
3661
3662DEFAULT VALUE:
3663    This is not defined by default.
3664
3665DESCRIPTION:
3666    If defined, then the :ref:`Simple Priority SMP Scheduler
3667    <SchedulerSMPPrioritySimple>` algorithm is made available to the
3668    application.
3669
3670NOTES:
3671    This scheduler configuration option is an advanced configuration option.
3672    Think twice before you use it.
3673
3674    This scheduler algorithm is only available when RTEMS is built with SMP
3675    support enabled.
3676
3677    In case no explicit :ref:`clustered scheduler configuration
3678    <ConfigurationSchedulersClustered>` is present, then it is used as the
3679    scheduler for up to 32 processors.
3680
3681.. index:: CONFIGURE_SCHEDULER_USER
3682
3683.. _CONFIGURE_SCHEDULER_USER:
3684
3685CONFIGURE_SCHEDULER_USER
3686------------------------
3687
3688CONSTANT:
3689    ``CONFIGURE_SCHEDULER_USER``
3690
3691DATA TYPE:
3692    Boolean feature macro.
3693
3694RANGE:
3695    Defined or undefined.
3696
3697DEFAULT VALUE:
3698    This is not defined by default.
3699
3700DESCRIPTION:
3701    RTEMS allows the application to provide its own task/thread scheduling
3702    algorithm. In order to do this, one must define
3703    ``CONFIGURE_SCHEDULER_USER`` to indicate the application provides its own
3704    scheduling algorithm. If ``CONFIGURE_SCHEDULER_USER`` is defined then the
3705    following additional macros must be defined:
3706
3707    - ``CONFIGURE_SCHEDULER`` must be defined to a static definition of
3708      the scheduler data structures of the user scheduler.
3709
3710    - ``CONFIGURE_SCHEDULER_TABLE_ENTRIES`` must be defined to a scheduler
3711      table entry initializer for the user scheduler.
3712
3713    - ``CONFIGURE_SCHEDULER_USER_PER_THREAD`` must be defined to the type of
3714      the per-thread information of the user scheduler.
3715
3716NOTES:
3717    This scheduler configuration option is an advanced configuration option.
3718    Think twice before you use it.
3719
3720    At this time, the mechanics and requirements for writing a new scheduler
3721    are evolving and not fully documented.  It is recommended that you look at
3722    the existing Deterministic Priority Scheduler in
3723    ``cpukit/score/src/schedulerpriority*.c`` for guidance.  For guidance on
3724    the configuration macros, please examine ``cpukit/sapi/include/confdefs.h``
3725    for how these are defined for the Deterministic Priority Scheduler.
3726
3727.. _ConfigurationSchedulersClustered:
3728
3729Clustered Scheduler Configuration
3730=================================
3731
3732A clustered scheduler configuration is optional.  It is an advanced
3733configuration area and only necessary in specific circumstances.
3734
3735Clustered scheduling helps to control the worst-case latencies in a
3736multiprocessor system (SMP).  The goal is to reduce the amount of shared state
3737in the system and thus prevention of lock contention.  Modern multiprocessor
3738systems tend to have several layers of data and instruction caches.  With
3739clustered scheduling it is possible to honour the cache topology of a system
3740and thus avoid expensive cache synchronization traffic.
3741
3742We have clustered scheduling in case the set of processors of a system is
3743partitioned into non-empty pairwise-disjoint subsets.  These subsets are called
3744clusters.  Clusters with a cardinality of one are partitions.  Each cluster is
3745owned by exactly one scheduler.
3746
3747In order to use clustered scheduling the application designer has to answer two
3748questions.
3749
3750#. How is the set of processors partitioned into clusters?
3751
3752#. Which scheduler algorithm is used for which cluster?
3753
3754The schedulers are statically configured.
3755
3756Configuration Step 1 - Scheduler Algorithms
3757-------------------------------------------
3758
3759Firstly, the application must select which scheduling algorithms are available
3760with the following defines
3761
3762- :ref:`CONFIGURE_SCHEDULER_EDF_SMP <CONFIGURE_SCHEDULER_EDF_SMP>`,
3763
3764- :ref:`CONFIGURE_SCHEDULER_PRIORITY_AFFINITY_SMP <CONFIGURE_SCHEDULER_PRIORITY_AFFINITY_SMP>`,
3765
3766- :ref:`CONFIGURE_SCHEDULER_PRIORITY_SMP <CONFIGURE_SCHEDULER_PRIORITY_SMP>`, and
3767
3768- :ref:`CONFIGURE_SCHEDULER_SIMPLE_SMP <CONFIGURE_SCHEDULER_SIMPLE_SMP>`.
3769
3770This is necessary to calculate the per-thread overhead introduced by the
3771scheduler algorithms.  After these definitions the configuration file must
3772``#include <rtems/scheduler.h>`` to have access to scheduler-specific
3773configuration macros.
3774
3775It is possible to make more than one scheduler algorithm available to the
3776application.  For example a :ref:`Simple Priority SMP Scheduler
3777<SchedulerSMPPrioritySimple>` could be used in a partition for low latency
3778tasks in addition to an :ref:`EDF SMP Scheduler <SchedulerSMPEDF>` for a
3779general-purpose cluster.  Since the per-thread overhead depends on the
3780scheduler algorithm only the scheduler algorithms used by the application
3781should be configured.
3782
3783Configuration Step 2 - Schedulers
3784---------------------------------
3785
3786Each scheduler needs some data structures.  Use the following macros to create
3787the scheduler data structures for a particular scheduler identified in the
3788configuration by ``name``.
3789
3790- ``RTEMS_SCHEDULER_EDF_SMP(name, max_cpu_count)``,
3791
3792- ``RTEMS_SCHEDULER_PRIORITY_AFFINITY_SMP(name, prio_count)``,
3793
3794- ``RTEMS_SCHEDULER_PRIORITY_SMP(name, prio_count)``, and
3795
3796- ``RTEMS_SCHEDULER_SIMPLE_SMP(name)``.
3797
3798The ``name`` parameter is used as part of a designator for scheduler-specific
3799data structures, so the usual C/C++ designator rules apply.  This ``name`` is
3800not the scheduler object name.  Additional parameters are scheduler-specific.
3801
3802.. _ConfigurationSchedulerTable:
3803
3804Configuration Step 3 - Scheduler Table
3805--------------------------------------
3806
3807The schedulers are registered in the system via the scheduler table.  To
3808populate the scheduler table define ``CONFIGURE_SCHEDULER_TABLE_ENTRIES`` to a
3809list of the following scheduler table entry initializers
3810
3811- ``RTEMS_SCHEDULER_TABLE_EDF_SMP(name, obj_name)``,
3812
3813- ``RTEMS_SCHEDULER_TABLE_PRIORITY_AFFINITY_SMP(name, obj_name)``,
3814
3815- ``RTEMS_SCHEDULER_TABLE_PRIORITY_SMP(name, obj_name)``, and
3816
3817- ``RTEMS_SCHEDULER_TABLE_SIMPLE_SMP(name, obj_name)``.
3818
3819The ``name`` parameter must correspond to the parameter defining the scheduler
3820data structures of configuration step 2.  The ``obj_name`` determines the
3821scheduler object name and can be used in :ref:`rtems_scheduler_ident()
3822<rtems_scheduler_ident>` to get the scheduler object identifier.  The scheduler
3823index is defined by the index of the scheduler table.  It is a configuration
3824error to add a scheduler multiple times to the scheduler table.
3825
3826Configuration Step 4 - Processor to Scheduler Assignment
3827--------------------------------------------------------
3828
3829The last step is to define which processor uses which scheduler.  For this
3830purpose a scheduler assignment table must be defined.  The entry count of this
3831table must be equal to the configured maximum processors
3832(:ref:`CONFIGURE_MAXIMUM_PROCESSORS <CONFIGURE_MAXIMUM_PROCESSORS>`).  A
3833processor assignment to a scheduler can be optional or mandatory.  The boot
3834processor must have a scheduler assigned.  In case the system needs more
3835mandatory processors than available then a fatal run-time error will occur.  To
3836specify the scheduler assignments define
3837``CONFIGURE_SCHEDULER_ASSIGNMENTS`` to a list of
3838
3839- ``RTEMS_SCHEDULER_ASSIGN(scheduler_index, attr)`` and
3840
3841- ``RTEMS_SCHEDULER_ASSIGN_NO_SCHEDULER``
3842
3843macros.  The ``scheduler_index`` parameter must be a valid index into the
3844scheduler table defined by configuration step 3.  The ``attr`` parameter
3845defines the scheduler assignment attributes.  By default, a scheduler
3846assignment to a processor is optional.  For the scheduler assignment attribute
3847use one of the mutually exclusive variants
3848
3849- ``RTEMS_SCHEDULER_ASSIGN_DEFAULT``,
3850
3851- ``RTEMS_SCHEDULER_ASSIGN_PROCESSOR_MANDATORY``, and
3852
3853- ``RTEMS_SCHEDULER_ASSIGN_PROCESSOR_OPTIONAL``.
3854
3855It is possible to add/remove processors to/from schedulers at run-time, see
3856:ref:`rtems_scheduler_add_processor() <rtems_scheduler_add_processor>` and
3857:ref:`rtems_scheduler_remove_processor() <rtems_scheduler_remove_processor>`.
3858
3859Configuration Example
3860---------------------
3861
3862The following example shows a scheduler configuration for a hypothetical
3863product using two chip variants.  One variant has four processors which is used
3864for the normal product line and another provides eight processors for the
3865high-performance product line.  The first processor performs hard-real time
3866control of actuators and sensors.  The second processor is not used by RTEMS at
3867all and runs a Linux instance to provide a graphical user interface.  The
3868additional processors are used for a worker thread pool to perform data
3869processing operations.
3870
3871The processors managed by RTEMS use two Deterministic Priority SMP schedulers
3872capable of dealing with 256 priority levels.  The scheduler with index zero has
3873the name ``"IO "``.  The scheduler with index one has the name ``"WORK"``.  The
3874scheduler assignments of the first, third and fourth processor are mandatory,
3875so the system must have at least four processors, otherwise a fatal run-time
3876error will occur during system startup.  The processor assignments for the
3877fifth up to the eighth processor are optional so that the same application can
3878be used for the normal and high-performance product lines.  The second
3879processor has no scheduler assigned and runs Linux.  A hypervisor will ensure
3880that the two systems cannot interfere in an undesirable way.
3881
3882.. code-block:: c
3883
3884    #define CONFIGURE_MAXIMUM_PROCESSORS 8
3885    #define CONFIGURE_MAXIMUM_PRIORITY 255
3886
3887    /* Configuration Step 1 - Scheduler Algorithms */
3888    #define CONFIGURE_SCHEDULER_PRIORITY_SMP
3889    #include <rtems/scheduler.h>
3890
3891    /* Configuration Step 2 - Schedulers */
3892    RTEMS_SCHEDULER_PRIORITY_SMP(io, CONFIGURE_MAXIMUM_PRIORITY + 1);
3893    RTEMS_SCHEDULER_PRIORITY_SMP(work, CONFIGURE_MAXIMUM_PRIORITY + 1);
3894
3895    /* Configuration Step 3 - Scheduler Table */
3896    #define CONFIGURE_SCHEDULER_TABLE_ENTRIES \
3897      RTEMS_SCHEDULER_TABLE_PRIORITY_SMP( \
3898        io, \
3899         rtems_build_name('I', 'O', ' ', ' ') \
3900      ), \
3901      RTEMS_SCHEDULER_TABLE_PRIORITY_SMP( \
3902        work, \
3903        rtems_build_name('W', 'O', 'R', 'K') \
3904      )
3905
3906    /* Configuration Step 4 - Processor to Scheduler Assignment */
3907    #define CONFIGURE_SCHEDULER_ASSIGNMENTS \
3908      RTEMS_SCHEDULER_ASSIGN(0, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_MANDATORY), \
3909      RTEMS_SCHEDULER_ASSIGN_NO_SCHEDULER, \
3910      RTEMS_SCHEDULER_ASSIGN(1, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_MANDATORY), \
3911      RTEMS_SCHEDULER_ASSIGN(1, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_MANDATORY), \
3912      RTEMS_SCHEDULER_ASSIGN(1, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_OPTIONAL), \
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
3917Configuration Errors
3918--------------------
3919
3920In case one of the scheduler indices in ``CONFIGURE_SCHEDULER_ASSIGNMENTS``
3921is invalid a link-time error will occur with an undefined reference to
3922``RTEMS_SCHEDULER_INVALID_INDEX``.
3923
3924Some fatal errors may occur in case of scheduler configuration inconsistencies
3925or a lack of processors on the system.  The fatal source is
3926``RTEMS_FATAL_SOURCE_SMP``.
3927
3928- ``SMP_FATAL_BOOT_PROCESSOR_NOT_ASSIGNED_TO_SCHEDULER`` - the boot processor
3929  must have a scheduler assigned.
3930
3931- ``SMP_FATAL_MANDATORY_PROCESSOR_NOT_PRESENT`` - there exists a mandatory
3932  processor beyond the range of physically or virtually available processors.
3933  The processor demand must be reduced for this system.
3934
3935- ``SMP_FATAL_START_OF_MANDATORY_PROCESSOR_FAILED`` - the start of a mandatory
3936  processor failed during system initialization.  The system may not have this
3937  processor at all or it could be a problem with a boot loader for example.
3938  Check the ``CONFIGURE_SCHEDULER_ASSIGNMENTS`` definition.
3939
3940- ``SMP_FATAL_MULTITASKING_START_ON_UNASSIGNED_PROCESSOR`` - it is not allowed
3941  to start multitasking on a processor with no scheduler assigned.
3942
3943Device Driver Table
3944===================
3945
3946This section defines the configuration parameters related to the automatic
3947generation of a Device Driver Table.  As ``<rtems/confdefs.h>`` only is aware
3948of a small set of standard device drivers, the generated Device Driver Table is
3949suitable for simple applications with no custom device drivers.
3950
3951Note that network device drivers are not configured in the Device Driver Table.
3952
3953.. index:: CONFIGURE_MAXIMUM_DRIVERS
3954
3955.. _CONFIGURE_MAXIMUM_DRIVERS:
3956
3957CONFIGURE_MAXIMUM_DRIVERS
3958-------------------------
3959
3960CONSTANT:
3961
3962    ``CONFIGURE_MAXIMUM_DRIVERS``
3963
3964DATA TYPE:
3965    Unsigned integer (``uint32_t``).
3966
3967RANGE:
3968    Zero or positive.
3969
3970DEFAULT VALUE:
3971    This is computed by default, and is set to the number of device drivers
3972    configured using the ``CONFIGURE_APPLICATIONS_NEEDS_XXX_DRIVER``
3973    configuration parameters.
3974
3975DESCRIPTION:
3976    ``CONFIGURE_MAXIMUM_DRIVERS`` is defined as the number of device drivers
3977    per node.
3978
3979NOTES:
3980    If the application will dynamically install device drivers, then this
3981    configuration parameter must be larger than the number of statically
3982    configured device drivers. Drivers configured using the
3983    ``CONFIGURE_APPLICATIONS_NEEDS_XXX_DRIVER`` configuration parameters are
3984    statically installed.
3985
3986.. index:: CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
3987
3988.. _CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER:
3989
3990CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
3991------------------------------------------
3992
3993CONSTANT:
3994    ``CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER``
3995
3996DATA TYPE:
3997    Boolean feature macro.
3998
3999RANGE:
4000    Defined or undefined.
4001
4002DEFAULT VALUE:
4003    This is not defined by default.
4004
4005DESCRIPTION:
4006    ``CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER`` is defined if the
4007    application wishes to include the Console Device Driver.
4008
4009NOTES:
4010    This device driver is responsible for providing the :file:`/dev/console`
4011    device file.  This device is used to initialize the standard input, output,
4012    and error file descriptors.
4013
4014    BSPs should be constructed in a manner that allows ``printk()`` to work
4015    properly without the need for the console driver to be configured.
4016
4017    The
4018
4019    * ``CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER``,
4020
4021    * ``CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER``, and
4022
4023    * ``CONFIGURE_APPLICATION_NEEDS_SIMPLE_TASK_CONSOLE_DRIVER``
4024
4025    configuration options are mutually exclusive.
4026
4027.. index:: CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
4028
4029.. _CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER:
4030
4031CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
4032-------------------------------------------------
4033
4034CONSTANT:
4035    ``CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER``
4036
4037DATA TYPE:
4038    Boolean feature macro.
4039
4040RANGE:
4041    Defined or undefined.
4042
4043DEFAULT VALUE:
4044    This is not defined by default.
4045
4046DESCRIPTION:
4047    ``CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER`` is defined if the
4048    application wishes to include the Simple Console Device Driver.
4049
4050NOTES:
4051    This device driver is responsible for providing the :file:`/dev/console`
4052    device file.  This device is used to initialize the standard input, output,
4053    and error file descriptors.
4054
4055    This device driver reads via ``getchark()``.
4056
4057    This device driver writes via ``rtems_putc()``.
4058
4059    The Termios framework is not used.  There is no support to change device
4060    settings, e.g. baud, stop bits, parity, etc.
4061
4062    The
4063
4064    * ``CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER``,
4065
4066    * ``CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER``, and
4067
4068    * ``CONFIGURE_APPLICATION_NEEDS_SIMPLE_TASK_CONSOLE_DRIVER``
4069
4070    configuration options are mutually exclusive.
4071
4072.. index:: CONFIGURE_APPLICATION_NEEDS_SIMPLE_TASK_CONSOLE_DRIVER
4073
4074.. _CONFIGURE_APPLICATION_NEEDS_SIMPLE_TASK_CONSOLE_DRIVER:
4075
4076CONFIGURE_APPLICATION_NEEDS_SIMPLE_TASK_CONSOLE_DRIVER
4077------------------------------------------------------
4078
4079CONSTANT:
4080    ``CONFIGURE_APPLICATION_NEEDS_SIMPLE_TASK_CONSOLE_DRIVER``
4081
4082DATA TYPE:
4083    Boolean feature macro.
4084
4085RANGE:
4086    Defined or undefined.
4087
4088DEFAULT VALUE:
4089    This is not defined by default.
4090
4091DESCRIPTION:
4092    ``CONFIGURE_APPLICATION_NEEDS_SIMPLE_TASK_CONSOLE_DRIVER`` is defined if
4093    the application wishes to include the Simple Task Console Device Driver.
4094
4095NOTES:
4096    This device driver is responsible for providing the :file:`/dev/console`
4097    device file.  This device is used to initialize the standard input, output,
4098    and error file descriptors.
4099
4100    This device driver reads via ``getchark()``.
4101
4102    This device driver writes into a write buffer.  The count of characters
4103    written into the write buffer is returned.  It might be less than the
4104    requested count, in case the write buffer is full.  The write is
4105    non-blocking and may be called from interrupt context.  A dedicated task
4106    reads from the write buffer and outputs the characters via
4107    ``rtems_putc()``.  This task runs with the least important priority.  The
4108    write buffer size is 2047 characters and it is not configurable.
4109
4110    Use ``fsync(STDOUT_FILENO)`` or ``fdatasync(STDOUT_FILENO)`` to drain the
4111    write buffer.
4112
4113    The Termios framework is not used.  There is no support to change device
4114    settings, e.g.  baud, stop bits, parity, etc.
4115
4116    The
4117
4118    * ``CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER``,
4119
4120    * ``CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER``, and
4121
4122    * ``CONFIGURE_APPLICATION_NEEDS_SIMPLE_TASK_CONSOLE_DRIVER``
4123
4124    configuration options are mutually exclusive.
4125
4126.. index:: CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
4127
4128.. _CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER:
4129
4130CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
4131----------------------------------------
4132
4133CONSTANT:
4134    ``CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER``
4135
4136DATA TYPE:
4137    Boolean feature macro.
4138
4139RANGE:
4140    Defined or undefined.
4141
4142DEFAULT VALUE:
4143    This is not defined by default.
4144
4145DESCRIPTION:
4146    ``CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER`` is defined if the application
4147    wishes to include the Clock Device Driver.
4148
4149NOTES:
4150    This device driver is responsible for providing a regular interrupt which
4151    invokes a clock tick directive.
4152
4153    If neither the Clock Driver not Benchmark Timer is enabled and the
4154    configuration parameter
4155    ``CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER`` is not defined, then a
4156    compile time error will occur.
4157
4158.. index:: CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
4159
4160.. _CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER:
4161
4162CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
4163----------------------------------------
4164
4165CONSTANT:
4166    ``CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER``
4167
4168DATA TYPE:
4169    Boolean feature macro.
4170
4171RANGE:
4172    Defined or undefined.
4173
4174DEFAULT VALUE:
4175    This is not defined by default.
4176
4177DESCRIPTION:
4178    ``CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER`` is defined if the application
4179    wishes to include the Timer Driver.  This device driver is used to
4180    benchmark execution times by the RTEMS Timing Test Suites.
4181
4182NOTES:
4183    If neither the Clock Driver not Benchmark Timer is enabled and the
4184    configuration parameter
4185    ``CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER`` is not defined, then a
4186    compile time error will occur.
4187
4188.. index:: CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
4189
4190.. _CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER:
4191
4192CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
4193------------------------------------------------
4194
4195CONSTANT:
4196    ``CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER``
4197
4198DATA TYPE:
4199    Boolean feature macro.
4200
4201RANGE:
4202    Defined or undefined.
4203
4204DEFAULT VALUE:
4205    This is not defined by default.
4206
4207DESCRIPTION:
4208    ``CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER`` is defined when the
4209    application does *NOT* want the Clock Device Driver and is *NOT* using the
4210    Timer Driver.  The inclusion or exclusion of the Clock Driver must be
4211    explicit in user applications.
4212
4213NOTES:
4214    This configuration parameter is intended to prevent the common user error
4215    of using the Hello World example as the baseline for an application and
4216    leaving out a clock tick source.
4217
4218.. index:: CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER
4219
4220.. _CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER:
4221
4222CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER
4223--------------------------------------
4224
4225CONSTANT:
4226    ``CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER``
4227
4228DATA TYPE:
4229    Boolean feature macro.
4230
4231RANGE:
4232    Defined or undefined.
4233
4234DEFAULT VALUE:
4235    This is not defined by default.
4236
4237DESCRIPTION:
4238    ``CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER`` is defined if the application
4239    wishes to include the Real-Time Clock Driver.
4240
4241NOTES:
4242    Most BSPs do not include support for a real-time clock. This is because
4243    many boards do not include the required hardware.
4244
4245    If this is defined and the BSP does not have this device driver, then the
4246    user will get a link time error for an undefined symbol.
4247
4248.. index:: CONFIGURE_APPLICATION_NEEDS_WATCHDOG_DRIVER
4249
4250.. _CONFIGURE_APPLICATION_NEEDS_WATCHDOG_DRIVER:
4251
4252CONFIGURE_APPLICATION_NEEDS_WATCHDOG_DRIVER
4253-------------------------------------------
4254
4255CONSTANT:
4256    ``CONFIGURE_APPLICATION_NEEDS_WATCHDOG_DRIVER``
4257
4258DATA TYPE:
4259    Boolean feature macro.
4260
4261RANGE:
4262    Defined or undefined.
4263
4264DEFAULT VALUE:
4265    This is not defined by default.
4266
4267DESCRIPTION:
4268    ``CONFIGURE_APPLICATION_NEEDS_WATCHDOG_DRIVER`` is defined if the
4269    application wishes to include the Watchdog Driver.
4270
4271NOTES:
4272    Most BSPs do not include support for a watchdog device driver. This is
4273    because many boards do not include the required hardware.
4274
4275    If this is defined and the BSP does not have this device driver, then the
4276    user will get a link time error for an undefined symbol.
4277
4278.. index:: CONFIGURE_APPLICATION_NEEDS_FRAME_BUFFER_DRIVER
4279
4280.. _CONFIGURE_APPLICATION_NEEDS_FRAME_BUFFER_DRIVER:
4281
4282CONFIGURE_APPLICATION_NEEDS_FRAME_BUFFER_DRIVER
4283-----------------------------------------------
4284
4285CONSTANT:
4286    ``CONFIGURE_APPLICATION_NEEDS_FRAME_BUFFER_DRIVER``
4287
4288DATA TYPE:
4289    Boolean feature macro.
4290
4291RANGE:
4292    Defined or undefined.
4293
4294DEFAULT VALUE:
4295    This is not defined by default.
4296
4297DESCRIPTION:
4298    ``CONFIGURE_APPLICATION_NEEDS_FRAME_BUFFER_DRIVER`` is defined if the
4299    application wishes to include the BSP's Frame Buffer Device Driver.
4300
4301NOTES:
4302    Most BSPs do not include support for a Frame Buffer Device Driver. This is
4303    because many boards do not include the required hardware.
4304
4305    If this is defined and the BSP does not have this device driver, then the
4306    user will get a link time error for an undefined symbol.
4307
4308.. index:: CONFIGURE_APPLICATION_NEEDS_STUB_DRIVER
4309
4310.. _CONFIGURE_APPLICATION_NEEDS_STUB_DRIVER:
4311
4312CONFIGURE_APPLICATION_NEEDS_STUB_DRIVER
4313---------------------------------------
4314
4315CONSTANT:
4316    ``CONFIGURE_APPLICATION_NEEDS_STUB_DRIVER``
4317
4318DATA TYPE:
4319    Boolean feature macro.
4320
4321RANGE:
4322    Defined or undefined.
4323
4324DEFAULT VALUE:
4325    This is not defined by default.
4326
4327DESCRIPTION:
4328    ``CONFIGURE_APPLICATION_NEEDS_STUB_DRIVER`` is defined if the application
4329    wishes to include the Stub Device Driver.
4330
4331NOTES:
4332    This device driver simply provides entry points that return successful and
4333    is primarily a test fixture. It is supported by all BSPs.
4334
4335.. index:: CONFIGURE_APPLICATION_PREREQUISITE_DRIVERS
4336
4337.. _CONFIGURE_APPLICATION_PREREQUISITE_DRIVERS:
4338
4339CONFIGURE_APPLICATION_PREREQUISITE_DRIVERS
4340------------------------------------------
4341
4342CONSTANT:
4343    ``CONFIGURE_APPLICATION_PREREQUISITE_DRIVERS``
4344
4345DATA TYPE:
4346    device driver entry structures
4347
4348RANGE:
4349    Undefined or set of device driver entry structures
4350
4351DEFAULT VALUE:
4352    This is not defined by default.
4353
4354DESCRIPTION:
4355    ``CONFIGURE_APPLICATION_PREREQUISITE_DRIVERS`` is defined if the
4356    application has device drivers it needs to include in the Device Driver
4357    Table.  This should be defined to the set of device driver entries that
4358    will be placed in the table at the *FRONT* of the Device Driver Table and
4359    initialized before any other drivers *EXCEPT* any BSP prerequisite drivers.
4360
4361NOTES:
4362    In some cases, it is used by System On Chip BSPs to support peripheral
4363    buses beyond those normally found on the System On Chip. For example, this
4364    is used by one RTEMS system which has implemented a SPARC/ERC32 based board
4365    with VMEBus. The VMEBus Controller initialization is performed by a device
4366    driver configured via this configuration parameter.
4367
4368.. COMMENT: XXX Add example
4369
4370.. index:: CONFIGURE_APPLICATION_EXTRA_DRIVERS
4371
4372.. _CONFIGURE_APPLICATION_EXTRA_DRIVERS:
4373
4374CONFIGURE_APPLICATION_EXTRA_DRIVERS
4375-----------------------------------
4376
4377CONSTANT:
4378    ``CONFIGURE_APPLICATION_EXTRA_DRIVERS``
4379
4380DATA TYPE:
4381    device driver entry structures
4382
4383RANGE:
4384    Undefined or set of device driver entry structures
4385
4386DEFAULT VALUE:
4387    This is not defined by default.
4388
4389DESCRIPTION:
4390    ``CONFIGURE_APPLICATION_EXTRA_DRIVERS`` is defined if the application has
4391    device drivers it needs to include in the Device Driver Table.  This should
4392    be defined to the set of device driver entries that will be placed in the
4393    table at the *END* of the Device Driver Table.
4394
4395NOTES:
4396    None.
4397
4398.. index:: CONFIGURE_APPLICATION_NEEDS_NULL_DRIVER
4399.. index:: /dev/null
4400
4401.. _CONFIGURE_APPLICATION_NEEDS_NULL_DRIVER:
4402
4403CONFIGURE_APPLICATION_NEEDS_NULL_DRIVER
4404---------------------------------------
4405
4406CONSTANT:
4407    ``CONFIGURE_APPLICATION_NEEDS_NULL_DRIVER``
4408
4409DATA TYPE:
4410    Boolean feature macro.
4411
4412RANGE:
4413    Defined or undefined.
4414
4415DEFAULT VALUE:
4416    This is not defined by default.
4417
4418DESCRIPTION:
4419    This configuration variable is specified to enable ``/dev/null`` device driver.
4420
4421NOTES:
4422    This device driver is supported by all BSPs.
4423
4424.. index:: CONFIGURE_APPLICATION_NEEDS_ZERO_DRIVER
4425.. index:: /dev/zero
4426
4427.. _CONFIGURE_APPLICATION_NEEDS_ZERO_DRIVER:
4428
4429CONFIGURE_APPLICATION_NEEDS_ZERO_DRIVER
4430---------------------------------------
4431
4432CONSTANT:
4433    ``CONFIGURE_APPLICATION_NEEDS_ZERO_DRIVER``
4434
4435DATA TYPE:
4436    Boolean feature macro.
4437
4438RANGE:
4439    Defined or undefined.
4440
4441DEFAULT VALUE:
4442    This is not defined by default.
4443
4444DESCRIPTION:
4445    This configuration variable is specified to enable ``/dev/zero`` device driver.
4446
4447NOTES:
4448    This device driver is supported by all BSPs.
4449
4450Multiprocessing Configuration
4451=============================
4452
4453This section defines the multiprocessing related system configuration
4454parameters supported by ``<rtems/confdefs.h>``.  They are only used if RTEMS
4455was built with the ``--enable-multiprocessing`` build configuration option.
4456The multiprocessing (MPCI) support must not be confused with the SMP support.
4457
4458Additionally, this class of Configuration Constants are only applicable if
4459``CONFIGURE_MP_APPLICATION`` is defined.
4460
4461.. index:: CONFIGURE_MP_APPLICATION
4462
4463.. _CONFIGURE_MP_APPLICATION:
4464
4465CONFIGURE_MP_APPLICATION
4466------------------------
4467
4468CONSTANT:
4469    ``CONFIGURE_MP_APPLICATION``
4470
4471DATA TYPE:
4472    Boolean feature macro.
4473
4474RANGE:
4475    Defined or undefined.
4476
4477DEFAULT VALUE:
4478    This is not defined by default.
4479
4480DESCRIPTION:
4481    This configuration parameter must be defined to indicate that the
4482    application intends to be part of a multiprocessing
4483    configuration. Additional configuration parameters are assumed to be
4484    provided.
4485
4486NOTES:
4487    This has no impact unless RTEMS was built with the
4488    ``--enable-multiprocessing`` build configuration option.
4489
4490.. index:: CONFIGURE_MP_NODE_NUMBER
4491
4492.. _CONFIGURE_MP_NODE_NUMBER:
4493
4494CONFIGURE_MP_NODE_NUMBER
4495------------------------
4496
4497CONSTANT:
4498    ``CONFIGURE_MP_NODE_NUMBER``
4499
4500DATA TYPE:
4501    Unsigned integer (``uint32_t``).
4502
4503RANGE:
4504    Positive.
4505
4506DEFAULT VALUE:
4507    The default value is ``NODE_NUMBER``, which is assumed to be set by the
4508    compilation environment.
4509
4510DESCRIPTION:
4511    ``CONFIGURE_MP_NODE_NUMBER`` is the node number of this node in a
4512    multiprocessor system.
4513
4514NOTES:
4515    In the RTEMS Multiprocessing Test Suite, the node number is derived from
4516    the Makefile variable ``NODE_NUMBER``. The same code is compiled with the
4517    ``NODE_NUMBER`` set to different values. The test programs behave
4518    differently based upon their node number.
4519
4520.. index:: CONFIGURE_MP_MAXIMUM_NODES
4521
4522.. _CONFIGURE_MP_MAXIMUM_NODES:
4523
4524CONFIGURE_MP_MAXIMUM_NODES
4525--------------------------
4526
4527CONSTANT:
4528    ``CONFIGURE_MP_MAXIMUM_NODES``
4529
4530DATA TYPE:
4531    Unsigned integer (``uint32_t``).
4532
4533RANGE:
4534    Positive.
4535
4536DEFAULT VALUE:
4537    The default value is 2.
4538
4539DESCRIPTION:
4540    ``CONFIGURE_MP_MAXIMUM_NODES`` is the maximum number of nodes in a
4541    multiprocessor system.
4542
4543NOTES:
4544    None.
4545
4546.. index:: CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS
4547
4548.. _CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS:
4549
4550CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS
4551-----------------------------------
4552
4553CONSTANT:
4554    ``CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS``
4555
4556DATA TYPE:
4557    Unsigned integer (``uint32_t``).
4558
4559RANGE:
4560    Positive.
4561
4562DEFAULT VALUE:
4563    The default value is 32.
4564
4565DESCRIPTION:
4566    ``CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS`` is the maximum number of
4567    concurrently active global objects in a multiprocessor system.
4568
4569NOTES:
4570    This value corresponds to the total number of objects which can be created
4571    with the ``RTEMS_GLOBAL`` attribute.
4572
4573.. index:: CONFIGURE_MP_MAXIMUM_PROXIES
4574
4575.. _CONFIGURE_MP_MAXIMUM_PROXIES:
4576
4577CONFIGURE_MP_MAXIMUM_PROXIES
4578----------------------------
4579
4580CONSTANT:
4581    ``CONFIGURE_MP_MAXIMUM_PROXIES``
4582
4583DATA TYPE:
4584    Unsigned integer (``uint32_t``).
4585
4586RANGE:
4587    Undefined or positive.
4588
4589DEFAULT VALUE:
4590    The default value is 32.
4591
4592DESCRIPTION:
4593    ``CONFIGURE_MP_MAXIMUM_PROXIES`` is the maximum number of concurrently
4594    active thread/task proxies on this node in a multiprocessor system.
4595
4596NOTES:
4597    Since a proxy is used to represent a remote task/thread which is blocking
4598    on this node. This configuration parameter reflects the maximum number of
4599    remote tasks/threads which can be blocked on objects on this node.
4600
4601.. COMMENT: XXX - add xref to proxy discussion in MP chapter
4602
4603.. index:: CONFIGURE_MP_MPCI_TABLE_POINTER
4604
4605.. _CONFIGURE_MP_MPCI_TABLE_POINTER:
4606
4607CONFIGURE_MP_MPCI_TABLE_POINTER
4608-------------------------------
4609
4610CONSTANT:
4611    ``CONFIGURE_MP_MPCI_TABLE_POINTER``
4612
4613DATA TYPE:
4614    pointer to ``rtems_mpci_table``
4615
4616RANGE:
4617    undefined or valid pointer
4618
4619DEFAULT VALUE:
4620    This is not defined by default.
4621
4622DESCRIPTION:
4623    ``CONFIGURE_MP_MPCI_TABLE_POINTER`` is the pointer to the MPCI
4624    Configuration Table.  The default value of this field is``&MPCI_table``.
4625
4626NOTES:
4627    RTEMS provides a Shared Memory MPCI Device Driver which can be used on any
4628    Multiprocessor System assuming the BSP provides the proper set of
4629    supporting methods.
4630
4631PCI Library
4632===========
4633
4634This section defines the system configuration parameters supported by
4635``rtems/confdefs.h`` related to configuring the PCI Library for RTEMS.
4636
4637The PCI Library startup behaviour can be configured in four different ways
4638depending on how ``CONFIGURE_PCI_CONFIG_LIB`` is defined:
4639
4640.. index:: PCI_LIB_AUTO
4641
4642``PCI_LIB_AUTO``
4643  Used to enable the PCI auto configuration software. PCI will be automatically
4644  probed, PCI buses enumerated, all devices and bridges will be initialized
4645  using Plug & Play software routines. The PCI device tree will be populated
4646  based on the PCI devices found in the system, PCI devices will be configured
4647  by allocating address region resources automatically in PCI space according
4648  to the BSP or host bridge driver set up.
4649
4650.. index:: PCI_LIB_READ
4651
4652``PCI_LIB_READ``
4653  Used to enable the PCI read configuration software. The current PCI
4654  configuration is read to create the RAM representation (the PCI device tree)
4655  of the PCI devices present. PCI devices are assumed to already have been
4656  initialized and PCI buses enumerated, it is therefore required that a BIOS or
4657  a boot loader has set up configuration space prior to booting into RTEMS.
4658
4659.. index:: PCI_LIB_STATIC
4660
4661``PCI_LIB_STATIC``
4662  Used to enable the PCI static configuration software. The user provides a PCI
4663  tree with information how all PCI devices are to be configured at compile
4664  time by linking in a custom ``struct pci_bus pci_hb`` tree. The static PCI
4665  library will not probe PCI for devices, instead it will assume that all
4666  devices defined by the user are present, it will enumerate the PCI buses and
4667  configure all PCI devices in static configuration accordingly. Since probe
4668  and allocation software is not needed the startup is faster, has smaller
4669  footprint and does not require dynamic memory allocation.
4670
4671.. index:: PCI_LIB_PERIPHERAL
4672
4673``PCI_LIB_PERIPHERAL``
4674  Used to enable the PCI peripheral configuration. It is similar to
4675  ``PCI_LIB_STATIC``, but it will never write the configuration to the PCI
4676  devices since PCI peripherals are not allowed to access PCI configuration
4677  space.
4678
4679Note that selecting ``PCI_LIB_STATIC`` or ``PCI_LIB_PERIPHERAL`` but not
4680defining ``pci_hb`` will reuslt in link errors. Note also that in these modes
4681Plug & Play is not performed.
4682
4683Event Recording
4684===============
4685
4686.. index:: CONFIGURE_RECORD_PER_PROCESSOR_ITEMS
4687
4688.. _CONFIGURE_RECORD_PER_PROCESSOR_ITEMS:
4689
4690CONFIGURE_RECORD_PER_PROCESSOR_ITEMS
4691------------------------------------
4692
4693CONSTANT:
4694    ``CONFIGURE_RECORD_PER_PROCESSOR_ITEMS``
4695
4696DATA TYPE:
4697    Unsigned integer (``unsigned int``).
4698
4699RANGE:
4700    A power of two greater than or equal to 16.
4701
4702DEFAULT VALUE:
4703    This is not defined by default.
4704
4705DESCRIPTION:
4706    If defined, then a record item buffer of the specified item count is
4707    statically allocated for each configured processor
4708    (:ref:`CONFIGURE_MAXIMUM_PROCESSORS <CONFIGURE_MAXIMUM_PROCESSORS>`).
4709
4710NOTES:
4711    None.
4712
4713.. index:: CONFIGURE_RECORD_EXTENSIONS_ENABLED
4714
4715.. _CONFIGURE_RECORD_EXTENSIONS_ENABLED:
4716
4717CONFIGURE_RECORD_EXTENSIONS_ENABLED
4718-----------------------------------
4719
4720CONSTANT:
4721    ``CONFIGURE_RECORD_EXTENSIONS_ENABLED``
4722
4723DATA TYPE:
4724    Boolean feature macro.
4725
4726RANGE:
4727    Defined or undefined.
4728
4729DEFAULT VALUE:
4730    This is not defined by default.
4731
4732DESCRIPTION:
4733    If defined and :ref:`CONFIGURE_RECORD_PER_PROCESSOR_ITEMS
4734    <CONFIGURE_RECORD_PER_PROCESSOR_ITEMS>` is also defined properly, then the
4735    record extensions are enabled.
4736
4737NOTES:
4738    The record extensions capture thread create, start, restart, delete,
4739    switch, begin, exitted and terminate events.
4740
4741.. _ConfigAda:
4742
4743Ada Configuration
4744=================
4745
4746The GNU Ada runtime library (libgnarl) uses threads, mutexes, condition
4747variables, and signals from the pthreads API.  It uses also thread-local storage
4748for the Ada Task Control Block (ATCB).  From these resources only the threads
4749need to be accounted for in the configuration.  You should include the Ada tasks
4750in your setting of the :ref:`CONFIGURE_MAXIMUM_POSIX_THREADS` configuration
4751option.
4752
4753Obsolete Configuration Options
4754==============================
4755
4756.. index:: CONFIGURE_BDBUF_BUFFER_COUNT
4757
4758CONFIGURE_BDBUF_BUFFER_COUNT
4759----------------------------
4760
4761This configuration option was introduced in RTEMS 4.7.0 and is obsolete since
4762RTEMS 4.10.0.
4763
4764.. index:: CONFIGURE_BDBUF_BUFFER_SIZE
4765
4766CONFIGURE_BDBUF_BUFFER_SIZE
4767---------------------------
4768
4769This configuration option was introduced in RTEMS 4.7.0 and is obsolete since
4770RTEMS 4.10.0.
4771
4772.. index:: CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS
4773
4774CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS
4775--------------------------------------
4776
4777This configuration option was introduced in RTEMS 4.9.0 and is obsolete since
4778RTEMS 5.1.
4779
4780.. index:: CONFIGURE_ENABLE_GO
4781
4782CONFIGURE_ENABLE_GO
4783-------------------
4784
4785This configuration option is obsolete since RTEMS 5.1.
4786
4787.. index:: CONFIGURE_GNAT_RTEMS
4788
4789CONFIGURE_GNAT_RTEMS
4790--------------------
4791
4792This configuration option was present in all RTEMS versions since at 1997 and is
4793obsolete since RTEMS 5.1.  See also :ref:`ConfigAda`.
4794
4795.. index:: CONFIGURE_HAS_OWN_CONFIGURATION_TABLE
4796
4797CONFIGURE_HAS_OWN_CONFIGURATION_TABLE
4798-------------------------------------
4799
4800This configuration option is obsolete since RTEMS 5.1.
4801
4802.. index:: CONFIGURE_HAS_OWN_BDBUF_TABLE
4803
4804CONFIGURE_HAS_OWN_BDBUF_TABLE
4805-----------------------------
4806
4807This configuration option was introduced in RTEMS 4.7.0 and is obsolete since
4808RTEMS 4.10.0.
4809
4810.. index:: CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE
4811
4812CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE
4813-------------------------------------
4814
4815This configuration option was present in all RTEMS versions since at least 1995
4816and is obsolete since RTEMS 5.1.
4817
4818.. index:: CONFIGURE_HAS_OWN_INIT_TASK_TABLE
4819
4820.. _CONFIGURE_HAS_OWN_INIT_TASK_TABLE:
4821
4822CONFIGURE_HAS_OWN_INIT_TASK_TABLE
4823---------------------------------
4824
4825This configuration option was present in all RTEMS versions since at least 1995
4826and is obsolete since RTEMS 5.1.  If you used this configuration option or you
4827think that there should be a way to configure more than one Classic API
4828initialization task, then please ask on the :r:list:`users`.
4829
4830.. index:: CONFIGURE_HAS_OWN_MOUNT_TABLE
4831
4832CONFIGURE_HAS_OWN_MOUNT_TABLE
4833-----------------------------
4834
4835This configuration option is obsolete since RTEMS 5.1.
4836
4837.. index:: CONFIGURE_HAS_OWN_MULTIPROCESSING_TABLE
4838
4839CONFIGURE_HAS_OWN_MULTIPROCESSING_TABLE
4840---------------------------------------
4841
4842This configuration option is obsolete since RTEMS 5.1.
4843
4844.. index:: CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS
4845
4846CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS
4847--------------------------------
4848
4849This configuration option was present in all RTEMS versions since at 1998 and is
4850obsolete since RTEMS 5.1.  See also :ref:`CONFIGURE_MAXIMUM_FILE_DESCRIPTORS`.
4851
4852.. index:: CONFIGURE_MAXIMUM_ADA_TASKS
4853
4854CONFIGURE_MAXIMUM_ADA_TASKS
4855---------------------------
4856
4857This configuration option was present in all RTEMS versions since at 1997 and is
4858obsolete since RTEMS 5.1.  See also :ref:`ConfigAda`.
4859
4860.. index:: CONFIGURE_MAXIMUM_FAKE_ADA_TASKS
4861
4862CONFIGURE_MAXIMUM_FAKE_ADA_TASKS
4863--------------------------------
4864
4865This configuration option was present in all RTEMS versions since at 1997 and is
4866obsolete since RTEMS 5.1.  See also :ref:`ConfigAda`.
4867
4868.. index:: CONFIGURE_MAXIMUM_GO_CHANNELS
4869
4870CONFIGURE_MAXIMUM_GO_CHANNELS
4871-----------------------------
4872
4873This configuration option is obsolete since RTEMS 5.1.
4874
4875.. index:: CONFIGURE_MAXIMUM_GOROUTINES
4876
4877CONFIGURE_MAXIMUM_GOROUTINES
4878----------------------------
4879
4880This configuration option is obsolete since RTEMS 5.1.
4881
4882.. index:: CONFIGURE_MAXIMUM_MRSP_SEMAPHORES
4883
4884CONFIGURE_MAXIMUM_MRSP_SEMAPHORES
4885---------------------------------
4886
4887This configuration option is obsolete since RTEMS 5.1.
4888
4889.. index:: CONFIGURE_NUMBER_OF_TERMIOS_PORTS
4890
4891CONFIGURE_NUMBER_OF_TERMIOS_PORTS
4892---------------------------------
4893
4894This configuration option is obsolete since RTEMS 5.1.
4895
4896.. index:: CONFIGURE_MAXIMUM_POSIX_BARRIERS
4897
4898CONFIGURE_MAXIMUM_POSIX_BARRIERS
4899--------------------------------
4900
4901This configuration option is obsolete since RTEMS 5.1.
4902
4903.. index:: CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES
4904
4905CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES
4906-------------------------------------------
4907
4908This configuration option is obsolete since RTEMS 5.1.
4909
4910.. index:: CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUE_DESCRIPTORS
4911
4912CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUE_DESCRIPTORS
4913-------------------------------
4914
4915This configuration option was introduced in RTEMS 4.10.0 and is obsolete since
4916RTEMS 5.1.
4917
4918.. index:: CONFIGURE_MAXIMUM_POSIX_MUTEXES
4919
4920CONFIGURE_MAXIMUM_POSIX_MUTEXES
4921-------------------------------
4922
4923This configuration option is obsolete since RTEMS 5.1.
4924
4925.. index:: CONFIGURE_MAXIMUM_POSIX_RWLOCKS
4926
4927CONFIGURE_MAXIMUM_POSIX_RWLOCKS
4928-------------------------------
4929
4930This configuration option is obsolete since RTEMS 5.1.
4931
4932.. index:: CONFIGURE_MAXIMUM_POSIX_SPINLOCKS
4933
4934CONFIGURE_MAXIMUM_POSIX_SPINLOCKS
4935---------------------------------
4936
4937This configuration option is obsolete since RTEMS 5.1.
4938
4939.. index:: CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE
4940
4941.. _CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE:
4942
4943CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE
4944-----------------------------------------
4945
4946This configuration option was present in all RTEMS versions since at least 1995
4947and is obsolete since RTEMS 5.1.  If you used this configuration option or you
4948think that there should be a way to configure more than one POSIX initialization
4949thread, then please ask on the  :r:list:`users`.
4950
4951.. index:: CONFIGURE_SMP_APPLICATION
4952
4953CONFIGURE_SMP_APPLICATION
4954-------------------------
4955
4956This configuration option was introduced in RTEMS 4.11.0 and is obsolete since
4957RTEMS 5.1.
4958
4959.. index:: CONFIGURE_SMP_MAXIMUM_PROCESSORS
4960
4961CONFIGURE_SMP_MAXIMUM_PROCESSORS
4962--------------------------------
4963
4964This configuration option was introduced in RTEMS 4.11.0 and is obsolete since
4965RTEMS 5.1.  See also :ref:`CONFIGURE_MAXIMUM_PROCESSORS`.
4966
4967.. index:: CONFIGURE_TERMIOS_DISABLED
4968
4969CONFIGURE_TERMIOS_DISABLED
4970--------------------------
4971
4972This configuration option is obsolete since RTEMS 5.1.
Note: See TracBrowser for help on using the repository browser.