source: rtems/cpukit/rtems/include/rtems/rtems/types.h @ be79961

Last change on this file since be79961 was be79961, checked in by Ralf Corsepius <ralf.corsepius@…>, on 05/27/03 at 16:29:16

2003-05-27 Ralf Corsepius <corsepiu@…>

PR 409:

  • include/rtems/rtems/types.h: Include rtems/stdint.h. Apply c99-types to typedef rtems_[un]signed[8|16|32|64].
  • 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-1999.
6 *  On-Line Applications Research Corporation (OAR).
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.OARcorp.com/rtems/license.html.
11 *
12 *  $Id$
13 */
14
15#ifndef __RTEMS_RTEMS_TYPES_h
16#define __RTEMS_RTEMS_TYPES_h
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22/*
23 *  RTEMS basic type definitions
24 */
25
26#include <rtems/stdint.h>
27
28/* backward compatibility types */
29typedef uint8_t        rtems_unsigned8;
30typedef uint16_t       rtems_unsigned16;
31typedef uint32_t       rtems_unsigned32;
32typedef uint64_t       rtems_unsigned64;
33
34typedef int8_t         rtems_signed8;
35typedef int16_t        rtems_signed16;
36typedef int32_t        rtems_signed32;
37typedef int64_t        rtems_signed64;
38
39#include <rtems/score/heap.h>
40#include <rtems/score/object.h>
41#include <rtems/score/priority.h>
42#include <rtems/score/tod.h>
43#include <rtems/score/watchdog.h>
44#include <rtems/rtems/modes.h>
45#if defined(RTEMS_MULTIPROCESSING)
46#include <rtems/score/mpci.h>
47#include <rtems/score/mppkt.h>
48#endif
49
50typedef single_precision rtems_single;    /* single precision float */
51typedef double_precision rtems_double;    /* double precision float */
52
53typedef boolean          rtems_boolean;
54
55typedef uint32_t       rtems_name;
56typedef Objects_Id       rtems_id;
57
58typedef Context_Control            rtems_context;
59typedef Context_Control_fp         rtems_context_fp;
60typedef CPU_Interrupt_frame        rtems_interrupt_frame;
61
62/*
63 *  Region information block
64 */
65
66typedef Heap_Information_block region_information_block;
67
68/*
69 *  Time related
70 */
71
72typedef Watchdog_Interval rtems_interval;
73typedef TOD_Control       rtems_time_of_day;
74
75/*
76 *  Define the type for an RTEMS API task mode.
77 */
78 
79typedef Modes_Control rtems_mode;
80
81/*
82 *  MPCI related entries
83 */
84
85#if defined(RTEMS_MULTIPROCESSING)
86typedef MP_packet_Classes          rtems_mp_packet_classes;
87typedef MP_packet_Prefix           rtems_packet_prefix;
88
89typedef MPCI_initialization_entry  rtems_mpci_initialization_entry;
90typedef MPCI_get_packet_entry      rtems_mpci_get_packet_entry;
91typedef MPCI_return_packet_entry   rtems_mpci_return_packet_entry;
92typedef MPCI_send_entry            rtems_mpci_send_packet_entry;
93typedef MPCI_receive_entry         rtems_mpci_receive_packet_entry;
94
95typedef MPCI_Entry rtems_mpci_entry;
96
97typedef MPCI_Control rtems_mpci_table;
98#endif
99
100#ifdef __cplusplus
101}
102#endif
103
104#endif
105/* end of include file */
Note: See TracBrowser for help on using the repository browser.