]> rtime.felk.cvut.cz Git - arc.git/blob - include/Platform_Types.h
Merge branch 'mikulka' of git@rtime.felk.cvut.cz:arc into mikulka
[arc.git] / include / Platform_Types.h
1 /* -------------------------------- Arctic Core ------------------------------\r
2  * Arctic Core - the open source AUTOSAR platform http://arccore.com\r
3  *\r
4  * Copyright (C) 2009  ArcCore AB <contact@arccore.com>\r
5  *\r
6  * This source code is free software; you can redistribute it and/or modify it\r
7  * under the terms of the GNU General Public License version 2 as published by the\r
8  * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.\r
9  *\r
10  * This program is distributed in the hope that it will be useful, but\r
11  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r
12  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\r
13  * for more details.\r
14  * -------------------------------- Arctic Core ------------------------------*/\r
15 \r
16 /** @addtogroup General General\r
17  *  @{ */\r
18 \r
19 /** @file Platform_Types.h\r
20  * General platform type definitions.\r
21  */\r
22 \r
23 #include <stdbool.h>\r
24 \r
25 #ifndef PLATFORM_TYPES_H\r
26 #define PLATFORM_TYPES_H\r
27 \r
28 #define CPU_TYPE            CPU_TYPE_32 \r
29 #define CPU_BIT_ORDER       MSB_FIRST \r
30 #define CPU_BYTE_ORDER      HIGH_BYTE_FIRST\r
31 \r
32 #ifndef FALSE\r
33 #define FALSE           (boolean)false\r
34 #endif\r
35 #ifndef TRUE\r
36 #define TRUE            (boolean)true\r
37 #endif\r
38 \r
39 //typedef unsigned long       boolean;\r
40 typedef _Bool      boolean;\r
41 typedef signed char         sint8;        \r
42 typedef unsigned char       uint8;\r
43 typedef char                            char_t;\r
44 typedef signed short        sint16;       \r
45 typedef unsigned short      uint16;       \r
46 typedef signed long         sint32;       \r
47 typedef unsigned long       uint32;\r
48 typedef unsigned long long  uint64;\r
49 typedef unsigned long       uint8_least;  \r
50 typedef unsigned long       uint16_least; \r
51 typedef unsigned long       uint32_least; \r
52 typedef signed long         sint8_least;  \r
53 typedef signed long         sint16_least; \r
54 typedef signed long         sint32_least; \r
55 typedef float               float32; \r
56 typedef double              float64;  \r
57 \r
58 #endif\r
59 /** @} */\r