source: rtems/c/src/exec/rtems/include/rtems/rtems/types.h @ 60b791ad

4.104.114.84.95
Last change on this file since 60b791ad was 60b791ad, checked in by Joel Sherrill <joel.sherrill@…>, on 02/17/98 at 23:46:28

updated copyright to 1998

  • Property mode set to 100644
File size: 2.5 KB
Line 
1/*  types.h
2 *
3 *  This include file defines the types used by the RTEMS API.
4 *
5 *  COPYRIGHT (c) 1989-1998.
6 *  On-Line Applications Research Corporation (OAR).
7 *  Copyright assigned to U.S. Government, 1994.
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.OARcorp.com/rtems/license.html.
12 *
13 *  $Id$
14 */
15
16#ifndef __RTEMS_RTEMS_TYPES_h
17#define __RTEMS_RTEMS_TYPES_h
18
19#ifdef __cplusplus
20extern "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
33typedef unsigned8       rtems_unsigned8;  /* unsigned 8-bit value  */
34typedef unsigned16      rtems_unsigned16; /* unsigned 16-bit value */
35typedef unsigned32      rtems_unsigned32; /* unsigned 32-bit value */
36
37typedef signed8         rtems_signed8;    /* signed 8-bit value  */
38typedef signed16        rtems_signed16;   /* signed 16-bit value */
39typedef 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__)
45typedef unsigned64      rtems_unsigned64; /* unsigned 64-bit value */
46typedef signed64        rtems_signed64;   /* signed 64-bit value */
47#endif
48
49typedef single_precision rtems_single;    /* single precision float */
50typedef double_precision rtems_double;    /* double precision float */
51
52typedef boolean          rtems_boolean;
53
54typedef unsigned32       rtems_name;
55typedef Objects_Id       rtems_id;
56
57typedef Context_Control            rtems_context;
58typedef Context_Control_fp         rtems_context_fp;
59typedef CPU_Interrupt_frame        rtems_interrupt_frame;
60
61/*
62 *  Time related
63 */
64
65typedef Watchdog_Interval rtems_interval;
66typedef TOD_Control       rtems_time_of_day;
67
68/*
69 *  Define the type for an RTEMS API task mode.
70 */
71 
72typedef Modes_Control rtems_mode;
73
74/*
75 *  MPCI related entries
76 */
77
78typedef MP_packet_Classes          rtems_mp_packet_classes;
79typedef MP_packet_Prefix           rtems_packet_prefix;
80
81typedef MPCI_initialization_entry  rtems_mpci_initialization_entry;
82typedef MPCI_get_packet_entry      rtems_mpci_get_packet_entry;
83typedef MPCI_return_packet_entry   rtems_mpci_return_packet_entry;
84typedef MPCI_send_entry            rtems_mpci_send_packet_entry;
85typedef MPCI_receive_entry         rtems_mpci_receive_packet_entry;
86
87typedef MPCI_Entry rtems_mpci_entry;
88
89typedef MPCI_Control rtems_mpci_table;
90
91#ifdef __cplusplus
92}
93#endif
94
95#endif
96/* end of include file */
Note: See TracBrowser for help on using the repository browser.