Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
reboot.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2015 Wind River Systems, Inc.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
14#ifndef ZEPHYR_INCLUDE_SYS_REBOOT_H_
15#define ZEPHYR_INCLUDE_SYS_REBOOT_H_
16
17#include <toolchain.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23#define SYS_REBOOT_WARM 0
24#define SYS_REBOOT_COLD 1
25
38extern FUNC_NORETURN void sys_reboot(int type);
39
40#ifdef __cplusplus
41}
42#endif
43
44#endif /* ZEPHYR_INCLUDE_SYS_REBOOT_H_ */
FUNC_NORETURN void sys_reboot(int type)
Reboot the system.
Macros to abstract toolchain specific capabilities.