/*************************************************************************************************/ /*! * \file wsf_types.h * * \brief Platform-independent data types. * * $Date: 2015-05-14 17:58:23 -0400 (Thu, 14 May 2015) $ * $Revision: 2837 $ * * Copyright (c) 2009-2016, ARM Limited, All Rights Reserved * SPDX-License-Identifier: LicenseRef-PBL * * This file and the related binary are licensed under the * Permissive Binary License, Version 1.0 (the "License"); * you may not use these files except in compliance with the License. * * You may obtain a copy of the License here: * LICENSE-permissive-binary-license-1.0.txt and at * https://www.mbed.com/licenses/PBL-1.0 * * See the License for the specific language governing permissions and * limitations under the License. */ /*************************************************************************************************/ #ifndef WSF_TYPES_H #define WSF_TYPES_H /************************************************************************************************** Macros **************************************************************************************************/ #ifndef NULL #define NULL 0 #endif #ifndef TRUE #define TRUE 1 #endif #ifndef FALSE #define FALSE 0 #endif /************************************************************************************************** Data Types **************************************************************************************************/ /* Integer data types */ #if ((defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) && \ (!defined(__ICC8051__) || (__ICC8051__ == 0))) #include <stdint.h> #else #if 0 typedef signed char int8_t; typedef unsigned char uint8_t; typedef signed short int16_t; typedef unsigned short uint16_t; typedef signed long int32_t; typedef unsigned long uint32_t; typedef unsigned long long uint64_t; #endif #include <stdint.h> #endif /* Boolean data type */ typedef uint8_t bool_t; #endif /* WSF_TYPES_H */