Convert code to use u{8,16,32,64}_t and s{8,16,32,64}_t instead of C99 integer types. This handles the remaining includes and kernel, plus touching up various points that we skipped because of include dependancies. We also convert the PRI printf formatters in the arch code over to normal formatters. Jira: ZEP-2051 Change-Id: Iecbb12601a3ee4ea936fd7ddea37788a645b08b0 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
26 lines
533 B
C
26 lines
533 B
C
/* version.c */
|
|
|
|
/*
|
|
* Copyright (c) 1997-2010, 2012-2014 Wind River Systems, Inc.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <zephyr/types.h>
|
|
#include "version.h" /* generated by MAKE, at compile time */
|
|
|
|
static u32_t kernel_version = KERNELVERSION;
|
|
|
|
/**
|
|
*
|
|
* @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
|
|
*/
|
|
u32_t sys_kernel_version_get(void)
|
|
{
|
|
return kernel_version;
|
|
}
|