Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
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
extern
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:60
include
kernel_version.h
Generated on Sun Oct 9 2022 09:21:56 for Zephyr API Documentation by
1.9.4