1 | /** |
---|
2 | * @file rtems/rtems/config.h |
---|
3 | * |
---|
4 | * @defgroup ClassicConfig Configuration |
---|
5 | * |
---|
6 | * @ingroup ClassicRTEMS |
---|
7 | * @brief Configuration Table |
---|
8 | * |
---|
9 | * This include file contains the table of user defined configuration |
---|
10 | * parameters specific for the RTEMS API. |
---|
11 | */ |
---|
12 | |
---|
13 | /* COPYRIGHT (c) 1989-2013. |
---|
14 | * On-Line Applications Research Corporation (OAR). |
---|
15 | * |
---|
16 | * The license and distribution terms for this file may be |
---|
17 | * found in the file LICENSE in this distribution or at |
---|
18 | * http://www.rtems.org/license/LICENSE. |
---|
19 | */ |
---|
20 | |
---|
21 | #ifndef _RTEMS_RTEMS_CONFIG_H |
---|
22 | #define _RTEMS_RTEMS_CONFIG_H |
---|
23 | |
---|
24 | #include <rtems/rtems/types.h> |
---|
25 | #include <rtems/rtems/tasks.h> |
---|
26 | |
---|
27 | #ifdef __cplusplus |
---|
28 | extern "C" { |
---|
29 | #endif |
---|
30 | |
---|
31 | /** |
---|
32 | * @defgroup ClassicConfig Configuration |
---|
33 | * |
---|
34 | * @ingroup ClassicRTEMS |
---|
35 | * |
---|
36 | * This encapsulates functionality related to the application's configuration |
---|
37 | * of the Classic API including the maximum number of each class of objects. |
---|
38 | */ |
---|
39 | /**@{*/ |
---|
40 | |
---|
41 | /** |
---|
42 | * The following records define the Configuration Table. The |
---|
43 | * information contained in this table is required in all |
---|
44 | * RTEMS systems, whether single or multiprocessor. This |
---|
45 | * table primarily defines the following: |
---|
46 | * |
---|
47 | * + required number of each object type |
---|
48 | */ |
---|
49 | typedef struct { |
---|
50 | |
---|
51 | /** |
---|
52 | * This field contains the number of Classic API Initialization |
---|
53 | * Tasks which are configured for this application. |
---|
54 | */ |
---|
55 | uint32_t number_of_initialization_tasks; |
---|
56 | |
---|
57 | /** |
---|
58 | * This field is the set of Classic API Initialization |
---|
59 | * Tasks which are configured for this application. |
---|
60 | */ |
---|
61 | rtems_initialization_tasks_table *User_initialization_tasks_table; |
---|
62 | } rtems_api_configuration_table; |
---|
63 | |
---|
64 | /** |
---|
65 | * @brief RTEMS API Configuration Table |
---|
66 | * |
---|
67 | * This is the RTEMS API Configuration Table expected to be generated |
---|
68 | * by confdefs.h. |
---|
69 | */ |
---|
70 | extern rtems_api_configuration_table Configuration_RTEMS_API; |
---|
71 | |
---|
72 | /**@}*/ |
---|
73 | |
---|
74 | uint32_t rtems_configuration_get_maximum_barriers( void ); |
---|
75 | |
---|
76 | uint32_t rtems_configuration_get_maximum_message_queues( void ); |
---|
77 | |
---|
78 | uint32_t rtems_configuration_get_maximum_partitions( void ); |
---|
79 | |
---|
80 | uint32_t rtems_configuration_get_maximum_periods( void ); |
---|
81 | |
---|
82 | uint32_t rtems_configuration_get_maximum_ports( void ); |
---|
83 | |
---|
84 | uint32_t rtems_configuration_get_maximum_regions( void ); |
---|
85 | |
---|
86 | uint32_t rtems_configuration_get_maximum_semaphores( void ); |
---|
87 | |
---|
88 | uint32_t rtems_configuration_get_maximum_timers( void ); |
---|
89 | |
---|
90 | uint32_t rtems_configuration_get_maximum_tasks( void ); |
---|
91 | |
---|
92 | #ifdef __cplusplus |
---|
93 | } |
---|
94 | #endif |
---|
95 | |
---|
96 | /**@}*/ |
---|
97 | |
---|
98 | #endif |
---|
99 | /* end of include file */ |
---|