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

4.104.114.84.95
Last change on this file since d964f79 was d964f79, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/02/04 at 09:56:13

Add doxygen preamble.

  • Property mode set to 100644
File size: 3.8 KB
RevLine 
[d964f79]1/**
2 * @file  rtems.h
3 */
4 
5/*
[ac7d5ef0]6 *  This include file contains information about RTEMS executive that
7 *  is required by the application and is CPU independent.  It includes
8 *  two (2) CPU dependent files to tailor its data structures for a
9 *  particular processor.
10 *
[08311cc3]11 *  COPYRIGHT (c) 1989-1999.
[ac7d5ef0]12 *  On-Line Applications Research Corporation (OAR).
13 *
[98e4ebf5]14 *  The license and distribution terms for this file may be
15 *  found in the file LICENSE in this distribution or at
[277cc95]16 *  http://www.rtems.com/license/LICENSE.
[ac7d5ef0]17 *
18 *  $Id$
19 */
20
21#ifndef __RTEMS_RTEMS_GENERIC_h
22#define __RTEMS_RTEMS_GENERIC_h
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
[1a8fde6c]28/*
29 *  Unless told otherwise, the RTEMS include files will hide some stuff
30 *  from normal application code.  Defining this crosses a boundary which
31 *  is undesirable since it means your application is using RTEMS features
[50f32b11]32 *  which are not included in the formally defined and supported API.
33 *  Define this at your own risk.
[1a8fde6c]34 */
35
[7a55888]36#if (!defined(__RTEMS_VIOLATE_KERNEL_VISIBILITY__)) && (!defined(__RTEMS_INSIDE__))
[1a8fde6c]37#define __RTEMS_APPLICATION__
38#endif
39
[ac7d5ef0]40#include <rtems/system.h>
[3a4ae6c]41#include <rtems/rtems/status.h>
42#include <rtems/rtems/types.h>
[3235ad9]43
[3a4ae6c]44#include <rtems/config.h>
[ac7d5ef0]45#include <rtems/init.h>
[07f0442]46#include <rtems/rtems/options.h>
[3a4ae6c]47#include <rtems/rtems/tasks.h>
48#include <rtems/rtems/intr.h>
[cf1f72e]49#include <rtems/rtems/cache.h>
[3a4ae6c]50#include <rtems/rtems/clock.h>
[ac7d5ef0]51#include <rtems/extension.h>
[3a4ae6c]52#include <rtems/rtems/timer.h>
53#include <rtems/rtems/sem.h>
54#include <rtems/rtems/message.h>
55#include <rtems/rtems/event.h>
56#include <rtems/rtems/signal.h>
57#include <rtems/rtems/event.h>
58#include <rtems/rtems/part.h>
59#include <rtems/rtems/region.h>
60#include <rtems/rtems/dpmem.h>
[ac7d5ef0]61#include <rtems/io.h>
62#include <rtems/fatal.h>
[3a4ae6c]63#include <rtems/rtems/ratemon.h>
[97e2729d]64#if defined(RTEMS_MULTIPROCESSING)
[3a4ae6c]65#include <rtems/rtems/mp.h>
[97e2729d]66#endif
[ac7d5ef0]67
[3a4ae6c]68#include <rtems/rtems/support.h>
[5e9b32b]69#include <rtems/score/sysstate.h>
[ac7d5ef0]70
71#define RTEMS_HAS_HARDWARE_FP CPU_HARDWARE_FP
72
[3a4ae6c]73/*
74 *  The following define the constants which may be used in name searches.
75 */
[50f32b11]76
[3a4ae6c]77#define RTEMS_SEARCH_ALL_NODES   OBJECTS_SEARCH_ALL_NODES
78#define RTEMS_SEARCH_OTHER_NODES OBJECTS_SEARCH_OTHER_NODES
79#define RTEMS_SEARCH_LOCAL_NODE  OBJECTS_SEARCH_LOCAL_NODE
80#define RTEMS_WHO_AM_I           OBJECTS_WHO_AM_I
[50f32b11]81
[3a4ae6c]82/*
83 * Parameters and return id's for _Objects_Get_next
84 */
[50f32b11]85
[5d3e539]86#define RTEMS_OBJECT_ID_INITIAL_INDEX        OBJECTS_ID_INITIAL_INDEX
87#define RTEMS_OBJECT_ID_FINAL_INDEX          OBJECTS_ID_FINAL_INDEX
[90015e7f]88#define RTEMS_OBJECT_ID_INITIAL(api, class, node) OBJECTS_ID_INITIAL(api, class, node)
[50f32b11]89
[5d3e539]90#define RTEMS_OBJECT_ID_FINAL                OBJECTS_ID_FINAL
[50f32b11]91
[3a4ae6c]92/*
93 *  The following constant defines the minimum stack size which every
94 *  thread must exceed.
95 */
96
97#define RTEMS_MINIMUM_STACK_SIZE  STACK_MINIMUM_SIZE
98
99/*
100 *  Constant for indefinite wait.  (actually an illegal interval)
101 */
102
103#define RTEMS_NO_TIMEOUT  WATCHDOG_NO_TIMEOUT
104
105/*
106 *  An MPCI must support packets of at least this size.
107 */
[50f32b11]108
[3a4ae6c]109#define RTEMS_MINIMUM_PACKET_SIZE  MP_PACKET_MINIMUM_PACKET_SIZE
[50f32b11]110
[3a4ae6c]111/*
[1d496f6]112 *  The following constant defines the number of uint32_t  's
[3a4ae6c]113 *  in a packet which must be converted to native format in a
114 *  heterogeneous system.  In packets longer than
[1d496f6]115 *  MP_PACKET_MINIMUN_HETERO_CONVERSION uint32_t  's, some of the "extra" data
[3a4ae6c]116 *  may a user message buffer which is not automatically endian swapped.
117 */
[50f32b11]118
[3a4ae6c]119#define RTEMS_MINIMUN_HETERO_CONVERSION  MP_PACKET_MINIMUN_HETERO_CONVERSION
120
[1e2e6fe0]121/*
122 *  rtems_object_id_to_name
123 *
[50f32b11]124 *  This directive returns the name associated with the specified
[1e2e6fe0]125 *  object ID.
126 *
127 *  Input parameters:
128 *    id   - message queue id
129 *
130 *  Output parameters:
131 *    *name            - user defined object name
132 *    RTEMS_SUCCESSFUL - if successful
133 *    error code       - if unsuccessful
134 */
135
136rtems_status_code rtems_object_id_to_name(
137  rtems_id      id,
138  rtems_name   *name
139);
140
[ac7d5ef0]141#ifdef __cplusplus
142}
143#endif
144
145#endif
146/* end of include file */
Note: See TracBrowser for help on using the repository browser.