Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: ee798d237dc128311524bb4999a9bbe772ec2fb3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                                 

                       
 




                                           

                  



                                  
                                  




                              

                        





                                  
                                                                                                        






                       
  
                                          


     
                    






                        
                       


                          
 

                           

                         
                          
/*******************************************************************************
 * Copyright (c) 2011 protos software gmbh (http://www.protos.de).
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * CONTRIBUTORS:
 * 		Thomas Schuetz (initial contribution)
 *
 *******************************************************************************/

#ifndef _ETDATATYPES_H_
#define _ETDATATYPES_H_

/*
 * typedefs for platform specific datatypes
 *
 * */

#include <stdio.h>

/* unsigned integer datatypes */
typedef unsigned char uint8;
typedef unsigned short int uint16;
typedef unsigned long uint32;
typedef unsigned long long uint64;

/* signed integer datatypes */
typedef char int8;
typedef short int int16;
typedef long int32;
typedef long long int64;


/* float datatypes */
typedef float float32;
typedef double float64;

/* boolean datatypes and values */
typedef char boolean;  /* TODO: bool, Bool, Boolean, and boolean are already defined in some platforms*/
#ifndef TRUE
	#define TRUE 1
#endif
#ifndef FALSE
	#define FALSE 0
#endif

/*
 * typedefs for eTrice Runtime and Testing
 *
 * */

typedef int8 etInt8;
typedef int16 etInt16;
typedef int32 etInt32;

typedef uint8 etUInt8;
typedef uint16 etUInt16;
typedef uint32 etUInt32;

typedef boolean etBool;

typedef float32 etFloat32;
typedef float64 etFloat64;

typedef FILE* etFileHandle;

typedef int8 etAddressId;

#endif /* _DATATYPES_H_ */

Back to the top