Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
types.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2017 Linaro Limited
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_ZEPHYR_TYPES_H_
8#define ZEPHYR_INCLUDE_ZEPHYR_TYPES_H_
9
10#include <stddef.h>
11#include <stdint.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17/* 32 bits on ILP32 builds, 64 bits on LP64 builts */
18typedef unsigned long ulong_t;
19
20/*
21 * A type with strong alignment requiremnts, similar to C11 max_align_t. It can
22 * be used to force alignment of data structures allocated on the stack or as
23 * return * type for heap allocators.
24 */
25typedef union {
26 long long thelonglong;
27 long double thelongdouble;
28 uintmax_t theuintmax_t;
29 size_t thesize_t;
30 uintptr_t theuintptr_t;
31 void *thepvoid;
32 void (*thepfunc)(void);
33} z_max_align_t;
34
35#ifdef __cplusplus
36}
37#endif
38
39#endif /* ZEPHYR_INCLUDE_ZEPHYR_TYPES_H_ */
void
Definition: eswifi_shell.c:15
unsigned long ulong_t
Definition: types.h:18
__UINTPTR_TYPE__ uintptr_t
Definition: stdint.h:75
__UINT64_TYPE__ uintmax_t
Definition: stdint.h:62