source: rtems/cpukit/score/cpu/unix/rtems/score/types.h @ af413e95

4.104.114.84.95
Last change on this file since af413e95 was af413e95, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 21, 2004 at 11:06:03 AM

2004-11-21 Ralf Corsepius <ralf.corsepius@…>

  • rtems/score/types.h: Use rtems_score_types_h as preprocessor guard.
  • Property mode set to 100644
File size: 1.8 KB
Line 
1/**
2 * @file rtems/score/types.h
3 */
4
5/*
6 *  This include file contains type definitions which are appropriate
7 *  for a typical modern UNIX box using GNU C for the RTEMS simulator.
8 *
9 *  COPYRIGHT (c) 1989-1999.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.com/license/LICENSE.
15 *
16 *  $Id$
17 */
18
19#ifndef __rtems_score_types_h
20#define __rtems_score_types_h
21
22#ifndef ASM
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28/*
29 * some C++ compilers (eg: HP's) don't do 'signed' or 'volatile'
30 */
31#if defined(__cplusplus) && !defined(__GNUC__)
32#define signed
33#define volatile
34#endif
35
36/*
37 *  This section defines the basic types for this processor.
38 */
39
40typedef unsigned char  unsigned8;      /* unsigned 8-bit  integer */
41typedef unsigned short unsigned16;     /* unsigned 16-bit integer */
42typedef unsigned int   unsigned32;     /* unsigned 32-bit integer */
43
44typedef unsigned16     Priority_Bit_map_control;
45
46typedef signed char      signed8;      /* 8-bit  signed integer */
47typedef signed short     signed16;     /* 16-bit signed integer */
48typedef signed int       signed32;     /* 32-bit signed integer */
49
50/*
51 * some C++ compilers (eg: HP's) don't do 'long long'
52 */
53#if defined(__GNUC__)
54typedef unsigned long long unsigned64; /* unsigned 64-bit integer */
55typedef signed long long signed64;     /* 64 bit signed integer */
56#endif
57
58typedef unsigned32 boolean;     /* Boolean value   */
59
60typedef float          single_precision;     /* single precision float */
61typedef double         double_precision;     /* double precision float */
62
63typedef void unix_isr;
64
65typedef unix_isr ( *unix_isr_entry )( void );
66
67#ifdef __cplusplus
68}
69#endif
70
71#endif  /* !ASM */
72
73#endif
74/* end of include file */
Note: See TracBrowser for help on using the repository browser.