2015-09-29 03:53:04 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2015 Wind River Systems, Inc.
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2015-09-29 03:53:04 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2015-11-27 01:28:23 +08:00
|
|
|
* @file
|
|
|
|
* @brief Common target reboot functionality
|
2015-09-29 03:53:04 +08:00
|
|
|
*
|
|
|
|
* @details See misc/Kconfig and the reboot help for details.
|
|
|
|
*/
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#ifndef ZEPHYR_INCLUDE_MISC_REBOOT_H_
|
|
|
|
#define ZEPHYR_INCLUDE_MISC_REBOOT_H_
|
2015-09-29 03:53:04 +08:00
|
|
|
|
2016-01-23 01:38:49 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-09-29 03:53:04 +08:00
|
|
|
#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.
|
|
|
|
*
|
|
|
|
* @return N/A
|
|
|
|
*/
|
|
|
|
|
|
|
|
extern void sys_reboot(int type);
|
2016-01-23 01:38:49 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#endif /* ZEPHYR_INCLUDE_MISC_REBOOT_H_ */
|