Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
reboot.h File Reference

Common target reboot functionality. More...

#include <toolchain.h>

Go to the source code of this file.

Macros

#define SYS_REBOOT_WARM   0
 
#define SYS_REBOOT_COLD   1
 

Functions

FUNC_NORETURN void sys_reboot (int type)
 Reboot the system. More...
 

Detailed Description

Common target reboot functionality.

See subsys/os/Kconfig and the reboot help for details.

Macro Definition Documentation

◆ SYS_REBOOT_COLD

#define SYS_REBOOT_COLD   1

◆ SYS_REBOOT_WARM

#define SYS_REBOOT_WARM   0

Function Documentation

◆ sys_reboot()

FUNC_NORETURN void sys_reboot ( int  type)

Reboot the system.

Reboot the system in the manner specified by type. Not all architectures or platforms support the various reboot types (SYS_REBOOT_COLD, SYS_REBOOT_WARM).

When successful, this routine does not return.

Returns
N/A