The latest development version of this page may be more current than this released 3.7.0 version.

Version

Kernel version handling and APIs related to kernel version being used.

API Reference

uint32_t sys_kernel_version_get(void)

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”.

Returns:

kernel version

SYS_KERNEL_VER_MAJOR(ver)
SYS_KERNEL_VER_MINOR(ver)
SYS_KERNEL_VER_PATCHLEVEL(ver)