2 ****************************************************************************************
6 * @brief This file replaces the need to include stdint or stdbool typical headers,
7 * which may not be available in all toolchains, and adds new types
9 * Copyright (C) ESWIN 2015-2020
13 ****************************************************************************************
21 ****************************************************************************************
24 * @brief Common integer standard types (removes use of stdint)
27 ****************************************************************************************
33 ****************************************************************************************
36 #include <linux/version.h>
37 #include <linux/types.h>
38 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)
39 #include <linux/bits.h>
41 #include <linux/bitops.h>
44 #ifdef CONFIG_ECRNX_TL4
45 typedef uint16_t u8_l;
47 typedef uint16_t bool_l;
53 typedef uint16_t u16_l;
54 typedef int16_t s16_l;
55 typedef uint32_t u32_l;
56 typedef int32_t s32_l;
57 typedef uint64_t u64_l;
59 #define ALIGNED(n) __attribute__((aligned (n)))
61 #if (__SIZEOF_POINTER__ == 8)
62 #define ptr_addr u64_l
64 #define ptr_addr u32_l
69 #endif // _LMAC_INT_H_