Zephyr API Documentation
3.6.0
A Scalable Open Source RTOS
3.6.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
kernel_version.h
Go to the documentation of this file.
1
/* kernel version support */
2
3
/*
4
* Copyright (c) 2015 Wind River Systems, Inc.
5
*
6
* SPDX-License-Identifier: Apache-2.0
7
*/
8
9
#ifndef ZEPHYR_INCLUDE_KERNEL_VERSION_H_
10
#define ZEPHYR_INCLUDE_KERNEL_VERSION_H_
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
33
#define SYS_KERNEL_VER_MAJOR(ver) (((ver) >> 24) & 0xFF)
34
#define SYS_KERNEL_VER_MINOR(ver) (((ver) >> 16) & 0xFF)
35
#define SYS_KERNEL_VER_PATCHLEVEL(ver) (((ver) >> 8) & 0xFF)
36
37
/* kernel version routines */
38
47
uint32_t
sys_kernel_version_get
(
void
);
48
53
#ifdef __cplusplus
54
}
55
#endif
56
57
#endif
/* ZEPHYR_INCLUDE_KERNEL_VERSION_H_ */
sys_kernel_version_get
uint32_t sys_kernel_version_get(void)
Return the kernel version of the present build.
uint32_t
__UINT32_TYPE__ uint32_t
Definition:
stdint.h:90
zephyr
kernel_version.h
Generated on Sat Feb 24 2024 03:45:05 for Zephyr API Documentation by
1.9.6