Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
reboot.h File Reference

Common target reboot functionality. More...

#include <zephyr/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.
 

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.