source: rtems/cpukit/rtems/include/rtems.h @ ef36f7e2

4.115
Last change on this file since ef36f7e2 was ef36f7e2, checked in by Sebastian Huber <sebastian.huber@…>, on 07/23/13 at 12:38:38

rtems: Include <rtems/debug.h> in <rtems.h>

This header file is included indirectly via <rtems/rtems/region.h>.

  • Property mode set to 100644
File size: 6.1 KB
Line 
1/**
2 * @file
3 *
4 * @defgroup ClassicRTEMS RTEMS Classic API
5 *
6 * @brief RTEMS Classic API
7 *
8 * the Public Interface to the RTEMS Classic API
9 */
10
11/* COPYRIGHT (c) 1989-2008.
12 * On-Line Applications Research Corporation (OAR).
13 *
14 * The license and distribution terms for this file may be
15 * found in the file LICENSE in this distribution or at
16 * http://www.rtems.com/license/LICENSE.
17 */
18
19#ifndef _RTEMS_H
20#define _RTEMS_H
21
22/**
23 * @defgroup ClassicRTEMS RTEMS Classic API
24 *
25 * RTEMS Classic API definitions and modules.
26 */
27/**@{*/
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33#if (!defined(__RTEMS_VIOLATE_KERNEL_VISIBILITY__)) && \
34    (!defined(__RTEMS_INSIDE__))
35/**
36 * @brief Compiling RTEMS application macro.
37 *
38 * Unless told otherwise, the RTEMS include files will hide some stuff from
39 * normal application code.  Defining this crosses a boundary which is
40 * undesirable since it means your application is using RTEMS features which
41 * are not included in the formally defined and supported API.  Define this at
42 * your own risk.
43 */
44#define __RTEMS_APPLICATION__
45#endif
46
47#include <rtems/system.h>
48#include <rtems/rtems/status.h>
49#include <rtems/rtems/types.h>
50
51#include <rtems/config.h>
52#include <rtems/debug.h>
53#include <rtems/init.h>
54#include <rtems/rtems/options.h>
55#include <rtems/rtems/tasks.h>
56#include <rtems/rtems/intr.h>
57#include <rtems/rtems/barrier.h>
58#include <rtems/rtems/cache.h>
59#include <rtems/rtems/clock.h>
60#include <rtems/extension.h>
61#include <rtems/rtems/timer.h>
62#include <rtems/rtems/sem.h>
63#include <rtems/rtems/message.h>
64#include <rtems/rtems/event.h>
65#include <rtems/rtems/signal.h>
66#include <rtems/rtems/event.h>
67#include <rtems/rtems/object.h>
68#include <rtems/rtems/part.h>
69#include <rtems/rtems/region.h>
70#include <rtems/rtems/dpmem.h>
71#include <rtems/io.h>
72#include <rtems/fatal.h>
73#include <rtems/rtems/ratemon.h>
74#if defined(RTEMS_MULTIPROCESSING)
75#include <rtems/rtems/mp.h>
76#endif
77#include <rtems/rtems/smp.h>
78
79#include <rtems/rtems/support.h>
80#include <rtems/score/sysstate.h>
81
82/**
83 * @brief Returns the pointer to the RTEMS version string.
84 */
85const char *rtems_get_version_string(void);
86
87/**
88 * @brief Indicates whether this processor variant has hardware floating point
89 * support.
90 */
91#define RTEMS_HAS_HARDWARE_FP CPU_HARDWARE_FP
92
93/**********************************************************************
94 *      CONSTANTS WHICH MAY BE USED IN OBJECT NAME TO ID SEARCHES
95 **********************************************************************/
96
97/**
98 * @brief Indicates that a search is across all nodes.
99 */
100#define RTEMS_SEARCH_ALL_NODES   OBJECTS_SEARCH_ALL_NODES
101
102/**
103 * @brief Indicates that a search is across all nodes except the one the call
104 * is made from.
105 */
106#define RTEMS_SEARCH_OTHER_NODES OBJECTS_SEARCH_OTHER_NODES
107
108/**
109 * @brief Indicates that the search is to be restricted to the local node.
110 */
111#define RTEMS_SEARCH_LOCAL_NODE  OBJECTS_SEARCH_LOCAL_NODE
112
113/**
114 * @brief Indicates that the caller wants to obtain the name of the currently
115 * executing thread.
116 *
117 * This constant is only meaningful when obtaining the name of a task.
118 */
119#define RTEMS_WHO_AM_I           OBJECTS_WHO_AM_I
120
121/**********************************************************************
122 *        Parameters and return Id's for _Objects_Get_next
123 **********************************************************************/
124
125/**
126 * @brief Lowest valid index value for the index portion of an object
127 * identifier.
128 */
129#define RTEMS_OBJECT_ID_INITIAL_INDEX        OBJECTS_ID_INITIAL_INDEX
130
131/**
132 * @brief Maximum valid index value for the index portion of an object
133 * identifier.
134 */
135#define RTEMS_OBJECT_ID_FINAL_INDEX          OBJECTS_ID_FINAL_INDEX
136
137/**
138 * @brief Returns the identifier of the object with the lowest valid index
139 * value.
140 *
141 * The object is specified by the API @a _api, the object class @a _class and
142 * the node @a _node where the object resides.
143 */
144#define RTEMS_OBJECT_ID_INITIAL(_api, _class, _node) \
145   OBJECTS_ID_INITIAL(_api, _class, _node)
146
147/**
148 * @brief Maximum valid object identifier.
149 */
150#define RTEMS_OBJECT_ID_FINAL                OBJECTS_ID_FINAL
151
152/**
153 * @brief Minimum stack size which every thread must exceed.
154 *
155 * It is the minimum stack size recommended for use on this processor. This
156 * value is selected by the RTEMS developers conservatively to minimize the
157 * risk of blown stacks for most user applications. Using this constant when
158 * specifying the task stack size, indicates that the stack size will be at
159 * least RTEMS_MINIMUM_STACK_SIZE bytes in size. If the user configured minimum
160 * stack size is larger than the recommended minimum, then it will be used.
161 */
162#define RTEMS_MINIMUM_STACK_SIZE  STACK_MINIMUM_SIZE
163
164/**
165 * @brief Specifies that the task should be created with the configured minimum
166 * stack size.
167 *
168 * Using this constant when specifying the task stack size indicates that this
169 * task is to be created with a stack size of the minimum stack size that was
170 * configured by the application. If not explicitly configured by the
171 * application, the default configured minimum stack size is the processor
172 * dependent value RTEMS_MINIMUM_STACK_SIZE. Since this uses the configured
173 * minimum stack size value, you may get a stack size that is smaller or larger
174 * than the recommended minimum. This can be used to provide large stacks for
175 * all tasks on complex applications or small stacks on applications that are
176 * trying to conserve memory.
177 */
178#define RTEMS_CONFIGURED_MINIMUM_STACK_SIZE  0
179
180/**
181 * @brief Constant for indefinite wait.
182 *
183 * This is actually an illegal interval value.
184 */
185#define RTEMS_NO_TIMEOUT  WATCHDOG_NO_TIMEOUT
186
187/**
188 * @brief An MPCI must support packets of at least this size.
189 */
190#define RTEMS_MINIMUM_PACKET_SIZE  MP_PACKET_MINIMUM_PACKET_SIZE
191
192/**
193 * @brief Defines the count of @c uint32_t numbers in a packet which must be
194 * converted to native format in a heterogeneous system.
195 *
196 * In packets longer than this value, some of the extra data may be a user
197 * message buffer which is not automatically endian swapped.
198 */
199#define RTEMS_MINIMUN_HETERO_CONVERSION  MP_PACKET_MINIMUN_HETERO_CONVERSION
200
201#ifdef __cplusplus
202}
203#endif
204
205/**@}*/
206
207#endif
208/* end of include file */
Note: See TracBrowser for help on using the repository browser.