blob: 799e555f1aaa5ef481e0e5985aa84e70051c040e [file] [log] [blame]
Kumar Galad12d8af2016-10-05 12:01:54 -05001/*
2 * Copyright (c) 1997-2010, 2012-2014 Wind River Systems, Inc.
3 *
David B. Kinderac74d8b2017-01-18 17:01:01 -08004 * SPDX-License-Identifier: Apache-2.0
Kumar Galad12d8af2016-10-05 12:01:54 -05005 */
6
Kumar Gala78908162017-04-19 10:32:08 -05007#include <zephyr/types.h>
Kumar Galad12d8af2016-10-05 12:01:54 -05008#include "version.h" /* generated by MAKE, at compile time */
9
Kumar Galad12d8af2016-10-05 12:01:54 -050010/**
Kumar Galad12d8af2016-10-05 12:01:54 -050011 * @brief Return the kernel version of the present build
12 *
13 * The kernel version is a four-byte value, whose format is described in the
14 * file "kernel_version.h".
15 *
16 * @return kernel version
17 */
Kumar Galaa1b77fd2020-05-27 11:26:57 -050018uint32_t sys_kernel_version_get(void)
Kumar Galad12d8af2016-10-05 12:01:54 -050019{
Andrew Boie8e51f362017-09-07 12:01:43 -070020 return KERNELVERSION;
Kumar Galad12d8af2016-10-05 12:01:54 -050021}