1 | /* types.h |
---|
2 | * |
---|
3 | * This include file defines the types used by the RTEMS API. |
---|
4 | * |
---|
5 | * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. |
---|
6 | * On-Line Applications Research Corporation (OAR). |
---|
7 | * All rights assigned to U.S. Government, 1994. |
---|
8 | * |
---|
9 | * This material may be reproduced by or for the U.S. Government pursuant |
---|
10 | * to the copyright license under the clause at DFARS 252.227-7013. This |
---|
11 | * notice must appear in all copies of this file and its derivatives. |
---|
12 | * |
---|
13 | * $Id$ |
---|
14 | */ |
---|
15 | |
---|
16 | #ifndef __RTEMS_RTEMS_TYPES_h |
---|
17 | #define __RTEMS_RTEMS_TYPES_h |
---|
18 | |
---|
19 | #ifdef __cplusplus |
---|
20 | extern "C" { |
---|
21 | #endif |
---|
22 | |
---|
23 | #include <rtems/score/object.h> |
---|
24 | #include <rtems/score/priority.h> |
---|
25 | #include <rtems/rtems/modes.h> |
---|
26 | #include <rtems/score/mpci.h> |
---|
27 | #include <rtems/score/mppkt.h> |
---|
28 | |
---|
29 | /* |
---|
30 | * RTEMS basic type definitions |
---|
31 | */ |
---|
32 | |
---|
33 | typedef unsigned8 rtems_unsigned8; /* unsigned 8-bit value */ |
---|
34 | typedef unsigned16 rtems_unsigned16; /* unsigned 16-bit value */ |
---|
35 | typedef unsigned32 rtems_unsigned32; /* unsigned 32-bit value */ |
---|
36 | |
---|
37 | typedef signed8 rtems_signed8; /* signed 8-bit value */ |
---|
38 | typedef signed16 rtems_signed16; /* signed 16-bit value */ |
---|
39 | typedef signed32 rtems_signed32; /* signed 32-bit value */ |
---|
40 | |
---|
41 | /* |
---|
42 | * some C++ compilers (eg: HP's) don't do 'long long' |
---|
43 | */ |
---|
44 | #if defined(__GNUC__) |
---|
45 | typedef unsigned64 rtems_unsigned64; /* unsigned 64-bit value */ |
---|
46 | typedef signed64 rtems_signed64; /* signed 64-bit value */ |
---|
47 | #endif |
---|
48 | |
---|
49 | typedef single_precision rtems_single; /* single precision float */ |
---|
50 | typedef double_precision rtems_double; /* double precision float */ |
---|
51 | |
---|
52 | typedef boolean rtems_boolean; |
---|
53 | |
---|
54 | typedef unsigned32 rtems_name; |
---|
55 | typedef Objects_Id rtems_id; |
---|
56 | |
---|
57 | typedef Context_Control rtems_context; |
---|
58 | typedef Context_Control_fp rtems_context_fp; |
---|
59 | typedef CPU_Interrupt_frame rtems_interrupt_frame; |
---|
60 | |
---|
61 | /* |
---|
62 | * Time related |
---|
63 | */ |
---|
64 | |
---|
65 | typedef Watchdog_Interval rtems_interval; |
---|
66 | typedef TOD_Control rtems_time_of_day; |
---|
67 | |
---|
68 | /* |
---|
69 | * Define the type for an RTEMS API task mode. |
---|
70 | */ |
---|
71 | |
---|
72 | typedef Modes_Control rtems_mode; |
---|
73 | |
---|
74 | /* |
---|
75 | * MPCI related entries |
---|
76 | */ |
---|
77 | |
---|
78 | typedef MP_packet_Classes rtems_mp_packet_classes; |
---|
79 | typedef MP_packet_Prefix rtems_packet_prefix; |
---|
80 | |
---|
81 | typedef MPCI_initialization_entry rtems_mpci_initialization_entry; |
---|
82 | typedef MPCI_get_packet_entry rtems_mpci_get_packet_entry; |
---|
83 | typedef MPCI_return_packet_entry rtems_mpci_return_packet_entry; |
---|
84 | typedef MPCI_send_entry rtems_mpci_send_packet_entry; |
---|
85 | typedef MPCI_receive_entry rtems_mpci_receive_packet_entry; |
---|
86 | |
---|
87 | typedef MPCI_Entry rtems_mpci_entry; |
---|
88 | |
---|
89 | typedef MPCI_Control rtems_mpci_table; |
---|
90 | |
---|
91 | #ifdef __cplusplus |
---|
92 | } |
---|
93 | #endif |
---|
94 | |
---|
95 | #endif |
---|
96 | /* end of include file */ |
---|