iLLD_TC27xD  1.0
Platform_Types.h
Go to the documentation of this file.
1 /*
2 */
3 /******************************************************************************
4 ** **
5 ** Copyright (C) Infineon Technologies (2013) **
6 ** **
7 ** All rights reserved. **
8 ** **
9 ** This document contains proprietary information belonging to Infineon **
10 ** Technologies. Passing on and copying of this document, and communication **
11 ** of its contents is not permitted without prior written authorization. **
12 ** **
13 *******************************************************************************
14 ** **
15 ** $FILENAME : Platform_Types.h $ **
16 ** **
17 ** $CC VERSION : \main\5 $ **
18 ** **
19 ** **
20 ** AUTHOR : DL-AUTOSAR-Engineering **
21 ** **
22 ** VENDOR : Infineon Technologies **
23 ** **
24 ** DESCRIPTION : File holding the definition of all the Platform types **
25 ** as defined by Autosar **
26 ** **
27 ** MAY BE CHANGED BY USER [yes/no]: Yes **
28 ** **
29 ******************************************************************************/
30 
31 #ifndef PLATFORM_TYPES_H
32 #define PLATFORM_TYPES_H
33 
34 /*******************************************************************************
35 ** Include Section **
36 *******************************************************************************/
37 
38 /*******************************************************************************
39 ** Global Symbols **
40 *******************************************************************************/
41 /*
42  * File version information
43  */
44 #define PLATFORM_MAJOR_VERSION 5
45 #define PLATFORM_MINOR_VERSION 0
46 #define PLATFORM_PATCH_VERSION 1
47 
48 /*
49  * CPU register type width
50  */
51 #define CPU_TYPE_8 8
52 #define CPU_TYPE_16 16
53 #define CPU_TYPE_32 32
54 
55 /*
56  * Bit order definition
57  */
58 #define MSB_FIRST 0 /* Big endian bit ordering */
59 #define LSB_FIRST 1 /* Little endian bit ordering */
60 
61 /*
62  * Byte order definition
63  */
64 #define HIGH_BYTE_FIRST 0 /* Big endian byte ordering */
65 #define LOW_BYTE_FIRST 1 /* Little endian byte ordering */
66 
67 /*
68  * Word order definition
69  */
70 #define HIGH_WORD_FIRST 0 /* Big endian word ordering */
71 #define LOW_WORD_FIRST 1 /* Little endian word ordering */
72 
73 /*
74  * Platform type and endianess definitions for TC1796
75  */
76 #define CPU_TYPE CPU_TYPE_32
77 #define CPU_BIT_ORDER LSB_FIRST
78 #define CPU_BYTE_ORDER LOW_BYTE_FIRST
79 #define CPU_WORD_ORDER LOW_WORD_FIRST
80 
81 /*******************************************************************************
82 ** Global Data Types **
83 *******************************************************************************/
84 
85 /*
86  * AUTOSAR integer data types
87  */
88 typedef signed char sint8; /* -128 .. +127 */
89 typedef unsigned char uint8; /* 0 .. 255 */
90 typedef signed short sint16; /* -32768 .. +32767 */
91 typedef unsigned short uint16; /* 0 .. 65535 */
92 typedef signed long sint32; /* -2147483648 .. +2147483647 */
93 typedef unsigned long uint32; /* 0 .. 4294967295 */
94 typedef float float32;
95 typedef double float64;
96 
97 typedef unsigned long uint8_least; /* At least 8 bit */
98 typedef unsigned long uint16_least; /* At least 16 bit */
99 typedef unsigned long uint32_least; /* At least 32 bit */
100 typedef signed long sint8_least; /* At least 7 bit + 1 bit sign */
101 typedef signed long sint16_least; /* At least 15 bit + 1 bit sign */
102 typedef signed long sint32_least; /* At least 31 bit + 1 bit sign */
103 
104 typedef unsigned char boolean; /* for use with TRUE/FALSE */
105 
106 #ifndef TRUE /* conditional check */
107 #define TRUE 1
108 #endif
109 
110 #ifndef FALSE /* conditional check */
111 #define FALSE 0
112 #endif
113 
114 /* posix conform: osdSuppressPosixTypes of Operating system */
115 #ifdef osdSuppressPosixTypes
116 typedef char int8; /* -128 .. +127 */
117 typedef short int16; /* -32768 .. +32767 */
118 typedef long int32; /* -2147483648 .. +2147483647 */
119 #endif
120 
121 /*******************************************************************************
122 ** Global Data **
123 *******************************************************************************/
124 
125 /*******************************************************************************
126 ** Global Function Prototypes **
127 *******************************************************************************/
128 
129 #endif /* PLATFORM_TYPES_H */