Zephyr Project API
4.1.99
A Scalable Open Source RTOS
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
35
#define SYS_KERNEL_VER_MAJOR(ver) (((ver) >> 24) & 0xFF)
36
#define SYS_KERNEL_VER_MINOR(ver) (((ver) >> 16) & 0xFF)
37
#define SYS_KERNEL_VER_PATCHLEVEL(ver) (((ver) >> 8) & 0xFF)
38
39
/* kernel version routines */
40
49
uint32_t
sys_kernel_version_get
(
void
);
50
55
#ifdef __cplusplus
56
}
57
#endif
58
59
#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
include
zephyr
kernel_version.h
Generated on Sun May 4 2025 13:59:46 for Zephyr Project API by
1.9.8