1 /* -------------------------------- Arctic Core ------------------------------
\r
2 * Arctic Core - the open source AUTOSAR platform http://arccore.com
\r
4 * Copyright (C) 2009 ArcCore AB <contact@arccore.com>
\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
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
14 * -------------------------------- Arctic Core ------------------------------*/
\r
16 /** @addtogroup General General
\r
19 /** @file Platform_Types.h
\r
20 * General platform type definitions.
\r
23 #include <stdbool.h>
\r
25 #ifndef PLATFORM_TYPES_H
\r
26 #define PLATFORM_TYPES_H
\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
33 #define FALSE (boolean)false
\r
36 #define TRUE (boolean)true
\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