Zephyr API Documentation
4.0.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
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 Thu Dec 19 2024 15:02:34 for Zephyr API Documentation by
1.12.0