source: rtems/cpukit/rtems/include/rtems.h @ 0185851c

Last change on this file since 0185851c was 0185851c, checked in by Joel Sherrill <joel.sherrill@…>, on 08/08/08 at 15:56:13

2008-08-08 Joel Sherrill <joel.sherrill@…>

  • rtems/include/rtems.h, sapi/Makefile.am: Add Add simple helper to get RTEMS version string.
  • sapi/src/getversionstring.c: New file.
  • Property mode set to 100644
File size: 4.0 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
[092f142a]21#ifndef _RTEMS_H
22#define _RTEMS_H
[ac7d5ef0]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
[0185851c]71/*
72 *  Obtain the RTEMS Version String
73 *
74 *  This method may be used to obtain the RTEMS version string.
75 *
76 *  This method returns a pointer to the version string.
77 */
78const char *rtems_get_version_string(void);
79
[ac7d5ef0]80#define RTEMS_HAS_HARDWARE_FP CPU_HARDWARE_FP
81
[3a4ae6c]82/*
83 *  The following define the constants which may be used in name searches.
84 */
[50f32b11]85
[3a4ae6c]86#define RTEMS_SEARCH_ALL_NODES   OBJECTS_SEARCH_ALL_NODES
87#define RTEMS_SEARCH_OTHER_NODES OBJECTS_SEARCH_OTHER_NODES
88#define RTEMS_SEARCH_LOCAL_NODE  OBJECTS_SEARCH_LOCAL_NODE
89#define RTEMS_WHO_AM_I           OBJECTS_WHO_AM_I
[50f32b11]90
[3a4ae6c]91/*
92 * Parameters and return id's for _Objects_Get_next
93 */
[50f32b11]94
[5d3e539]95#define RTEMS_OBJECT_ID_INITIAL_INDEX        OBJECTS_ID_INITIAL_INDEX
96#define RTEMS_OBJECT_ID_FINAL_INDEX          OBJECTS_ID_FINAL_INDEX
[90015e7f]97#define RTEMS_OBJECT_ID_INITIAL(api, class, node) OBJECTS_ID_INITIAL(api, class, node)
[50f32b11]98
[5d3e539]99#define RTEMS_OBJECT_ID_FINAL                OBJECTS_ID_FINAL
[50f32b11]100
[3a4ae6c]101/*
102 *  The following constant defines the minimum stack size which every
103 *  thread must exceed.
104 */
105
106#define RTEMS_MINIMUM_STACK_SIZE  STACK_MINIMUM_SIZE
107
108/*
109 *  Constant for indefinite wait.  (actually an illegal interval)
110 */
111
112#define RTEMS_NO_TIMEOUT  WATCHDOG_NO_TIMEOUT
113
114/*
115 *  An MPCI must support packets of at least this size.
116 */
[50f32b11]117
[3a4ae6c]118#define RTEMS_MINIMUM_PACKET_SIZE  MP_PACKET_MINIMUM_PACKET_SIZE
[50f32b11]119
[3a4ae6c]120/*
[1d496f6]121 *  The following constant defines the number of uint32_t  's
[3a4ae6c]122 *  in a packet which must be converted to native format in a
123 *  heterogeneous system.  In packets longer than
[1d496f6]124 *  MP_PACKET_MINIMUN_HETERO_CONVERSION uint32_t  's, some of the "extra" data
[3a4ae6c]125 *  may a user message buffer which is not automatically endian swapped.
126 */
[50f32b11]127
[3a4ae6c]128#define RTEMS_MINIMUN_HETERO_CONVERSION  MP_PACKET_MINIMUN_HETERO_CONVERSION
129
[1e2e6fe0]130/*
131 *  rtems_object_id_to_name
132 *
[50f32b11]133 *  This directive returns the name associated with the specified
[1e2e6fe0]134 *  object ID.
135 *
136 *  Input parameters:
137 *    id   - message queue id
138 *
139 *  Output parameters:
140 *    *name            - user defined object name
141 *    RTEMS_SUCCESSFUL - if successful
142 *    error code       - if unsuccessful
143 */
144
145rtems_status_code rtems_object_id_to_name(
146  rtems_id      id,
147  rtems_name   *name
148);
149
[ac7d5ef0]150#ifdef __cplusplus
151}
152#endif
153
154#endif
155/* end of include file */
Note: See TracBrowser for help on using the repository browser.