1 /* 2 * ========================================================== 3 * 4 * Copyright (C) 2020 QuickLogic Corporation 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 * 15 * File : test_types.h 16 * Purpose : 17 * 18 * 19 * =========================================================== 20 * 21 */ 22 23 #ifndef __TEST_TYPES_H_ 24 #define __TEST_TYPES_H_ 25 26 #include <stdio.h> 27 #include <stdint.h> 28 29 /* FIXME: The CAPNAME versions need to go away */ 30 31 /*! \typedef char INT8_t 32 * \brief signed character type 33 */ 34 typedef int8_t INT8_t; 35 36 /*! \typedef unsigned char UINT8_t 37 * \brief unsigned character type 38 */ 39 typedef uint8_t UINT8_t; 40 41 /*! \typedef short INT16_t 42 * \brief signed short type 43 */ 44 typedef int16_t INT16_t; 45 46 /*! \typedef unsigned short UINT16_t 47 * \brief unsigned short type 48 */ 49 typedef uint16_t UINT16_t; 50 51 /*! \typedef int INT32_t 52 * \brief signed integer type 53 */ 54 typedef int32_t INT32_t; 55 56 /*! \typedef unsigned int UINT32_t 57 * \brief unsigned integer type 58 */ 59 typedef uint32_t UINT32_t; 60 61 /*! \typedef float FLOAT_t 62 * \brief float type 63 */ 64 typedef float FLOAT_t; 65 66 /*! \typedef unsigned char BYTE 67 * \brief unsigned char type 68 * \ This type MUST be 8-bit 69 */ 70 typedef unsigned char BYTE; 71 72 73 74 #endif /* __TEST_TYPES_H_ */ 75