1 /* 2 * Copyright (c) 2017 Linaro Limited 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef __BLE_TYPES_H__ 8 #define __BLE_TYPES_H__ 9 10 #include <stdint.h> 11 #include <unistd.h> 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 #ifndef bool 17 #define bool unsigned char 18 #endif 19 20 typedef signed char s8_t; 21 typedef signed short s16_t; 22 typedef signed int bt_s32_t; 23 typedef signed long long s64_t; 24 25 typedef unsigned char u8_t; 26 typedef unsigned short u16_t; 27 typedef unsigned int bt_u32_t; 28 typedef unsigned long long u64_t; 29 30 typedef bt_s32_t k_timeout_t; 31 32 #define __deprecated 33 34 #ifdef __packed 35 #undef __packed 36 #define __packed __attribute__((packed)) 37 #else 38 #define __packed __attribute__((packed)) 39 #endif 40 41 #ifdef __aligned 42 #undef __aligned 43 #define __aligned(x) __attribute__((__aligned__(x))) 44 #else 45 #define __aligned(x) __attribute__((__aligned__(x))) 46 #endif 47 48 #ifdef __cplusplus 49 } 50 #endif 51 52 #endif /* __Z_TYPES_H__ */ 53