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

4.104.114.84.95
Last change on this file since e1bce86 was e1bce86, checked in by Joel Sherrill <joel.sherrill@…>, on 05/15/07 at 20:16:16

2007-05-15 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, preinstall.am, libmisc/Makefile.am, rtems/Makefile.am, rtems/include/rtems.h, rtems/include/rtems/rtems/ratemon.h, rtems/inline/rtems/rtems/ratemon.inl, rtems/src/ratemoncancel.c, rtems/src/ratemoncreate.c, rtems/src/ratemondelete.c, rtems/src/ratemongetstatus.c, rtems/src/ratemonident.c, rtems/src/ratemonperiod.c, rtems/src/ratemontimeout.c, score/Makefile.am, score/include/rtems/score/object.h, score/src/threadhandler.c, wrapup/Makefile.am: Integrate Rate Monotonic Statistics and Period Usage into Rate Monotonic Manager. Added the following directives: rtems_rate_monotonic_get_statistics, rtems_rate_monotonic_reset_statistics, rtems_rate_montonic_reset_all_statistics, rtems_rate_montonic_report_statistics, and rtems_object_get_name. Obsoleted the rtems/rtmonuse.h file as a public interface.
  • rtems/src/ratemongetstatistics.c, rtems/src/ratemonreportstatistics.c, rtems/src/ratemonresetall.c, rtems/src/ratemonresetstatistics.c, rtems/src/rtemsobjectgetname.c, score/src/objectgetnameasstring.c: New files.
  • libmisc/rtmonuse/rtmonuse.c, libmisc/rtmonuse/rtmonuse.h: Removed.
  • Property mode set to 100644
File size: 4.2 KB
Line 
1/**
2 * @file  rtems.h
3 */
4 
5/*
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 *
11 *  COPYRIGHT (c) 1989-1999.
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 *  $Id$
19 */
20
21#ifndef _RTEMS_H
22#define _RTEMS_H
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
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
32 *  which are not included in the formally defined and supported API.
33 *  Define this at your own risk.
34 */
35
36#if (!defined(__RTEMS_VIOLATE_KERNEL_VISIBILITY__)) && (!defined(__RTEMS_INSIDE__))
37#define __RTEMS_APPLICATION__
38#endif
39
40#include <rtems/system.h>
41#include <rtems/rtems/status.h>
42#include <rtems/rtems/types.h>
43
44#include <rtems/config.h>
45#include <rtems/init.h>
46#include <rtems/rtems/options.h>
47#include <rtems/rtems/tasks.h>
48#include <rtems/rtems/intr.h>
49#include <rtems/rtems/barrier.h>
50#include <rtems/rtems/cache.h>
51#include <rtems/rtems/clock.h>
52#include <rtems/extension.h>
53#include <rtems/rtems/timer.h>
54#include <rtems/rtems/sem.h>
55#include <rtems/rtems/message.h>
56#include <rtems/rtems/event.h>
57#include <rtems/rtems/signal.h>
58#include <rtems/rtems/event.h>
59#include <rtems/rtems/part.h>
60#include <rtems/rtems/region.h>
61#include <rtems/rtems/dpmem.h>
62#include <rtems/io.h>
63#include <rtems/fatal.h>
64#include <rtems/rtems/ratemon.h>
65#if defined(RTEMS_MULTIPROCESSING)
66#include <rtems/rtems/mp.h>
67#endif
68
69#include <rtems/rtems/support.h>
70#include <rtems/score/sysstate.h>
71
72#define RTEMS_HAS_HARDWARE_FP CPU_HARDWARE_FP
73
74/*
75 *  The following define the constants which may be used in name searches.
76 */
77
78#define RTEMS_SEARCH_ALL_NODES   OBJECTS_SEARCH_ALL_NODES
79#define RTEMS_SEARCH_OTHER_NODES OBJECTS_SEARCH_OTHER_NODES
80#define RTEMS_SEARCH_LOCAL_NODE  OBJECTS_SEARCH_LOCAL_NODE
81#define RTEMS_WHO_AM_I           OBJECTS_WHO_AM_I
82
83/*
84 * Parameters and return id's for _Objects_Get_next
85 */
86
87#define RTEMS_OBJECT_ID_INITIAL_INDEX        OBJECTS_ID_INITIAL_INDEX
88#define RTEMS_OBJECT_ID_FINAL_INDEX          OBJECTS_ID_FINAL_INDEX
89#define RTEMS_OBJECT_ID_INITIAL(api, class, node) OBJECTS_ID_INITIAL(api, class, node)
90
91#define RTEMS_OBJECT_ID_FINAL                OBJECTS_ID_FINAL
92
93/*
94 *  The following constant defines the minimum stack size which every
95 *  thread must exceed.
96 */
97
98#define RTEMS_MINIMUM_STACK_SIZE  STACK_MINIMUM_SIZE
99
100/*
101 *  Constant for indefinite wait.  (actually an illegal interval)
102 */
103
104#define RTEMS_NO_TIMEOUT  WATCHDOG_NO_TIMEOUT
105
106/*
107 *  An MPCI must support packets of at least this size.
108 */
109
110#define RTEMS_MINIMUM_PACKET_SIZE  MP_PACKET_MINIMUM_PACKET_SIZE
111
112/*
113 *  The following constant defines the number of uint32_t  's
114 *  in a packet which must be converted to native format in a
115 *  heterogeneous system.  In packets longer than
116 *  MP_PACKET_MINIMUN_HETERO_CONVERSION uint32_t  's, some of the "extra" data
117 *  may a user message buffer which is not automatically endian swapped.
118 */
119
120#define RTEMS_MINIMUN_HETERO_CONVERSION  MP_PACKET_MINIMUN_HETERO_CONVERSION
121
122/*
123 *  rtems_object_id_to_name
124 *
125 *  This directive returns the name associated with the specified
126 *  object ID.
127 *
128 *  Input parameters:
129 *    id   - object id
130 *
131 *  Output parameters:
132 *    *name            - user defined object name
133 *    RTEMS_SUCCESSFUL - if successful
134 *    error code       - if unsuccessful
135 */
136
137rtems_status_code rtems_object_id_to_name(
138  rtems_id      id,
139  rtems_name   *name
140);
141
142/*
143 *  rtems_object_get_name
144 *
145 *  This directive returns the name associated with the specified
146 *  object ID.
147 *
148 *  Input parameters:
149 *    id   - object id
150 *
151 *  Output parameters:
152 *    *name            - user defined object name
153 *    name             - if successful
154 *    NULL             - if unsuccessful
155 */
156
157char *rtems_object_get_name(
158  rtems_id       id,
159  size_t         length,
160  char          *name
161);
162
163#ifdef __cplusplus
164}
165#endif
166
167#endif
168/* end of include file */
Note: See TracBrowser for help on using the repository browser.