4.104.114.95
Last change
on this file since 30e2df6 was
30e2df6,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 08/21/08 at 04:10:35
|
Include stdbool.h. Use bool as base-type for boolean.
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[160965c] | 1 | /** |
---|
| 2 | * @file rtems/score/types.h |
---|
| 3 | */ |
---|
| 4 | |
---|
| 5 | /* |
---|
[7908ba5b] | 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 | * |
---|
[08311cc3] | 9 | * COPYRIGHT (c) 1989-1999. |
---|
[7908ba5b] | 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 |
---|
[0b5e8c7] | 14 | * http://www.rtems.com/license/LICENSE. |
---|
[7908ba5b] | 15 | * |
---|
| 16 | * $Id$ |
---|
| 17 | */ |
---|
| 18 | |
---|
[7f70d1b7] | 19 | #ifndef _RTEMS_SCORE_TYPES_H |
---|
| 20 | #define _RTEMS_SCORE_TYPES_H |
---|
[7908ba5b] | 21 | |
---|
| 22 | #ifndef ASM |
---|
| 23 | |
---|
[30e2df6] | 24 | #include <stdbool.h> |
---|
[b9b531f] | 25 | #include <rtems/stdint.h> |
---|
| 26 | |
---|
[7908ba5b] | 27 | #ifdef __cplusplus |
---|
| 28 | extern "C" { |
---|
| 29 | #endif |
---|
| 30 | |
---|
| 31 | /* |
---|
| 32 | * some C++ compilers (eg: HP's) don't do 'signed' or 'volatile' |
---|
| 33 | */ |
---|
| 34 | #if defined(__cplusplus) && !defined(__GNUC__) |
---|
| 35 | #define signed |
---|
| 36 | #define volatile |
---|
| 37 | #endif |
---|
| 38 | |
---|
| 39 | /* |
---|
| 40 | * This section defines the basic types for this processor. |
---|
| 41 | */ |
---|
| 42 | |
---|
| 43 | |
---|
[7a3f018] | 44 | typedef uint16_t Priority_Bit_map_control; |
---|
[7908ba5b] | 45 | |
---|
[30e2df6] | 46 | typedef bool boolean; /* Boolean value */ |
---|
[7908ba5b] | 47 | |
---|
| 48 | typedef float single_precision; /* single precision float */ |
---|
| 49 | typedef double double_precision; /* double precision float */ |
---|
| 50 | |
---|
| 51 | typedef void unix_isr; |
---|
| 52 | |
---|
| 53 | typedef unix_isr ( *unix_isr_entry )( void ); |
---|
| 54 | |
---|
| 55 | #ifdef __cplusplus |
---|
| 56 | } |
---|
| 57 | #endif |
---|
| 58 | |
---|
| 59 | #endif /* !ASM */ |
---|
| 60 | |
---|
| 61 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.