Zephyr API Documentation
3.5.0
A Scalable Open Source RTOS
3.5.0
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
structs.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) BayLibre SAS
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
/*
8
* The purpose of this file is to provide essential/minimal architecture-
9
* specific structure definitions to be included in generic kernel
10
* structures.
11
*
12
* The following rules must be observed:
13
* 1. arch/structs.h shall not depend on kernel.h both directly and
14
* indirectly (i.e. it shall not include any header files that include
15
* kernel.h in their dependency chain).
16
* 2. kernel.h shall imply arch/structs.h via kernel_structs.h , such that
17
* it shall not be necessary to include arch/structs.h explicitly when
18
* kernel.h is included.
19
*/
20
21
#ifndef ZEPHYR_INCLUDE_ARCH_STRUCTS_H_
22
#define ZEPHYR_INCLUDE_ARCH_STRUCTS_H_
23
24
#if !defined(_ASMLANGUAGE)
25
26
#if defined(CONFIG_ARM64)
27
#include <
zephyr/arch/arm64/structs.h
>
28
#elif defined(CONFIG_RISCV)
29
#include <
zephyr/arch/riscv/structs.h
>
30
#else
31
32
/* Default definitions when no architecture specific definitions exist. */
33
34
/* Per CPU architecture specifics (empty) */
35
struct
_cpu_arch {
36
#ifdef __cplusplus
37
/* This struct will have a size 0 in C which is not allowed in C++ (it'll have a size 1). To
38
* prevent this, we add a 1 byte dummy variable.
39
*/
40
uint8_t
dummy;
41
#endif
42
};
43
44
#endif
45
46
/* typedefs to be used with GEN_OFFSET_SYM(), etc. */
47
typedef
struct
_cpu_arch _cpu_arch_t;
48
49
#endif
/* _ASMLANGUAGE */
50
51
#endif
/* ZEPHYR_INCLUDE_ARCH_STRUCTS_H_ */
structs.h
structs.h
uint8_t
__UINT8_TYPE__ uint8_t
Definition:
stdint.h:88
zephyr
arch
structs.h
Generated on Fri Oct 20 2023 10:27:11 for Zephyr API Documentation by
1.9.6