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/object.h> |
---|
24 | #include <rtems/priority.h> |
---|
25 | #include <rtems/modes.h> |
---|
26 | |
---|
27 | /* |
---|
28 | * RTEMS basic type definitions |
---|
29 | */ |
---|
30 | |
---|
31 | typedef unsigned8 rtems_unsigned8; /* unsigned 8-bit value */ |
---|
32 | typedef unsigned16 rtems_unsigned16; /* unsigned 16-bit value */ |
---|
33 | typedef unsigned32 rtems_unsigned32; /* unsigned 32-bit value */ |
---|
34 | typedef unsigned64 rtems_unsigned64; /* unsigned 64-bit value */ |
---|
35 | |
---|
36 | typedef signed8 rtems_signed8; /* signed 8-bit value */ |
---|
37 | typedef signed16 rtems_signed16; /* signed 16-bit value */ |
---|
38 | typedef signed32 rtems_signed32; /* signed 32-bit value */ |
---|
39 | typedef signed64 rtems_signed64; /* signed 64-bit value */ |
---|
40 | |
---|
41 | typedef single_precision rtems_single; /* single precision float */ |
---|
42 | typedef double_precision rtems_double; /* double precision float */ |
---|
43 | |
---|
44 | typedef boolean rtems_boolean; |
---|
45 | |
---|
46 | typedef unsigned32 rtems_name; |
---|
47 | typedef Objects_Id rtems_id; |
---|
48 | |
---|
49 | typedef Context_Control rtems_context; |
---|
50 | typedef Context_Control_fp rtems_context_fp; |
---|
51 | typedef CPU_Interrupt_frame rtems_interrupt_frame; |
---|
52 | |
---|
53 | /* |
---|
54 | * Define the type for an RTEMS API task priority. |
---|
55 | */ |
---|
56 | |
---|
57 | typedef Priority_Control rtems_task_priority; |
---|
58 | |
---|
59 | #define RTEMS_NO_PRIORITY RTEMS_CURRENT_PRIORITY |
---|
60 | /* |
---|
61 | * Define the type for an RTEMS API task mode. |
---|
62 | */ |
---|
63 | |
---|
64 | typedef Modes_Control rtems_mode; |
---|
65 | |
---|
66 | #ifdef __cplusplus |
---|
67 | } |
---|
68 | #endif |
---|
69 | |
---|
70 | #endif |
---|
71 | /* end of include file */ |
---|