1 /** @file hal_stdtypes.h 2 * @brief HALCoGen standard types header File 3 * @date 29.May.2013 4 * @version 03.05.02 5 * 6 * This file contains: 7 * - Type and Global definitions which are relevant for all drivers. 8 */ 9 10 /* (c) Texas Instruments 2009-2013, All rights reserved. */ 11 12 #ifndef __HAL_STDTYPES_H__ 13 #define __HAL_STDTYPES_H__ 14 15 /* USER CODE BEGIN (0) */ 16 /* USER CODE END */ 17 /************************************************************/ 18 /* Type Definitions */ 19 /************************************************************/ 20 #ifndef _UINT64_DECLARED 21 typedef unsigned long long uint64; 22 #define _UINT64_DECLARED 23 #endif 24 25 #ifndef _UINT32_DECLARED 26 typedef unsigned int uint32; 27 #define _UINT32_DECLARED 28 #endif 29 30 #ifndef _UINT16_DECLARED 31 typedef unsigned short uint16; 32 #define _UINT16_DECLARED 33 #endif 34 35 #ifndef _UINT8_DECLARED 36 typedef unsigned char uint8; 37 #define _UINT8_DECLARED 38 #endif 39 40 #ifndef _BOOLEAN_DECLARED 41 typedef unsigned char boolean; 42 typedef unsigned char boolean_t; 43 #define _BOOLEAN_DECLARED 44 #endif 45 46 #ifndef _SINT64_DECLARED 47 typedef signed long long sint64; 48 #define _SINT64_DECLARED 49 #endif 50 51 #ifndef _SINT32_DECLARED 52 typedef signed int sint32; 53 #define _SINT32_DECLARED 54 #endif 55 56 #ifndef _SINT16_DECLARED 57 typedef signed short sint16; 58 #define _SINT16_DECLARED 59 #endif 60 61 #ifndef _SINT8_DECLARED 62 typedef signed char sint8; 63 #define _SINT8_DECLARED 64 #endif 65 66 #ifndef _FLOAT32_DECLARED 67 typedef float float32; 68 #define _FLOAT32_DECLARED 69 #endif 70 71 #ifndef _FLOAT64_DECLARED 72 typedef double float64; 73 #define _FLOAT64_DECLARED 74 #endif 75 76 77 /************************************************************/ 78 /* Global Definitions */ 79 /************************************************************/ 80 /** @def NULL 81 * @brief NULL definition 82 */ 83 #ifndef NULL 84 #define NULL ((void *) 0U) 85 #endif 86 87 /** @def TRUE 88 * @brief definition for TRUE 89 */ 90 #ifndef TRUE 91 #define TRUE (boolean)1U 92 #endif 93 94 /** @def FALSE 95 * @brief BOOLEAN definition for FALSE 96 */ 97 #ifndef FALSE 98 #define FALSE (boolean)0U 99 #endif 100 101 /* USER CODE BEGIN (1) */ 102 /* USER CODE END */ 103 104 #endif /* __HAL_STDTYPES_H__ */ 105