Zephyr Project API 3.7.0
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
13extern "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
48
53#ifdef __cplusplus
54}
55#endif
56
57#endif /* ZEPHYR_INCLUDE_KERNEL_VERSION_H_ */
uint32_t sys_kernel_version_get(void)
Return the kernel version of the present build.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90