1 /* 2 * Copyright (C) 2015 NXP Semiconductors 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 #ifndef DATA_TYPES_H 17 #define DATA_TYPES_H 18 19 #ifndef NULL 20 #define NULL 0 21 #endif 22 23 #ifndef FALSE 24 #define FALSE 0 25 #endif 26 27 typedef unsigned char UINT8; 28 typedef unsigned short UINT16; 29 typedef unsigned long UINT32; 30 typedef unsigned long long int UINT64; 31 typedef signed long INT32; 32 typedef signed char INT8; 33 typedef signed short INT16; 34 typedef unsigned char BOOLEAN; 35 typedef UINT32 UINTPTR; 36 typedef UINT32 TIME_STAMP; 37 38 #ifndef TRUE 39 #define TRUE (!FALSE) 40 #endif 41 42 typedef unsigned char UBYTE; 43 44 #define STATUS_SUCCESS 0x00 45 #define STATUS_OK 0x00 46 #define STATUS_UPTO_DATE 0x01 47 #define STATUS_FAILED 0x03 48 #define STATUS_INUSE 0x04 49 #define STATUS_FILE_NOT_FOUND 0x05 50 51 #define EE_ERROR_OPEN_FAIL -1 52 53 typedef UINT8 tJBL_STATUS; 54 55 #endif 56