2016-10-06 01:01:54 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 1997-2010, 2012-2014 Wind River Systems, Inc.
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2016-10-06 01:01:54 +08:00
|
|
|
*/
|
|
|
|
|
Introduce new sized integer typedefs
This is a start to move away from the C99 {u}int{8,16,32,64}_t types to
Zephyr defined u{8,16,32,64}_t and s{8,16,32,64}_t. This allows Zephyr
to define the sized types in a consistent manor across all the
architectures we support and not conflict with what various compilers
and libc might do with regards to the C99 types.
We introduce <zephyr/types.h> as part of this and have it include
<stdint.h> for now until we transition all the code away from the C99
types.
We go with u{8,16,32,64}_t and s{8,16,32,64}_t as there are some
existing variables defined u8 & u16 as well as to be consistent with
Zephyr naming conventions.
Jira: ZEP-2051
Change-Id: I451fed0623b029d65866622e478225dfab2c0ca8
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-04-19 23:32:08 +08:00
|
|
|
#include <zephyr/types.h>
|
2024-01-24 17:35:04 +08:00
|
|
|
#include <zephyr/version.h> /* generated by MAKE, at compile time */
|
2016-10-06 01:01:54 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Return the kernel version of the present build
|
|
|
|
*
|
|
|
|
* The kernel version is a four-byte value, whose format is described in the
|
|
|
|
* file "kernel_version.h".
|
|
|
|
*
|
|
|
|
* @return kernel version
|
|
|
|
*/
|
2020-05-28 00:26:57 +08:00
|
|
|
uint32_t sys_kernel_version_get(void)
|
2016-10-06 01:01:54 +08:00
|
|
|
{
|
2017-09-08 03:01:43 +08:00
|
|
|
return KERNELVERSION;
|
2016-10-06 01:01:54 +08:00
|
|
|
}
|