RTEMS 5.3
types.h
Go to the documentation of this file.
1
11/* COPYRIGHT (c) 1989-2009.
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.org/license/LICENSE.
17 */
18
19#ifndef _RTEMS_RTEMS_TYPES_H
20#define _RTEMS_RTEMS_TYPES_H
21
22/*
23 * RTEMS basic type definitions
24 */
25
26#include <sys/cpuset.h>
27#include <sys/_timespec.h>
28#include <sys/_timeval.h>
29#include <stdint.h>
31#include <rtems/score/object.h>
33#include <rtems/rtems/modes.h>
34#if defined(RTEMS_MULTIPROCESSING)
35#include <rtems/score/mpci.h>
36#endif
37
38#ifdef __cplusplus
39extern "C" {
40#endif
41
47#ifdef RTEMS_DEPRECATED_TYPES
53typedef single_precision rtems_single RTEMS_DEPRECATED;
54
60typedef double_precision rtems_double RTEMS_DEPRECATED;
61
67typedef boolean rtems_boolean RTEMS_DEPRECATED;
68#endif
69
77typedef uint32_t rtems_name;
78
84
90#define RTEMS_ID_NONE OBJECTS_ID_NONE
91
95typedef Context_Control rtems_context RTEMS_DEPRECATED;
96
97#if (CPU_HARDWARE_FP == TRUE) || (CPU_SOFTWARE_FP == TRUE)
101typedef Context_Control_fp rtems_context_fp RTEMS_DEPRECATED;
102#endif
103
104#if (CPU_ISR_PASSES_FRAME_POINTER == TRUE)
115#endif
116
121typedef Heap_Information_block region_information_block RTEMS_DEPRECATED;
122
128
135typedef struct timespec rtems_thread_cpu_usage_t RTEMS_DEPRECATED;
136
141typedef struct {
145 uint32_t year;
149 uint32_t month;
153 uint32_t day;
157 uint32_t hour;
161 uint32_t minute;
165 uint32_t second;
169 uint32_t ticks;
171
172/*
173 * MPCI related entries
174 */
175#if defined(RTEMS_MULTIPROCESSING)
180typedef MP_packet_Classes rtems_mp_packet_classes;
181
185typedef MP_packet_Prefix rtems_packet_prefix;
186
191typedef MPCI_initialization_entry rtems_mpci_initialization_entry;
192
196typedef MPCI_get_packet_entry rtems_mpci_get_packet_entry;
197
202typedef MPCI_return_packet_entry rtems_mpci_return_packet_entry;
203
207typedef MPCI_send_entry rtems_mpci_send_packet_entry;
208
212typedef MPCI_receive_entry rtems_mpci_receive_packet_entry;
213
217typedef MPCI_Entry rtems_mpci_entry;
218
222typedef MPCI_Control rtems_mpci_table;
223
227typedef MPCI_Configuration rtems_multiprocessing_table;
228
229#endif
230
233#ifdef __cplusplus
234}
235#endif
236
237#endif
238/* end of include file */
MPCI Layer API.
uint32_t rtems_name
Classic API object name type.
Definition: types.h:77
CPU_Interrupt_frame rtems_interrupt_frame
Defines the format of the interrupt stack frame as it appears to a user ISR.
Definition: types.h:114
Context_Control rtems_context RTEMS_DEPRECATED
Public name for task context area.
Definition: types.h:95
Objects_Id rtems_id
Used to manage and manipulate RTEMS object identifiers.
Definition: types.h:83
Watchdog_Interval rtems_interval
Used to manage and manipulate intervals specified by clock ticks.
Definition: types.h:127
void MPCI_Entry
Definition: mpci.h:54
MPCI_Entry(* MPCI_get_packet_entry)(MP_packet_Prefix **)
Definition: mpci.h:67
MPCI_Entry(* MPCI_return_packet_entry)(MP_packet_Prefix *)
Definition: mpci.h:77
MPCI_Entry(* MPCI_send_entry)(uint32_t, MP_packet_Prefix *)
Definition: mpci.h:87
MPCI_Entry(* MPCI_receive_entry)(MP_packet_Prefix **)
Definition: mpci.h:99
MPCI_Entry(* MPCI_initialization_entry)(void)
Definition: mpci.h:60
MP_packet_Classes
Definition: mppkt.h:56
uint32_t Objects_Id
Definition: object.h:80
uint32_t Watchdog_Interval
Type is used to specify the length of intervals.
Definition: watchdogticks.h:38
Heap Handler Information API.
Constants and Structures Associated with the Object Handler.
Interrupt stack frame (ISF).
Definition: cpu.h:191
SPARC basic context.
Definition: cpu.h:194
Thread register context.
Definition: cpu.h:194
Information block returned by _Heap_Get_information().
Definition: heapinfo.h:145
Definition: mpci.h:137
Definition: mpci.h:111
Definition: mppkt.h:85
Data structure to manage and manipulate calendar time.
Definition: types.h:141
uint32_t ticks
Elapsed ticks between seconds.
Definition: types.h:169
uint32_t hour
Hour, 0 .. 23.
Definition: types.h:157
uint32_t minute
Minute, 0 .. 59.
Definition: types.h:161
uint32_t day
Day, 1 .. 31.
Definition: types.h:153
uint32_t second
Second, 0 .. 59.
Definition: types.h:165
uint32_t month
Month, 1 .. 12.
Definition: types.h:149
uint32_t year
Year, A.D.
Definition: types.h:145
Constants for the watchdog ticks.