zephyr/include/sys/reboot.h
Daniel Leung 63b4300577 sys: include: remove @return doc for void functions
For functions returning nothing, there is no need to document
with @return, as Doxgen complains about "documented empty
return type of ...".

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2022-01-12 16:02:16 -05:00

42 lines
802 B
C

/*
* Copyright (c) 2015 Wind River Systems, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief Common target reboot functionality
*
* @details See subsys/os/Kconfig and the reboot help for details.
*/
#ifndef ZEPHYR_INCLUDE_SYS_REBOOT_H_
#define ZEPHYR_INCLUDE_SYS_REBOOT_H_
#include <toolchain.h>
#ifdef __cplusplus
extern "C" {
#endif
#define SYS_REBOOT_WARM 0
#define SYS_REBOOT_COLD 1
/**
* @brief Reboot the system
*
* Reboot the system in the manner specified by @a type. Not all architectures
* or platforms support the various reboot types (SYS_REBOOT_COLD,
* SYS_REBOOT_WARM).
*
* When successful, this routine does not return.
*/
extern FUNC_NORETURN void sys_reboot(int type);
#ifdef __cplusplus
}
#endif
#endif /* ZEPHYR_INCLUDE_SYS_REBOOT_H_ */