source: rtems/cpukit/sapi/include/confdefs.h @ b96254f

4.104.114.84.95
Last change on this file since b96254f was b96254f, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 21, 2004 at 7:42:11 AM

Add doxygen preamble.

  • Property mode set to 100644
File size: 31.0 KB
Line 
1/**
2 * @file rtems/confdefs.h
3 *
4 *  This include file contains the configuration table template that will
5 *  be instantiated by an application based on the setting of a number
6 *  of macros.  The macros are documented in the Configuring a System
7 *  chapter of the Classic API User's Guide
8 *
9 *  The model is to estimate the memory required for each configured item
10 *  and sum those estimates.  The estimate can be too high or too low for
11 *  a variety of reasons:
12 *
13 *  Reasons estimate is too high:
14 *    + FP contexts (not all tasks are FP)
15 *
16 *  Reasons estimate is too low:
17 *    + stacks greater than minimum size
18 *    + messages
19 *    + application must account for device driver resources
20 *    + application must account for add-on library resource requirements
21 *
22 *  NOTE:  Eventually this may be able to take into account some of
23 *         the above.  This procedure has evolved from just enough to
24 *         support the RTEMS Test Suites into something that can be
25 *         used remarkably reliably by most applications.
26 */
27 
28/*
29 *  COPYRIGHT (c) 1989-2002.
30 *  On-Line Applications Research Corporation (OAR).
31 *
32 *  The license and distribution terms for this file may be
33 *  found in the file LICENSE in this distribution or at
34 *  http://www.rtems.com/license/LICENSE.
35 *
36 *  $Id$
37 */
38
39#ifndef __CONFIGURATION_TEMPLATE_h
40#define __CONFIGURATION_TEMPLATE_h
41
42#ifdef __cplusplus
43extern "C" {
44#endif
45
46/*
47 * Include the executive's configuration
48 */
49#include <rtems/score/cpuopts.h>
50#include <rtems/score/apimutex.h>
51
52extern rtems_initialization_tasks_table Initialization_tasks[];
53extern rtems_driver_address_table       Device_drivers[];
54extern rtems_configuration_table        Configuration;
55extern rtems_multiprocessing_table      Multiprocessing_configuration;
56#ifdef RTEMS_POSIX_API
57extern posix_api_configuration_table    Configuration_POSIX_API;
58#endif
59#ifdef RTEMS_ITRON_API
60extern itron_api_configuration_table    Configuration_ITRON_API;
61#endif
62
63/*
64 *  RTEMS C Library and Newlib support
65 */
66
67#ifdef RTEMS_NEWLIB
68#define CONFIGURE_NEWLIB_EXTENSION 1
69#else
70#define CONFIGURE_NEWLIB_EXTENSION 0
71#endif
72
73#define CONFIGURE_MALLOC_REGION 1
74
75/*
76 *  File descriptors managed by libio
77 */
78
79#ifndef CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS
80#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 3
81#endif
82
83#define CONFIGURE_LIBIO_SEMAPHORES \
84  (CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS + 1)
85
86#ifdef CONFIGURE_INIT
87uint32_t   rtems_libio_number_iops = CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS;
88#endif
89
90/*
91 *  Termios resources
92 */
93
94#ifdef CONFIGURE_TERMIOS_DISABLED
95#define CONFIGURE_TERMIOS_SEMAPHORES 0
96#else
97
98#ifndef CONFIGURE_NUMBER_OF_TERMIOS_PORTS
99#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 1
100#endif
101
102#define CONFIGURE_TERMIOS_SEMAPHORES \
103  ((CONFIGURE_NUMBER_OF_TERMIOS_PORTS * 4) + 1)
104#endif
105
106/*
107 *  Mount Table Configuration
108 */
109
110#include <rtems/imfs.h>
111
112#ifdef CONFIGURE_INIT
113
114#ifndef CONFIGURE_HAS_OWN_MOUNT_TABLE
115rtems_filesystem_mount_table_t configuration_mount_table = {
116#ifdef CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
117  &IMFS_ops,
118#else  /* using miniIMFS as base filesystem */
119  &miniIMFS_ops,
120#endif
121  RTEMS_FILESYSTEM_READ_WRITE,
122  NULL,
123  NULL
124};
125
126rtems_filesystem_mount_table_t
127    *rtems_filesystem_mount_table = &configuration_mount_table;
128int rtems_filesystem_mount_table_size = 1;
129#endif
130
131#endif
132
133
134/*
135 *  Stack Checker Requirements
136 *
137 *  NOTE: This does not automatically enable reporting at program exit.
138 */
139
140#ifdef STACK_CHECKER_ON
141#define CONFIGURE_STACK_CHECKER_EXTENSION 1
142#else
143#define CONFIGURE_STACK_CHECKER_EXTENSION 0
144#endif
145
146/*
147 *  Interrupt Stack Space
148 *
149 *  NOTE: There is currently no way for the application to override
150 *        the interrupt stack size set by the BSP.
151 */
152
153#if (CPU_ALLOCATE_INTERRUPT_STACK == 0)
154#undef CONFIGURE_INTERRUPT_STACK_MEMORY
155#define CONFIGURE_INTERRUPT_STACK_MEMORY 0
156#else
157  #ifndef CONFIGURE_INTERRUPT_STACK_MEMORY
158  #define CONFIGURE_INTERRUPT_STACK_MEMORY RTEMS_MINIMUM_STACK_SIZE
159  #endif
160#endif
161
162/*
163 *  Default User Initialization Task Table.  This table guarantees that
164 *  one user initialization table is defined.
165 */
166
167#ifdef CONFIGURE_RTEMS_INIT_TASKS_TABLE
168
169#ifdef CONFIGURE_HAS_OWN_INIT_TASK_TABLE
170
171/*
172 *  The user is defining their own table information and setting the
173 *  appropriate variables.
174 */
175
176#else
177
178#ifndef CONFIGURE_INIT_TASK_NAME
179#define CONFIGURE_INIT_TASK_NAME          rtems_build_name( 'U', 'I', '1', ' ' )
180#endif
181
182#ifndef CONFIGURE_INIT_TASK_STACK_SIZE
183#define CONFIGURE_INIT_TASK_STACK_SIZE    RTEMS_MINIMUM_STACK_SIZE
184#endif
185
186#ifndef CONFIGURE_INIT_TASK_PRIORITY
187#define CONFIGURE_INIT_TASK_PRIORITY      1
188#endif
189
190#ifndef CONFIGURE_INIT_TASK_ATTRIBUTES
191#define CONFIGURE_INIT_TASK_ATTRIBUTES    RTEMS_DEFAULT_ATTRIBUTES
192#endif
193
194#ifndef CONFIGURE_INIT_TASK_ENTRY_POINT
195#define CONFIGURE_INIT_TASK_ENTRY_POINT   Init
196#endif
197
198#ifndef CONFIGURE_INIT_TASK_INITIAL_MODES
199#define CONFIGURE_INIT_TASK_INITIAL_MODES RTEMS_NO_PREEMPT
200#endif
201
202#ifndef CONFIGURE_INIT_TASK_ARGUMENTS
203#define CONFIGURE_INIT_TASK_ARGUMENTS     0
204#endif
205
206#ifdef CONFIGURE_INIT
207rtems_initialization_tasks_table Initialization_tasks[] = {
208  { CONFIGURE_INIT_TASK_NAME,
209    CONFIGURE_INIT_TASK_STACK_SIZE,
210    CONFIGURE_INIT_TASK_PRIORITY,
211    CONFIGURE_INIT_TASK_ATTRIBUTES,
212    CONFIGURE_INIT_TASK_ENTRY_POINT,
213    CONFIGURE_INIT_TASK_INITIAL_MODES,
214    CONFIGURE_INIT_TASK_ARGUMENTS
215  }
216};
217#endif
218
219#define CONFIGURE_INIT_TASK_TABLE Initialization_tasks
220
221#define CONFIGURE_INIT_TASK_TABLE_SIZE \
222  sizeof(CONFIGURE_INIT_TASK_TABLE) / sizeof(rtems_initialization_tasks_table)
223
224#endif    /* CONFIGURE_HAS_OWN_INIT_TASK_TABLE */
225
226#else     /* CONFIGURE_RTEMS_INIT_TASKS_TABLE */
227
228#define CONFIGURE_INIT_TASK_TABLE      NULL
229#define CONFIGURE_INIT_TASK_TABLE_SIZE 0
230#define CONFIGURE_INIT_TASK_STACK_SIZE 0
231
232#endif
233
234/*
235 *  Map obsolete names to current ones
236 *
237 *  NOTE: These should be obsoleted in a future release.
238 */
239
240#ifdef CONFIGURE_TEST_NEEDS_TIMER_DRIVER
241#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
242#endif
243#ifdef CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
244#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
245#endif
246#ifdef CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
247#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
248#endif
249#ifdef CONFIGURE_TEST_NEEDS_RTC_DRIVER
250#define CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER
251#endif
252#ifdef CONFIGURE_TEST_NEEDS_STUB_DRIVER
253#define CONFIGURE_APPLICATION_NEEDS_STUB_DRIVER
254#endif
255
256
257/*
258 *  Default Device Driver Table.  Each driver needed by the test is explicitly
259 *  choosen by that test.  There is always a null driver entry.
260 */
261
262#define NULL_DRIVER_TABLE_ENTRY \
263 { NULL, NULL, NULL, NULL, NULL, NULL }
264
265#ifdef CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
266#include <rtems/console.h>
267#endif
268
269#ifdef CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
270#include <rtems/clockdrv.h>
271#endif
272
273#ifdef CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
274#include <rtems/timerdrv.h>
275#endif
276
277#ifdef CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER
278#include <rtems/rtc.h>
279#endif
280
281#ifdef CONFIGURE_APPLICATION_NEEDS_STUB_DRIVER
282#include <rtems/devnull.h>
283#endif
284
285#ifndef CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE
286
287#ifdef CONFIGURE_INIT
288rtems_driver_address_table Device_drivers[] = {
289#ifdef CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
290  CONSOLE_DRIVER_TABLE_ENTRY,
291#endif
292#ifdef CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
293  CLOCK_DRIVER_TABLE_ENTRY,
294#endif
295#ifdef CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER
296  RTC_DRIVER_TABLE_ENTRY,
297#endif
298#ifdef CONFIGURE_APPLICATION_NEEDS_STUB_DRIVER
299  DEVNULL_DRIVER_TABLE_ENTRY,
300#endif
301#ifdef CONFIGURE_APPLICATION_NEEDS_NULL_DRIVER
302  NULL_DRIVER_TABLE_ENTRY
303#elif !defined(CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER) && \
304    !defined(CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER) && \
305    !defined(CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER) && \
306    !defined(CONFIGURE_APPLICATION_NEEDS_STUB_DRIVER)
307  NULL_DRIVER_TABLE_ENTRY
308#endif
309};
310#endif
311
312#endif  /* CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE */
313
314/*
315 *  Default the number of drivers per node.  This value may be
316 *  overridden by the user.
317 */
318
319#define CONFIGURE_NUMBER_OF_DRIVERS \
320  ((sizeof(Device_drivers) / sizeof(rtems_driver_address_table)))
321
322#ifndef CONFIGURE_MAXIMUM_DRIVERS
323#define CONFIGURE_MAXIMUM_DRIVERS CONFIGURE_NUMBER_OF_DRIVERS
324#endif
325
326/*
327 *  Default the number of devices per device driver.  This value may be
328 *  overridden by the user.
329 */
330
331#ifndef CONFIGURE_MAXIMUM_DEVICES
332#define CONFIGURE_MAXIMUM_DEVICES   20
333#endif
334
335/*
336 *  Default Multiprocessing Configuration Table.  The defaults are
337 *  appropriate for most of the RTEMS Multiprocessor Test Suite.  Each
338 *  value may be overridden within each test to customize the environment.
339 */
340
341#ifdef CONFIGURE_MP_APPLICATION
342#ifndef CONFIGURE_HAS_OWN_MULTIPROCESING_TABLE
343
344#ifndef CONFIGURE_MP_NODE_NUMBER
345#define CONFIGURE_MP_NODE_NUMBER                NODE_NUMBER
346#endif
347
348#ifndef CONFIGURE_MP_MAXIMUM_NODES
349#define CONFIGURE_MP_MAXIMUM_NODES              2
350#endif
351
352#ifndef CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS
353#define CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS     32
354#endif
355
356#ifndef CONFIGURE_MP_MAXIMUM_PROXIES
357#define CONFIGURE_MP_MAXIMUM_PROXIES            32
358#endif
359
360#ifndef CONFIGURE_MP_MPCI_TABLE_POINTER
361#include <mpci.h>
362#define CONFIGURE_MP_MPCI_TABLE_POINTER         &MPCI_table
363#endif
364
365#ifdef CONFIGURE_INIT
366rtems_multiprocessing_table Multiprocessing_configuration = {
367  CONFIGURE_MP_NODE_NUMBER,              /* local node number */
368  CONFIGURE_MP_MAXIMUM_NODES,            /* maximum # nodes in system */
369  CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS,   /* maximum # global objects */
370  CONFIGURE_MP_MAXIMUM_PROXIES,          /* maximum # proxies */
371  CONFIGURE_MP_MPCI_TABLE_POINTER        /* pointer to MPCI config table */
372};
373#endif
374
375#define CONFIGURE_MULTIPROCESSING_TABLE    &Multiprocessing_configuration
376
377#endif /* CONFIGURE_HAS_OWN_MULTIPROCESING_TABLE */
378
379#else
380
381#define CONFIGURE_MULTIPROCESSING_TABLE    NULL
382
383#endif /* CONFIGURE_MP_APPLICATION */
384
385/*
386 *  Default Configuration Table.
387 */
388
389#ifndef CONFIGURE_HAS_OWN_CONFIGURATION_TABLE
390
391#ifndef CONFIGURE_EXECUTIVE_RAM_WORK_AREA
392#define CONFIGURE_EXECUTIVE_RAM_WORK_AREA     NULL
393#endif
394
395#ifndef CONFIGURE_MAXIMUM_TASKS
396#define CONFIGURE_MAXIMUM_TASKS               0
397#endif
398
399#ifndef CONFIGURE_MAXIMUM_TIMERS
400#define CONFIGURE_MAXIMUM_TIMERS              0
401#endif
402
403#ifndef CONFIGURE_MAXIMUM_SEMAPHORES
404#define CONFIGURE_MAXIMUM_SEMAPHORES          0
405#endif
406
407#ifndef CONFIGURE_MAXIMUM_MESSAGE_QUEUES
408#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES      0
409#endif
410
411#ifndef CONFIGURE_MAXIMUM_PARTITIONS
412#define CONFIGURE_MAXIMUM_PARTITIONS          0
413#endif
414
415#ifndef CONFIGURE_MAXIMUM_REGIONS
416#define CONFIGURE_MAXIMUM_REGIONS             0
417#endif
418
419#ifndef CONFIGURE_MAXIMUM_PORTS
420#define CONFIGURE_MAXIMUM_PORTS               0
421#endif
422
423#ifndef CONFIGURE_MAXIMUM_PERIODS
424#define CONFIGURE_MAXIMUM_PERIODS             0
425#endif
426
427#ifndef CONFIGURE_MAXIMUM_USER_EXTENSIONS
428#define CONFIGURE_MAXIMUM_USER_EXTENSIONS     0
429#endif
430
431#ifndef CONFIGURE_MICROSECONDS_PER_TICK
432#define CONFIGURE_MICROSECONDS_PER_TICK RTEMS_MILLISECONDS_TO_MICROSECONDS(10)
433#endif
434
435#ifndef CONFIGURE_TICKS_PER_TIMESLICE
436#define CONFIGURE_TICKS_PER_TIMESLICE        50
437#endif
438
439/*
440 *  Initial Extension Set
441 */
442
443#ifdef CONFIGURE_INIT
444#ifdef STACK_CHECKER_ON
445#include <rtems/stackchk.h>
446#endif
447
448#if defined(CONFIGURE_INITIAL_EXTENSIONS) || \
449    defined(STACK_CHECKER_ON)
450rtems_extensions_table Configuration_Initial_Extensions[] = {
451#ifdef CONFIGURE_INITIAL_EXTENSIONS
452    CONFIGURE_INITIAL_EXTENSIONS,
453#endif
454#ifdef STACK_CHECKER_ON
455    STACK_CHECKER_EXTENSION,
456#endif
457};
458
459#define CONFIGURE_INITIAL_EXTENSION_TABLE Configuration_Initial_Extensions
460#define CONFIGURE_NUMBER_OF_INITIAL_EXTENSIONS \
461  ((sizeof(Configuration_Initial_Extensions) / \
462    sizeof(rtems_extensions_table)))
463#else
464#define CONFIGURE_INITIAL_EXTENSION_TABLE NULL
465#define CONFIGURE_NUMBER_OF_INITIAL_EXTENSIONS 0
466#endif
467
468
469#endif
470
471/*
472 *  POSIX API Configuration Parameters
473 */
474
475#ifdef RTEMS_POSIX_API
476
477#include <sys/types.h>
478#include <signal.h>
479#include <limits.h>
480#include <mqueue.h>
481#include <rtems/posix/cond.h>
482#include <rtems/posix/mqueue.h>
483#include <rtems/posix/mutex.h>
484#include <rtems/posix/key.h>
485#include <rtems/posix/psignal.h>
486#include <rtems/posix/semaphore.h>
487#include <rtems/posix/threadsup.h>
488
489#ifndef CONFIGURE_MAXIMUM_POSIX_THREADS
490#define CONFIGURE_MAXIMUM_POSIX_THREADS      0
491#endif
492
493#ifndef CONFIGURE_MAXIMUM_POSIX_MUTEXES
494#define CONFIGURE_MAXIMUM_POSIX_MUTEXES      0
495#endif
496
497#ifndef CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES
498#define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES  0
499#endif
500
501#ifndef CONFIGURE_MAXIMUM_POSIX_KEYS
502#define CONFIGURE_MAXIMUM_POSIX_KEYS         0
503#endif
504
505#ifndef CONFIGURE_MAXIMUM_POSIX_TIMERS
506#define CONFIGURE_MAXIMUM_POSIX_TIMERS 0
507#endif
508
509#ifndef CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS
510#define CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS 0
511#endif
512
513#ifndef CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES
514#define CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES 0
515#endif
516
517#ifndef CONFIGURE_MAXIMUM_POSIX_SEMAPHORES
518#define CONFIGURE_MAXIMUM_POSIX_SEMAPHORES 0
519#endif
520
521#ifdef CONFIGURE_POSIX_INIT_THREAD_TABLE
522
523#ifdef CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE
524
525/*
526 *  The user is defining their own table information and setting the
527 *  appropriate variables for the POSIX Initialization Thread Table.
528 */
529
530#else
531
532#ifndef CONFIGURE_POSIX_INIT_THREAD_ENTRY_POINT
533#define CONFIGURE_POSIX_INIT_THREAD_ENTRY_POINT   POSIX_Init
534#endif
535
536#ifndef CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE
537#define CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE    (RTEMS_MINIMUM_STACK_SIZE * 2)
538#endif
539
540#ifdef CONFIGURE_INIT
541posix_initialization_threads_table POSIX_Initialization_threads[] = {
542  { CONFIGURE_POSIX_INIT_THREAD_ENTRY_POINT, \
543      CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE }
544};
545#endif
546
547#define CONFIGURE_POSIX_INIT_THREAD_TABLE_NAME POSIX_Initialization_threads
548
549#define CONFIGURE_POSIX_INIT_THREAD_TABLE_SIZE \
550  sizeof(CONFIGURE_POSIX_INIT_THREAD_TABLE_NAME) / \
551      sizeof(posix_initialization_threads_table)
552
553#endif    /* CONFIGURE_POSIX_HAS_OWN_INIT_TASK_TABLE */
554
555#else     /* CONFIGURE_POSIX_INIT_THREAD_TABLE */
556
557#define CONFIGURE_POSIX_INIT_THREAD_TABLE_NAME NULL
558#define CONFIGURE_POSIX_INIT_THREAD_TABLE_SIZE 0
559
560#endif
561
562#define CONFIGURE_MEMORY_PER_TASK_FOR_POSIX_API \
563  ( \
564    sizeof (POSIX_API_Control) + \
565   (sizeof (void *) * (CONFIGURE_GNAT_KEYS + CONFIGURE_MAXIMUM_POSIX_KEYS)) \
566  )
567
568#define CONFIGURE_MEMORY_FOR_POSIX_MUTEXES(_mutexes) \
569  ((_mutexes) * \
570   ( sizeof(POSIX_Mutex_Control) + CONFIGURE_OBJECT_TABLE_STUFF + \
571     NAME_MAX ) )
572
573#define CONFIGURE_MEMORY_FOR_POSIX_CONDITION_VARIABLES(_condition_variables) \
574  ((_condition_variables) * \
575   ( sizeof(POSIX_Condition_variables_Control) + \
576        CONFIGURE_OBJECT_TABLE_STUFF ) )
577
578#define CONFIGURE_MEMORY_FOR_POSIX_KEYS(_keys) \
579  ((_keys) * \
580   ( sizeof(POSIX_Keys_Control) + CONFIGURE_OBJECT_TABLE_STUFF ) )
581
582#define CONFIGURE_MEMORY_FOR_POSIX_TIMERS(_timers) \
583  ((_timers) * \
584   ( 0 ) )
585
586#define CONFIGURE_MEMORY_FOR_POSIX_QUEUED_SIGNALS(_queued_signals) \
587  ((_queued_signals) * \
588   ( sizeof(POSIX_signals_Siginfo_node) + CONFIGURE_OBJECT_TABLE_STUFF ) )
589
590#define CONFIGURE_MEMORY_FOR_POSIX_MESSAGE_QUEUES(_message_queues) \
591  ((_message_queues) * \
592   ( sizeof( POSIX_Message_queue_Control) + \
593    CONFIGURE_OBJECT_TABLE_STUFF + \
594    NAME_MAX ) )
595#define CONFIGURE_MEMORY_FOR_POSIX_SEMAPHORES(_semaphores) \
596  ((_semaphores) * \
597   ( sizeof( POSIX_Semaphore_Control) + \
598    CONFIGURE_OBJECT_TABLE_STUFF + \
599    NAME_MAX ) )
600
601#define CONFIGURE_MEMORY_FOR_POSIX \
602  ( \
603    CONFIGURE_MEMORY_FOR_POSIX_MUTEXES( CONFIGURE_MAXIMUM_POSIX_MUTEXES ) + \
604    CONFIGURE_MEMORY_FOR_POSIX_CONDITION_VARIABLES( \
605        CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES ) + \
606    CONFIGURE_MEMORY_FOR_POSIX_KEYS( CONFIGURE_MAXIMUM_POSIX_KEYS ) + \
607    CONFIGURE_MEMORY_FOR_POSIX_QUEUED_SIGNALS( \
608        CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS ) + \
609    CONFIGURE_MEMORY_FOR_POSIX_MESSAGE_QUEUES( \
610        CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES ) + \
611    CONFIGURE_MEMORY_FOR_POSIX_SEMAPHORES( \
612        CONFIGURE_MAXIMUM_POSIX_SEMAPHORES ) + \
613    (CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE) \
614   )
615
616
617#else
618
619#define CONFIGURE_MAXIMUM_POSIX_THREADS         0
620#define CONFIGURE_MEMORY_PER_TASK_FOR_POSIX_API 0
621#define CONFIGURE_MEMORY_FOR_POSIX              0
622
623
624#endif    /* RTEMS_POSIX_API */
625
626#ifndef CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE
627#define CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE    0
628#endif
629
630/*
631 *  ITRON API Configuration Parameters
632 */
633
634#ifdef RTEMS_ITRON_API
635
636#include <rtems/itron.h>
637#include <rtems/itron/config.h>
638#include <rtems/itron/eventflags.h>
639#include <rtems/itron/fmempool.h>
640#include <rtems/itron/mbox.h>
641#include <rtems/itron/msgbuffer.h>
642#include <rtems/itron/port.h>
643#include <rtems/itron/semaphore.h>
644#include <rtems/itron/task.h>
645#include <rtems/itron/vmempool.h>
646
647#ifndef CONFIGURE_MAXIMUM_ITRON_TASKS
648#define CONFIGURE_MAXIMUM_ITRON_TASKS      0
649#endif
650
651#ifndef CONFIGURE_MAXIMUM_ITRON_SEMAPHORES
652#define CONFIGURE_MAXIMUM_ITRON_SEMAPHORES   0
653#endif
654
655#ifndef CONFIGURE_MAXIMUM_ITRON_EVENTFLAGS
656#define CONFIGURE_MAXIMUM_ITRON_EVENTFLAGS   0
657#endif
658
659#ifndef CONFIGURE_MAXIMUM_ITRON_MAILBOXES
660#define CONFIGURE_MAXIMUM_ITRON_MAILBOXES   0
661#endif
662
663#ifndef CONFIGURE_MAXIMUM_ITRON_MESSAGE_BUFFERS
664#define CONFIGURE_MAXIMUM_ITRON_MESSAGE_BUFFERS   0
665#endif
666
667#ifndef CONFIGURE_MAXIMUM_ITRON_PORTS
668#define CONFIGURE_MAXIMUM_ITRON_PORTS   0
669#endif
670
671#ifndef CONFIGURE_MAXIMUM_ITRON_MEMORY_POOLS
672#define CONFIGURE_MAXIMUM_ITRON_MEMORY_POOLS   0
673#endif
674
675#ifndef CONFIGURE_MAXIMUM_ITRON_FIXED_MEMORY_POOLS
676#define CONFIGURE_MAXIMUM_ITRON_FIXED_MEMORY_POOLS   0
677#endif
678
679#ifdef CONFIGURE_ITRON_INIT_TASK_TABLE
680
681#ifdef CONFIGURE_ITRON_HAS_OWN_INIT_TASK_TABLE
682
683/*
684 *  The user is defining their own table information and setting the
685 *  appropriate variables for the ITRON Initialization Task Table.
686 */
687
688#else
689
690#ifndef CONFIGURE_ITRON_INIT_TASK_ENTRY_POINT
691#define CONFIGURE_ITRON_INIT_TASK_ENTRY_POINT   ITRON_Init
692#endif
693
694#ifndef CONFIGURE_ITRON_INIT_TASK_ATTRIBUTES
695#define CONFIGURE_ITRON_INIT_TASK_ATTRIBUTES    TA_HLNG
696#endif
697
698#ifndef CONFIGURE_ITRON_INIT_TASK_PRIORITY
699#define CONFIGURE_ITRON_INIT_TASK_PRIORITY      1
700#endif
701
702#ifndef CONFIGURE_ITRON_INIT_TASK_STACK_SIZE
703#define CONFIGURE_ITRON_INIT_TASK_STACK_SIZE    RTEMS_MINIMUM_STACK_SIZE
704#endif
705
706#ifdef CONFIGURE_INIT
707itron_initialization_tasks_table ITRON_Initialization_tasks[] = {
708  { 1,                                    /* ID */
709    { (VP) 0,                                /* exinfo */
710      CONFIGURE_ITRON_INIT_TASK_ATTRIBUTES,  /* task attributes */
711      CONFIGURE_ITRON_INIT_TASK_ENTRY_POINT, /* task start address */
712      CONFIGURE_ITRON_INIT_TASK_PRIORITY,    /* initial task priority */
713      CONFIGURE_ITRON_INIT_TASK_STACK_SIZE   /* stack size */
714    }
715  }
716};
717#endif
718
719#define CONFIGURE_ITRON_INIT_TASK_TABLE_NAME ITRON_Initialization_tasks
720
721#define CONFIGURE_ITRON_INIT_TASK_TABLE_SIZE \
722  sizeof(CONFIGURE_ITRON_INIT_TASK_TABLE_NAME) / \
723      sizeof(itron_initialization_tasks_table)
724
725#endif    /* CONFIGURE_ITRON_HAS_OWN_INIT_TASK_TABLE */
726
727#else     /* CONFIGURE_ITRON_INIT_TASK_TABLE */
728
729#define CONFIGURE_ITRON_INIT_TASK_TABLE_NAME NULL
730#define CONFIGURE_ITRON_INIT_TASK_TABLE_SIZE 0
731
732#endif
733
734#define CONFIGURE_MEMORY_PER_TASK_FOR_ITRON_API \
735  ( \
736    sizeof (ITRON_API_Control) \
737  )
738
739#define CONFIGURE_MEMORY_FOR_ITRON_SEMAPHORES(_semaphores) \
740  ((_semaphores) * \
741   ( sizeof(ITRON_Semaphore_Control) + CONFIGURE_OBJECT_TABLE_STUFF ) )
742
743#define CONFIGURE_MEMORY_FOR_ITRON_EVENTFLAGS(_eventflags) \
744  ((_eventflags) * \
745   ( sizeof(ITRON_Eventflags_Control) + CONFIGURE_OBJECT_TABLE_STUFF ) )
746
747#define CONFIGURE_MEMORY_FOR_ITRON_MAILBOXES(_mailboxes) \
748  ((_mailboxes) * \
749   ( sizeof(ITRON_Mailbox_Control) + CONFIGURE_OBJECT_TABLE_STUFF ) )
750
751#define CONFIGURE_MEMORY_FOR_ITRON_MESSAGE_BUFFERS(_message_buffers) \
752  ((_message_buffers) * \
753   ( sizeof(ITRON_Message_buffer_Control) + CONFIGURE_OBJECT_TABLE_STUFF ) )
754
755#define CONFIGURE_MEMORY_FOR_ITRON_PORTS(_ports) \
756  ((_ports) * \
757   ( sizeof(ITRON_Port_Control) + CONFIGURE_OBJECT_TABLE_STUFF ) )
758
759#define CONFIGURE_MEMORY_FOR_ITRON_MEMORY_POOLS(_memory_pools) \
760  ((_memory_pools) * \
761   (sizeof(ITRON_Variable_memory_pool_Control) + CONFIGURE_OBJECT_TABLE_STUFF))
762
763#define CONFIGURE_MEMORY_FOR_ITRON_FIXED_MEMORY_POOLS(_fixed_memory_pools) \
764  ((_fixed_memory_pools) * \
765   ( sizeof(ITRON_Fixed_memory_pool_Control) + CONFIGURE_OBJECT_TABLE_STUFF ) )
766
767#ifndef CONFIGURE_ITRON_INIT_TASK_STACK_SIZE
768#define CONFIGURE_ITRON_INIT_TASK_STACK_SIZE (RTEMS_MINIMUM_STACK_SIZE * 2)
769#endif
770
771
772#define CONFIGURE_MEMORY_FOR_ITRON \
773  ( \
774    CONFIGURE_MEMORY_FOR_ITRON_SEMAPHORES( \
775        CONFIGURE_MAXIMUM_ITRON_SEMAPHORES ) + \
776    CONFIGURE_MEMORY_FOR_ITRON_EVENTFLAGS( \
777        CONFIGURE_MAXIMUM_ITRON_EVENTFLAGS ) + \
778    CONFIGURE_MEMORY_FOR_ITRON_MAILBOXES( \
779        CONFIGURE_MAXIMUM_ITRON_MAILBOXES ) + \
780    CONFIGURE_MEMORY_FOR_ITRON_MESSAGE_BUFFERS( \
781        CONFIGURE_MAXIMUM_ITRON_MESSAGE_BUFFERS ) + \
782    CONFIGURE_MEMORY_FOR_ITRON_PORTS( \
783        CONFIGURE_MAXIMUM_ITRON_PORTS ) + \
784    CONFIGURE_MEMORY_FOR_ITRON_MEMORY_POOLS( \
785        CONFIGURE_MAXIMUM_ITRON_MEMORY_POOLS ) + \
786    CONFIGURE_MEMORY_FOR_ITRON_FIXED_MEMORY_POOLS( \
787        CONFIGURE_MAXIMUM_ITRON_FIXED_MEMORY_POOLS ) + \
788    CONFIGURE_ITRON_INIT_TASK_STACK_SIZE \
789   )
790
791
792#else
793
794#define CONFIGURE_MAXIMUM_ITRON_TASKS               0
795#define CONFIGURE_MAXIMUM_ITRON_SEMAPHORES          0
796#define CONFIGURE_MAXIMUM_ITRON_EVENTFLAGS          0
797#define CONFIGURE_MAXIMUM_ITRON_MAILBOXES           0
798#define CONFIGURE_MAXIMUM_ITRON_MESSAGE_BUFFERS     0
799#define CONFIGURE_MAXIMUM_ITRON_PORTS               0
800#define CONFIGURE_MAXIMUM_ITRON_MEMORY_POOLS        0
801#define CONFIGURE_MAXIMUM_ITRON_FIXED_MEMORY_POOLS  0
802#define CONFIGURE_MEMORY_PER_TASK_FOR_ITRON_API     0
803#define CONFIGURE_MEMORY_FOR_ITRON                  0
804
805#endif    /* RTEMS_ITRON_API */
806
807
808/*
809 *  Calculate the RAM size based on the maximum number of objects configured.
810 */
811
812#ifndef CONFIGURE_EXECUTIVE_RAM_SIZE
813
814#define CONFIGURE_OBJECT_TABLE_STUFF \
815  ( sizeof(Objects_Control *) + sizeof(rtems_name *) + sizeof(rtems_name) )
816
817#if defined(RTEMS_NEWLIB)
818#include <reent.h>
819
820#define CONFIGURE_MEMORY_PER_TASK_FOR_LIBC_REENTRANCY sizeof(struct _reent)
821#else
822#define CONFIGURE_MEMORY_PER_TASK_FOR_LIBC_REENTRANCY 0
823#endif
824
825#define CONFIGURE_MEMORY_FOR_TASKS(_tasks) \
826  (((_tasks) + 1 ) * \
827   ((sizeof(Thread_Control) + CONTEXT_FP_SIZE + \
828      STACK_MINIMUM_SIZE + sizeof( RTEMS_API_Control ) + \
829      CONFIGURE_MEMORY_PER_TASK_FOR_POSIX_API + \
830      CONFIGURE_MEMORY_PER_TASK_FOR_ITRON_API + \
831      CONFIGURE_MEMORY_PER_TASK_FOR_LIBC_REENTRANCY + \
832      CONFIGURE_OBJECT_TABLE_STUFF)) \
833  )
834
835#define CONFIGURE_MEMORY_FOR_TIMERS(_timers) \
836  ((_timers) * ( sizeof(Timer_Control) + CONFIGURE_OBJECT_TABLE_STUFF ) )
837
838#define CONFIGURE_MEMORY_FOR_SEMAPHORES(_semaphores) \
839  ((_semaphores) * \
840   ( sizeof(Semaphore_Control) + CONFIGURE_OBJECT_TABLE_STUFF ) )
841
842#define CONFIGURE_MEMORY_FOR_MESSAGE_QUEUES(_queues) \
843  ( (_queues) * \
844    ( sizeof(Message_queue_Control) + CONFIGURE_OBJECT_TABLE_STUFF ) )
845
846#define CONFIGURE_MEMORY_FOR_PARTITIONS(_partitions) \
847  ( (_partitions) * \
848    ( sizeof(Partition_Control) + CONFIGURE_OBJECT_TABLE_STUFF ) )
849
850#define CONFIGURE_MEMORY_FOR_REGIONS(_regions) \
851  ( (_regions) * \
852    ( sizeof(Region_Control) + CONFIGURE_OBJECT_TABLE_STUFF ) )
853
854#define CONFIGURE_MEMORY_FOR_PORTS(_ports) \
855  ( (_ports) * \
856    ( sizeof(Dual_ported_memory_Control) + CONFIGURE_OBJECT_TABLE_STUFF ) )
857
858#define CONFIGURE_MEMORY_FOR_PERIODS(_periods) \
859  ( (_periods) * \
860    ( sizeof(Rate_monotonic_Control) + CONFIGURE_OBJECT_TABLE_STUFF ) )
861
862#define CONFIGURE_MEMORY_FOR_USER_EXTENSIONS(_extensions) \
863  ( (_extensions) * \
864    ( sizeof(Extension_Control) + CONFIGURE_OBJECT_TABLE_STUFF ) )
865
866#define CONFIGURE_MEMORY_FOR_DEVICES(_devices) \
867  (((_devices) + 1) * ( sizeof(rtems_driver_name_t) ) )
868
869#ifdef CONFIGURE_MP_APPLICATION
870
871#ifndef CONFIGURE_HAS_OWN_MULTIPROCESING_TABLE
872
873#define CONFIGURE_MEMORY_FOR_PROXIES(_proxies) \
874  ( ((_proxies) + 1) * ( sizeof(Thread_Proxy_control) )  )
875
876#define CONFIGURE_MEMORY_FOR_GLOBAL_OBJECTS(_global_objects) \
877  ((_global_objects)  * ( sizeof(Objects_MP_Control) )  )
878
879#define CONFIGURE_MEMORY_FOR_MP \
880  ( CONFIGURE_MEMORY_FOR_PROXIES(CONFIGURE_MP_MAXIMUM_PROXIES) + \
881    CONFIGURE_MEMORY_FOR_GLOBAL_OBJECTS(CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS) + \
882    CONFIGURE_MEMORY_FOR_TASKS(1) \
883  )
884
885#endif  /* CONFIGURE_HAS_OWN_MULTIPROCESING_TABLE */
886
887#else
888
889#define CONFIGURE_MEMORY_FOR_MP  0
890
891#endif
892
893#ifndef CONFIGURE_MEMORY_OVERHEAD
894#define CONFIGURE_MEMORY_OVERHEAD 0
895#endif
896
897#ifndef CONFIGURE_EXTRA_TASK_STACKS
898#define CONFIGURE_EXTRA_TASK_STACKS 0
899#endif
900
901#define CONFIGURE_API_MUTEX_MEMORY \
902  ( (1) * \
903    ( sizeof(API_Mutex_Control) + CONFIGURE_OBJECT_TABLE_STUFF ) \
904  )
905
906#define CONFIGURE_MEMORY_FOR_SYSTEM_OVERHEAD \
907  ( CONFIGURE_MEMORY_FOR_TASKS(1) +    /* IDLE */ \
908    (256 * 12) +                       /* Ready chains */ \
909    256        +                       /* name/ptr table overhead */ \
910    CONFIGURE_INTERRUPT_STACK_MEMORY + /* interrupt stack */ \
911    CONFIGURE_API_MUTEX_MEMORY         /* allocation mutex */ \
912  )
913
914/*
915 *  Now account for any extra memory that initialization tasks or threads
916 *  may have requested.
917 */
918
919#ifdef RTEMS_POSIX_API
920#define CONFIGURE_INITIALIZATION_THREADS_STACKS_POSIX_PART \
921    (CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE - RTEMS_MINIMUM_STACK_SIZE)
922#else
923#define CONFIGURE_INITIALIZATION_THREADS_STACKS_POSIX_PART 0
924#endif
925#ifdef RTEMS_ITRON_API
926#define CONFIGURE_INITIALIZATION_THREADS_STACKS_ITRON_PART \
927    (CONFIGURE_ITRON_INIT_TASK_STACK_SIZE - RTEMS_MINIMUM_STACK_SIZE)
928#else
929#define CONFIGURE_INITIALIZATION_THREADS_STACKS_ITRON_PART 0
930#endif
931
932#define CONFIGURE_INITIALIZATION_THREADS_STACKS \
933   ((CONFIGURE_INIT_TASK_STACK_SIZE - RTEMS_MINIMUM_STACK_SIZE) + \
934    CONFIGURE_INITIALIZATION_THREADS_STACKS_POSIX_PART + \
935    CONFIGURE_INITIALIZATION_THREADS_STACKS_ITRON_PART)
936
937#define CONFIGURE_EXECUTIVE_RAM_SIZE \
938(( CONFIGURE_MEMORY_FOR_POSIX + \
939   CONFIGURE_MEMORY_FOR_ITRON + \
940   CONFIGURE_MEMORY_FOR_TASKS(CONFIGURE_MAXIMUM_TASKS + \
941      CONFIGURE_MAXIMUM_POSIX_THREADS + CONFIGURE_MAXIMUM_ADA_TASKS + \
942      CONFIGURE_MAXIMUM_ITRON_TASKS ) + \
943   CONFIGURE_INITIALIZATION_THREADS_STACKS + \
944   CONFIGURE_MEMORY_FOR_TIMERS(CONFIGURE_MAXIMUM_TIMERS) + \
945   CONFIGURE_MEMORY_FOR_SEMAPHORES(CONFIGURE_MAXIMUM_SEMAPHORES + \
946     CONFIGURE_LIBIO_SEMAPHORES + CONFIGURE_TERMIOS_SEMAPHORES) + \
947   CONFIGURE_MEMORY_FOR_MESSAGE_QUEUES(CONFIGURE_MAXIMUM_MESSAGE_QUEUES) + \
948   CONFIGURE_MEMORY_FOR_PARTITIONS(CONFIGURE_MAXIMUM_PARTITIONS) + \
949   CONFIGURE_MEMORY_FOR_REGIONS( \
950      CONFIGURE_MAXIMUM_REGIONS + CONFIGURE_MALLOC_REGION ) + \
951   CONFIGURE_MEMORY_FOR_PORTS(CONFIGURE_MAXIMUM_PORTS) + \
952   CONFIGURE_MEMORY_FOR_PERIODS(CONFIGURE_MAXIMUM_PERIODS) + \
953   CONFIGURE_MEMORY_FOR_USER_EXTENSIONS( \
954      CONFIGURE_MAXIMUM_USER_EXTENSIONS + CONFIGURE_NEWLIB_EXTENSION + \
955      CONFIGURE_STACK_CHECKER_EXTENSION ) + \
956   CONFIGURE_MEMORY_FOR_DEVICES(CONFIGURE_MAXIMUM_DEVICES) + \
957   CONFIGURE_MEMORY_FOR_MP + \
958   CONFIGURE_MEMORY_FOR_SYSTEM_OVERHEAD + \
959   (((CONFIGURE_MEMORY_OVERHEAD)+1) * 1024) + \
960   (CONFIGURE_EXTRA_TASK_STACKS) + (CONFIGURE_ADA_TASKS_STACK) \
961) & 0xfffffc00)
962#endif
963
964#ifdef CONFIGURE_GNAT_RTEMS
965#define CONFIGURE_GNAT_MUTEXES 10
966#define CONFIGURE_GNAT_KEYS    1
967
968/* 20 are required to run all tests in the ACVC */
969#ifndef CONFIGURE_MAXIMUM_ADA_TASKS
970#define CONFIGURE_MAXIMUM_ADA_TASKS  20
971#endif
972
973/* This is the number of non-Ada tasks which invoked Ada code. */
974#ifndef CONFIGURE_MAXIMUM_FAKE_ADA_TASKS
975#define CONFIGURE_MAXIMUM_FAKE_ADA_TASKS 0
976#endif
977
978/* Ada tasks are allocated twice the minimum stack space */
979#define CONFIGURE_ADA_TASKS_STACK \
980  (CONFIGURE_MAXIMUM_ADA_TASKS * (RTEMS_MINIMUM_STACK_SIZE + (6 * 1024)))
981
982#else
983#define CONFIGURE_GNAT_MUTEXES           0
984#define CONFIGURE_GNAT_KEYS              0
985#define CONFIGURE_MAXIMUM_ADA_TASKS      0
986#define CONFIGURE_MAXIMUM_FAKE_ADA_TASKS 0
987#define CONFIGURE_ADA_TASKS_STACK        0
988#endif
989
990
991#ifdef CONFIGURE_INIT
992
993rtems_api_configuration_table Configuration_RTEMS_API = {
994  CONFIGURE_MAXIMUM_TASKS,
995  CONFIGURE_MAXIMUM_TIMERS,
996  CONFIGURE_MAXIMUM_SEMAPHORES + CONFIGURE_LIBIO_SEMAPHORES +
997    CONFIGURE_TERMIOS_SEMAPHORES,
998  CONFIGURE_MAXIMUM_MESSAGE_QUEUES,
999  CONFIGURE_MAXIMUM_PARTITIONS,
1000  CONFIGURE_MAXIMUM_REGIONS + CONFIGURE_MALLOC_REGION,
1001  CONFIGURE_MAXIMUM_PORTS,
1002  CONFIGURE_MAXIMUM_PERIODS,
1003  CONFIGURE_INIT_TASK_TABLE_SIZE,
1004  CONFIGURE_INIT_TASK_TABLE
1005};
1006
1007#ifdef RTEMS_POSIX_API
1008posix_api_configuration_table Configuration_POSIX_API = {
1009  CONFIGURE_MAXIMUM_POSIX_THREADS + CONFIGURE_MAXIMUM_ADA_TASKS,
1010  CONFIGURE_MAXIMUM_POSIX_MUTEXES + CONFIGURE_GNAT_MUTEXES +
1011    CONFIGURE_MAXIMUM_ADA_TASKS + CONFIGURE_MAXIMUM_FAKE_ADA_TASKS,
1012  CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES +
1013    CONFIGURE_MAXIMUM_ADA_TASKS + CONFIGURE_MAXIMUM_FAKE_ADA_TASKS,
1014  CONFIGURE_MAXIMUM_POSIX_KEYS + CONFIGURE_GNAT_KEYS,
1015  CONFIGURE_MAXIMUM_POSIX_TIMERS,
1016  CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS,
1017  CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES,
1018  CONFIGURE_MAXIMUM_POSIX_SEMAPHORES,
1019  CONFIGURE_POSIX_INIT_THREAD_TABLE_SIZE,
1020  CONFIGURE_POSIX_INIT_THREAD_TABLE_NAME
1021};
1022#endif
1023
1024#ifdef RTEMS_ITRON_API
1025itron_api_configuration_table Configuration_ITRON_API = {
1026  CONFIGURE_MAXIMUM_ITRON_TASKS,
1027  CONFIGURE_MAXIMUM_ITRON_SEMAPHORES,
1028  CONFIGURE_MAXIMUM_ITRON_EVENTFLAGS,
1029  CONFIGURE_MAXIMUM_ITRON_MAILBOXES,
1030  CONFIGURE_MAXIMUM_ITRON_MESSAGE_BUFFERS,
1031  CONFIGURE_MAXIMUM_ITRON_PORTS,
1032  CONFIGURE_MAXIMUM_ITRON_MEMORY_POOLS,
1033  CONFIGURE_MAXIMUM_ITRON_FIXED_MEMORY_POOLS,
1034  CONFIGURE_ITRON_INIT_TASK_TABLE_SIZE,
1035  CONFIGURE_ITRON_INIT_TASK_TABLE_NAME
1036};
1037#endif
1038
1039rtems_configuration_table Configuration = {
1040  CONFIGURE_EXECUTIVE_RAM_WORK_AREA,
1041  CONFIGURE_EXECUTIVE_RAM_SIZE,
1042  CONFIGURE_MAXIMUM_USER_EXTENSIONS + CONFIGURE_NEWLIB_EXTENSION +
1043      CONFIGURE_STACK_CHECKER_EXTENSION,
1044  CONFIGURE_MICROSECONDS_PER_TICK,
1045  CONFIGURE_TICKS_PER_TIMESLICE,
1046  CONFIGURE_MAXIMUM_DEVICES,
1047  CONFIGURE_MAXIMUM_DRIVERS,
1048  CONFIGURE_NUMBER_OF_DRIVERS,               /* number of device drivers */
1049  Device_drivers,                            /* pointer to driver table */
1050  CONFIGURE_NUMBER_OF_INITIAL_EXTENSIONS,    /* number of initial extensions */
1051  CONFIGURE_INITIAL_EXTENSION_TABLE,         /* pointer to initial extensions */
1052  CONFIGURE_MULTIPROCESSING_TABLE,           /* pointer to MP config table */
1053  &Configuration_RTEMS_API,                  /* pointer to RTEMS API config */
1054#ifdef RTEMS_POSIX_API
1055  &Configuration_POSIX_API,                  /* pointer to POSIX API config */
1056#else
1057  NULL,                                      /* pointer to POSIX API config */
1058#endif
1059#ifdef RTEMS_ITRON_API
1060  &Configuration_ITRON_API                   /* pointer to ITRON API config */
1061#else
1062  NULL                                       /* pointer to ITRON API config */
1063#endif
1064};
1065#endif
1066
1067#endif /* CONFIGURE_HAS_OWN_CONFIGURATION_TABLE */
1068
1069#ifdef __cplusplus
1070}
1071#endif
1072
1073/*
1074 *  Some warnings and error checking
1075 */
1076
1077/*
1078 *  Make sure a task/thread of some sort is configured
1079 */
1080
1081#if (CONFIGURE_MAXIMUM_TASKS == 0) && \
1082    (CONFIGURE_MAXIMUM_POSIX_THREADS == 0) && \
1083    (CONFIGURE_MAXIMUM_ADA_TASKS == 0) &&  \
1084    (CONFIGURE_MAXIMUM_ITRON_TASKS == 0)
1085#error "CONFIGURATION ERROR: No tasks or threads configured!!"
1086#endif
1087
1088/*
1089 *  Make sure at least one of the initialization task/thread
1090 *  tables was defined.
1091 */
1092
1093#if !defined(CONFIGURE_RTEMS_INIT_TASKS_TABLE) && \
1094    !defined(CONFIGURE_POSIX_INIT_THREAD_TABLE) && \
1095    !defined(CONFIGURE_ITRON_INIT_TASK_TABLE)
1096#error "CONFIGURATION ERROR: No initialization tasks or threads configured!!"
1097#endif
1098
1099#endif
1100/* end of include file */
Note: See TracBrowser for help on using the repository browser.