Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Functions

FUNC_NORETURN void sys_poweroff (void)
 Perform a system power off.
 

Detailed Description

Function Documentation

◆ sys_poweroff()

FUNC_NORETURN void sys_poweroff ( void  )

#include <zephyr/sys/poweroff.h>

Perform a system power off.

This function will perform an immediate power off of the system. It is the responsibility of the caller to ensure that the system is in a safe state to be powered off. Any required wake up sources must be enabled before calling this function.

CONFIG_POWEROFF needs to be enabled to use this API.